CLI "set" and "show" examples

[ Contents ] [ Avaya website ]

In general, you will use the CLI "show" Command to view current parameter values, and use the CLI "set" Command to change parameter values. As shown in the following six examples, parameters may be set individually, and all parameters for a given table can be set with a single statement.

Example 1 - Set the Access Point 3 IP Address Parameter

Syntax:

[Device Name]>set <parameter name> <parameter value>

Example:

[Device Name]>set ipaddr 10.0.0.12

Result: IP Address will be changed when you reboot the Access Point. The CLI reminds you when rebooting is required for a change to take effect. To reboot immediately, enter reboot 0 (zero) at the CLI prompt.

Example 2 - Create a table entry or row

Use 0 as the index to the table when creating an entry. When creating a table row, only the mandatory table elements are required (comment is usually an optional table element). There are other optional table elements, which, if not entered, the default value applies.

Syntax:

[Device Name]>set <table name> <table index> <element 1> <value 1> .... <element n> <value n>

Example:

[Device Name]>set snmpipacctbl 0 ipaddr 10.0.0.10 submask 255.255.0.0

Result: The SNMP Table (Index 0) "IP Address" and "Subnet Mask" parameters are assigned 10.0.0.10 and 255.255.0.0, respectively.

Example 3 - Modify a table entry or row

Use the index to be modified and the table elements you would like to modify. For example, suppose the SNMP IP Access table has one entry and you wanted to modify the IP Address:

[Device Name]>set snmpipacctbl 1 ipaddr 10.0.0.11

You can also modify several elements in the table entry. Enter the index number and specific table elements you would like to modify. Hint: Use the search Command to see the elements that belong to the table.

[Device Name]>set snmipacctbl 1 ipaddr 10.0.0.12 submask 255.255.255.248 cmt "First Row"

Example 4 - Enable, Disable, or Delete a table entry or row

In this example you would like to manage the second table row/entry.

Syntax:

[Device Name]>set <Table> index <enable, disable, delete>

[Device Name]>set <Table> index status <1, 2, 3>

Example:

[Device Name]>set snmpipacctbl 2 enable

[Device Name]>set snmpipacctbl 2 disable

[Device Name]>set snmpipacctbl 2 delete

[Device Name]>set snmpipacctbl 2 status 2

Status codes for the second syntax example are: 1 = enable, 2 = disable, 3 = delete.

Example 5 - Show the Group Parameters

In this example you can view all elements of a group or table.

Syntax:

[Device Name]>show <group name>

Example:

[Device Name]>show network

Result: The CLI displays network group parameters. Note that show ip work the same.

Example 6 - Show Individual and Table Parameters

1. View a single parameter

Syntax:

[Device Name]>show <parameter name>

Example:

[Device Name]>show ipaddr

Result: Displays the Access Point IP Address.

2. View all parameters in a table

Syntax:

[Device Name]>show <table name>

Example:

[Device Name]>show snmpipacctbl

Result: Displays the Access Point SNMP IP Access Table and its entries.