Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 34 of 81

WS5000 Series Switch System Reference Guide: CH 8 CLI Command Reference, pages 293 to 302

Pages 293 to 302 of 728, from WS5000 Series Switch System Reference Guide

The original document is the PDF (12 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol WS-5000

Page 293

CLI Command Reference

8-61

8.5.28 install

(Cfg) Context Configures the switch’s failover role as Primary or Standby, and applies all settings specified in the command file (.sym). Alternatively, this command is used to update Kerberos principal from a specified Kerberos file (.krb), without reset. Syntax install <install_option> [filename] Parameters install_option

One of: • primary – Configures the switch to act as Primary, and applies all settings specified in the <filename> command file (.sym). By default, install uses the command.sym file, if present. If “command.sym” is not present, install will not change anything. • standby – Configures the switch to act as Standby, and applies all settings as described for the primary parameter value. • kerberos – Updates the Kerberos principal from the settings in the filename file (.krb), without reset. • runcli – Configure the switch with the commands in CLI command file.

filename

Command (*.sym) or Kerberos (*.krb) file to execute, which contains configuration settings. By dafault, this is command.sym.

Example WS5000.(Cfg)> install primary Begin command file processing...

8.5.29 kdc

(Cfg) Context Display the Kerberos Key Distribution Center (KDC) status/settings currently applied to the switch. Also, the context is changed to the KDC Context. See page 8-214 for more details. The KDC context provides configuration options to configure the switch-resident KDC as a Master or Slave. Syntax kdc Parameters

None. Example WS5000.(Cfg)> kdc The system is configured as MASTER KDC. Kerberos Realm : realm1 Interface : ethernet1 User count (Active + deleted) : 0 Active users (MUs and WLANs) : 0 Slave KDCsIP AddressDomain -------------------------No entry available.

Page 294

8-62

WS 5000 Series System Reference

List of all active KDC users (MUs & WLANs): No active Users available. WS5000.(Cfg).KDC>

8.5.30 logdir

(Cfg) Context This CLI is used to list available user log (history, syslog) files. It does not list image/config files. Use dir command to list image/config files. Syntax logdir or logdir user <username> Parameters username

It is the storage directory for the logs

Example WS5000.(Cfg)> .. WS5000> service Enter CLI Service Mode password: ******** Enabling CLI Service Mode commands...... done. SM-WS5000> capture packet ifname eth1 enable Start Packet Capture.... sending ioctl to capture packet SM-WS5000> cfg SM-WS5000.(Cfg)> save packet examplepacketcapture Saving captured packets....done SM-WS5000.(Cfg)> logdir File Name Bytes Date & time ======================================================== examplepacketcapture.pktbin

25835

8.5.31 name

(Cfg) Context Use the name command to change the system name. Syntax name <system_name> Parameters system_name

The new name of the switch.

Sun Feb 12 17:26:39 2006

Page 295

CLI Command Reference

8-63

Example WS5000.(Cfg)> name MiamiWS5000 Configuring name... Status : Success. MiamiWS5000.(Cfg)>

8.5.32 np

(Cfg) Context Display the currently available network policies on the switch. Also, the context is changed to the Network Policy (NP) Context. See page 8-222 for more details. Syntax np Parameters

None. Example WS5000.(Cfg)> np Network Policy information Available Network Policies: 1. Default Network Policy. 2. NetVision_VoIP_Priority. 3. New Network Policy. WS5000.(Cfg).NP>

8.5.33 ping

Context, Configuration (Cfg) Context, Host Context Sends ICMP ECHO_REQUEST packets to a network host. Syntax ping <host/ip_address> options:ping [-Rdfnqrv] [-c count] [-i wait] [-l preload] [-p pattern][-s packetsize] <host/IP_address>

Page 296

8-64

WS 5000 Series System Reference

Parameters

-Rdfnqrv

These optional flags are can be broken down as follows: • -R: Record route. Includes the RECORD_ROUTE option in the ECHO_REQUEST packet and displays the route buffer on returned packets. Note that the IP header is only large enough for nine such routes. Many hosts ignore or discard this option. • -d: Set the SO_DEBUG option on the socket being used. Essentially, this socket option is not used by Linux kernel. • -f: Flood ping. For every ECHO_REQUEST sent a period ``.'' is printed, while for ever ECHO_REPLY received a backspace is printed. This provides a rapid display of how many packets are being dropped. If interval is not given, it sets interval to zero and outputs packets as fast as they come back or one hundred times per second, whichever is more. Only the super-user may use this option with zero interval. • -n: Numeric output only. No attempt will be made to lookup symbolic names for host addresses. • -q: Quiet output. Nothing is displayed except the summary lines at startup time and when finished. • -r: Bypass the normal routing tables and send directly to a host on an attached interface. If the host is not on a directly-attached network, an error is returned. This option can be used to ping a local host through an interface that has no route through it provided the option -I is also used. • -v: Verbose output.

-c count

Stop after sending count ECHO_REQUEST packets. With deadline option, ping waits for count ECHO_REPLY packets, until the timeout expires.

-i wait

Wait interval of seconds between sending each packet. The default is to wait for one second between each packet normally, or not to wait in flood mode. Only super-user may set interval to values less 0.2 seconds.

-l preload

If preload is specified, ping sends that many packets not waiting for reply. Only the super-user may select preload more than 3.

-p pattern

You may specify up to 16 “pad” bytes to fill out the packet you send. This is useful for diagnosing data-dependent problems in a network. For example, -p ff will cause the sent packet to be filled with all ones.

-s packetsize

Specifies the number of data bytes to be sent. The default is 56, which translates into 64 ICMP data bytes when combined with the 8 bytes of ICMP header data.

host/IP_address

The name or IP address of the host to which the request packets are sent.

Example WS5000.(Cfg)> ping WS5000 PING WS5000 (10.1.1.101) from 10.1.1.101 : 56(84) bytes of data. 64 bytes from WS5000 (10.1.1.101): icmp_seq=1 ttl=64 time=0.068 ms 64 bytes from WS5000 (10.1.1.101): icmp_seq=2 ttl=64 time=0.028 ms 64 bytes from WS5000 (10.1.1.101): icmp_seq=3 ttl=64 time=0.031 ms 64 bytes from WS5000 (10.1.1.101): icmp_seq=4 ttl=64 time=0.029 ms --- WS5000 ping statistics --4 packets transmitted, 4 received, 0% loss, time 2997ms rtt min/avg/max/mdev = 0.028/0.039/0.068/0.016 ms WS5000.(Cfg)>

Page 297

CLI Command Reference

8-65

8.5.34 po

(Cfg) Context Display the currently available policy object information on the switch. Also, the context is changed to the Policy Object (PO) Context. See page 8-228 for more details. Syntax po Parameters

None. Example WS5000.(Cfg)> po Policy Object information...... Available Policies (PO): 1. NetVision Priority for RF. 2. NetVision Packet Marking for Ethernet. 3. New Input Policy. 4. New Output Policy. WS5000.(Cfg).PO>

8.5.35 purge

(Cfg) Context This CLI is used to clear the specified contents from memory only. It does not delete any files. Use logdir to view user log files and remove to delete user log files. Syntax purge <purge_option> [radioname|radioindex <radioname>|<radioindex>] Parameters purge_option

Use one of:

• history

: Clears global command history.

• rfstats

: Clears RF stats for all or specified AP(s).

• rfstats ap <ap_mac> : To clear RF statistics for specified AP.

radioname

Adopted Radioname radioindex

Adpoted RadioIndex

Example

1. To clear global history contents from memory, use WS5000.(Cfg)> purge history

2. To clear RF statistics for all APs, use WS5000.(Cfg)> purge rfstats

3. To clear RF statistics for specified AP, use WS5000.(Cfg)> purge rfstats ap 1 WS5000.(Cfg)> purge rfstats ap <ap_mac>

Page 298

8-66

WS 5000 Series System Reference

8.5.36 radius

(Cfg) Context Display the Radius authentication status on the switch. Also, the context is changed to the Radius Context. See page 8-235 for more details. Syntax radius Parameters

None. Example WS5000.(Cfg)> radius Radius authentication status: ----------------------------Network users (Web, Telnet, etc.) Local users (via serial port) Authenticate locally if Radius server refuses access Server -----Primary Secondary

Host Name/IP -----------Not defined Not defined

Port ---1812 1812

Retry ----3 3

: Disable : Disable : Disable Timeout ------5 5

WS5000.(Cfg).Radius>

8.5.37 remove Removes the user log files (the once listed by logdir cli command). If a log file is saved using a username, then username option is used to remove it. It does not remove image/config or local syslog files. Syntax remove <file_name> [username-optional] where username is optional and is the storage directory for the logs Parameters filename the file that is to be removed username

Used to remove a log file in case the log file is saved using a user name.

Example WS5000.cfg>logdir File Name Bytes Date & time ======================================================== Log1.history 7833 Thu Jan 19 04:36:16 2006 WS5000.(Cfg)> remove Log1.history Removing file 'Log1.history'.... done.

Page 299

CLI Command Reference

8-67

8.5.38 reset

(Cfg) Context WS5000.(Cfg)> reset

Resets the switch. Resetting the switch includes a graceful shutdown, and reboot. Syntax reset Parameters

None. Example WS5000.(Cfg)> reset This command will reset the system. Are you sure (yes/no) : yes System shutdown may take a few mins.... Rebooting the switch... Shutting down dhcp daemon.. done Shutting down apache server in the SSL mode...done. Shutting down cell controller....... done Shutting down snmpd agent...done. Shutting down Postgres....done. Restarting system

8.5.39 restore

(Cfg) Context Restores the specified system image and/or configuration, and then resets (reboots) the system (based on the restore_option) with the newly restored image and/or configuration. Syntax restore <restore_option> <filename> Parameters restore_option

The type of restore to be invoked. image or configuration that you want to restore. One of: • system – Restores the system image and configuration from the specified file. • configuration – Restores the configuration from the specified file. • standby – Restores the standby configuration from the specified file.

filename

The new system image or configuration file to be restored.

Example WS5000.(Cfg)> restore config WS5000Defaults_v2.1.0.0-014B.cfg This command will reset the system and boot up with the new configuration. Do you want to continue (yes/no) : y Restoring configuration from WS5000Defaults_v2.1.0.0-014B.cfg Rebooting the switch...

Page 300

8-68

WS 5000 Series System Reference

Shutting down dhcp daemon.. done Shutting down apache server in the SSL mode...done. Shutting down cell controller......... done Shutting down snmpd agent...done. Shutting down Postgres....done. Restarting system

8.5.40 rougeap

(Cfg) Context This CLI displays context specific attirbutes, rogue AP configuration, authorised AP rulelist and list of detector APs. See Rogue AP Detection on page 1-22 for more details. Syntax rogueap Parameters

None. Example WS5000.(Cfg)> rogueap RogueAP configuration details: -----------------------------RogueAP Status MU Scan Status AP Scan Status Detector Scan Status MU Scan Interval(min.) AP Scan Interval(min.) Detector Scan Interval(min.)

: disable : disable : disable : disable : 0 : 0 : 0

WS5000.(Cfg).rogueap>

8.5.41 route

(Cfg) Context This CLI is used to configure system route settings. Syntax route Parameters

None. Example WS5000.(Cfg)> route Route Management: Kernel IP routing table Destination Gateway Genmask 157.235.206.0 0.0.0.0 255.255.255.0 10.1.1.0 0.0.0.0 255.255.255.0 0.0.0.0 157.235.206.246 0.0.0.0 WS5000.(Cfg).route>

Flags Ref U 0 U 0 UG 0

Use Iface 0 psdT 0 psdU 0 psdT

Page 301

CLI Command Reference

8-69

8.5.42 runacs

(Cfg) Context Runs Automatic Channel Selection on all adopted access ports. See Automatic Channel Select on page 1-19 for more details. Syntax runacs Parameters

None. Example WS5000.(Cfg)> runacs Executing Automatic Channel Selection on all the adopted Access Ports... Success. WS5000.(Cfg)>

8.5.43 save

(Cfg) Context Saves the running system configuration to the specified file. Use directory to list the saved configuration files. Syntax save configuration <filename> Parameters filename

The filename into which you want to save the running configuration. The .cfg extension is automatically appended.

Example WS5000.(Cfg)> save conf sample Saving running configuration in: sample.cfg Saving wireless network management configuration... Configuration saved successfully.

8.5.44 securitypolicy

(Cfg) Context Display the security policy options available to the switch. Also, the context is changed to the Security Policy Context. See page 8-243 for more details. Syntax securitypolicy Parameters

None.

Page 302

8-70

WS 5000 Series System Reference

Example WS5000.(Cfg)> securitypolicy Available Security Policies: 1. Kerberos Default. 2. Default. 3. WEP40 Default. 4. WEP128 Default. WS5000.(Cfg).SecurityPolicy>

8.5.45 sensor

(Cfg) Context Display details of all Sensors and the Active AP 300's.You can also configure the default sensor configuration in this context.See 8.47 Sensor Context on page 252 for more details. Syntax sensor Parameters

None. Example WS5000.(Cfg)> sensor AP300's ------Sensor AP's -----------1. 00:A0:F8:AA:BB:CC WS5000.(Cfg).sensor>

8.5.46 set

(Cfg) Context Displays the set commands for the different system component. There are a number of ways to invoke the set command: •

When invoked within any system component context, set is used to configure the attributes for the current context.

•

When invoked within the system configuration context, it is used to set the information about various system parameters.

Syntax set <system_parameter> Parameters Table 8.6 lists and describes the display_parameters in the set command:

Table 8.6 set command’s display_parameter Summary Display Parameter set arpcache

Description

Configure Arp Cache

Example page 8-71