Set” and “show” command examples, Set” and “show” command examples -9 – HP ProCurve 520wl Wireless Access Point User Manual

Page 92

Advertising
background image

CLI Command Types

6-9

“set” and “show” command examples

“set” and “show” command examples

“set” and “show” command examples

“set” and “show” command examples

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 ip address parameter

example 1 - set the access point ip address parameter

example 1 - set the access point ip address parameter

example 1 - set the access point 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

example 2 - create a table entry or row

example 2 - create a table entry or row

example 2 - create a table entry or row

Use 0 (zero) 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 mgmtipaccesstbl 0 ipaddr 10.0.0.10 ipmask 255.255.0.0

Result: A new table entry is created that for IP address 10.0.0.10 with a 255.255.0.0 subnet mask.

example 3 - modify a table entry or row

example 3 - modify a table entry or row

example 3 - modify a table entry or row

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 IP Access table has

one entry and you wanted to modify the IP Address:

[Device Name]>set mgmtipaccesstbl 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 mgmtipaccesstbl 1 ipaddr 10.0.0.12 ipmask 255.255.255.248

cmt “First Row”

example 4 - enable, disable, or delete a table entry or row

example 4 - enable, disable, or delete a table entry or row

example 4 - enable, disable, or delete a table entry or 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 status <enable, disable, delete>

[Device Name]>set <Table> index status <1=enable, 2=disable, 3=delete>

Example:
[Device Name]>set mgmtipaccesstbl 2 status enable

[Device Name]>set mgmtipaccesstbl 2 status disable

[Device Name]>set mgmtipaccesstbl 2 status delete

[Device Name]>set mgmtipaccesstbl 2 status 2

NOTE:

You may need to enable a disabled table entry before you can change the entry’s elements.

Advertising