RuggedSwitch™ User Guide
Finding The Correct Table
Many sql commands operate upon specific tables in the database, and require the
table name to be specified. The name can easily be determined by navigating the
menu system to the desired menu and pressing <CTRL Z>. The menu name and
the corresponding database table name will be cited.
Another way to find a table name is to run the "sql info tables" command. This
command also displays menu names and their corresponding database table names.
>sql info tables
Table
-------------------------------------------------------------------------------
alarms
cpuDiags
ethPortCfg
ethPortStats
ethPortStatus
ipCfg
Figure 70 The sql command and SQL help
Retrieving Information
Retrieving A Table
The sql select subcommand is used to retrieve table information. The command
"sql select from tablename" provides a summary of the parameters within the
table, as well as their values.
>sql select from ipcfg
IP Address Type IP Address
ut Telnet Sessions Allowed TFTP Server SNMP Get Community
Static
8
Figure 71 Selecting a table
Retrieving A Parameter From A Table
A particular parameter from a table can be retrieved by selecting it, e.g. "sql select
parameter_name from tablename". The parameter name is always the same as
those displayed in the menu system. If the parameter name has spaces in it (e.g.
"IP Address") the spaces must be replaced with underscores or the name must be
quoted.
>sql select "ip address" from ipcfg
IP Address
10.9.0.2
Figure 72 Select a parameter with a table
Description
Alarms
CPU Diagnostics
Port Parameters
Ethernet Statistics
Port Status
IP Services
Subnet
10.9.0.2
255.0.0.0
Enabled
Gateway
10.0.0.254
public
Inactivity Timeo
Disabled
RuggedCom
Need help?
Do you have a question about the RuggedSwitch RS1600 and is the answer not in the manual?
Questions and answers