Siemens RUGGEDCOM ROS User Manual page 52

Hide thumbs Also See for RUGGEDCOM ROS:
Table of Contents

Advertisement

Chapter 2
Using ROS
Retrieving Information About a Parameter from a Table
Use the following command to retrieve information about a specific parameter from a table:
NOTE
The parameter name must be the same as it is displayed in the menu system, unless the name
contains spaces (e.g. ip address). Spaces must be replaced with underscores (e.g. ip_address) or the
parameter name must be wrapped in double quotes (e.g. "ip address").
sql select parameter from table
Where:
• parameter is the name of the parameter
• table is the name of the table
Example:
>sql select "ip address" from ipSwitchIfCfg
IP Address
192.168.0.1
1 records selected
Retrieving Information from a Table Using the Where Clause
Use the following command to display specific parameters from a table that have a specific value:
sql select from table where parameter = value
Where:
• table is the name of the table
• parameter is the name of the parameter
• value is the value of the parameter
Example:
>sql select from ethportcfg where media = 1000T
Port Name
1
Port 1
2
Port 2
3
Port 3
4
Port 4
4 records selected
Further refine the results by using and or or operators:
sql select from table where parameter = value [{and | or} | parameter | = | value...]
Where:
• table is the name of the table
• parameter is the name of the parameter
• value is the value of the parameter
Example:
>sql select from ethportcfg where media = 1000T and State = enabled
38
ifName
Media
1
1000T
2
1000T
3
1000T
4
1000T
State
AutoN Speed Dupx
Enabled
On
Auto
Auto
Enabled
On
Auto
Auto
Enabled
On
Auto
Auto
Enabled
On
Auto
Auto
RUGGEDCOM ROS
FlowCtrl LFI Alarm
Off
Off On
Off
Off On
Off
Off On
Off
Off On
Retrieving Information
User Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents