Changing Values In A Table - Siemens RUGGEDCOM ROS User Manual

Hide thumbs Also See for RUGGEDCOM ROS:
Table of Contents

Advertisement

RUGGEDCOM ROS
User Guide
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
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
Port Name
1
Port 1
2
Port 2
3
Port 3
4
Port 4
4 records selected
Section 2.6.4.3

Changing Values in a Table

Use the following command to change the value of parameters in a table:
sql update
table
Where:
• table is the name of the table
• parameter is the name of the parameter
• value is the value of the parameter
Example:
>sql update iplcfg set IP_Address_Type = static
1 records updated
Conditions can also be included in the command to apply changes only to parameters that meet specific criteria.
In the following example, flow control is enabled on ports that are operating in 100 Mbps full-duplex mode with
flow control disabled:
>sql update ethportcfg set FlowCtrl = Off where ( Media = 100TX and FlowCtrl = On )
2 records updated
Changing Values in a Table
ifName
Media
1
1000T
2
1000T
3
1000T
4
1000T
table
where
parameter
ifName
Media
1
1000T
2
1000T
3
1000T
4
1000T
set
parameter
=
value
State
AutoN Speed Dupx
Enabled
On
Auto
Enabled
On
Auto
Enabled
On
Auto
Enabled
On
Auto
=
value
[ { and | or } |
State
AutoN Speed Dupx
Enabled
On
Auto
Enabled
On
Auto
Enabled
On
Auto
Enabled
On
Auto
FlowCtrl LFI Alarm
Auto
Off
Off On
Auto
Off
Off On
Auto
Off
Off On
Auto
Off
Off On
parameter
| = |
FlowCtrl LFI Alarm
Auto
Off
Off on
Auto
Off
Off On
Auto
Off
Off On
Auto
Off
Off On
Chapter 2
Using ROS
value
...]
43

Advertisement

Table of Contents
loading

Table of Contents