The text of a manual · part 64 of 81
WS5000 Series Switch System Reference Guide: CH 9 Service Mode CLI, pages 593 to 602
Pages 593 to 602 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 593
Service Mode CLI
Example SM-WS5000> directory Date & Time Mar 9 Mar 9 Mar 9 Mar 9 Mar 10 Mar 9 Mar 9 Mar 10 Mar 9
23:25 20:42 22:57 23:23 00:01 23:05 23:31 00:01 20:50
Bytes
File Name
115219 92004 91824 91818 7531 17020 17023 17023 34603
WS5000Defaults_v2.1.0.0-017B.cfg WS5k_Auto_v2.1.0.0-015B_20060309.cfg WS5k_Auto_v2.1.0.0-016B_20060309.cfg WS5k_Auto_v2.1.0.0-017B_20060309.cfg cmd_template.sym kp.cfg pavan.cfg test1.cfg walmart_new.cfg
9-11
SM-WS5000> delete WS5000Defaults_v2.1.0.0-017B.cfg Removing test1.cfg.... done. SM-WS5000>
9.2.11 description Sets the description to the policy or item in the selected context. Syntax description <description_text> Parameters description_text
Enter a brief description of the switch.
Example SM-WS5000> description WS5000 Wireless Network Adding description... Status : Success. System information... System Name : WS5000 Description : WS5000 Wireless Network Switch Location : Software Ver. : 2.1.0.0-017B Licensed to : Symbol Technologies Copyright : Copyright (c) 2000-2005. All rights reserved. Serial Number : 00A0F853D9A9 Number of Licenses : 30 Max Access Ports : 30 Max Mobile Clients : 4096 MU Idle Timeout value : 1800 seconds Active Switch Policy : wm_stores Emergency Switch Policy : Not defined Switch Uptime : 00d:23h:08m Global RF stats : Disabled Use JumboSupport : enable AP300 debugging : disable # of Unassigned Access Ports : 2 Unassigned Access Ports : 1. 00:A0:F8:B8:10:96. 2. 00:A0:F8:B8:10:5A. CLI AutoInstall Status : Enabled SM-WS5000>
Page 594
9-12
WS5000 Series Switch System Reference
9.2.12 diag Use diag to create a text file for memory dump of different data structures. It dumps all the information related to the object in /logfile which can be viewed using the root permission.This command is to be used by an admin with a root permission (access to the shell). The output file will be saved in logs dir which can be viewed using 'logdir' command. Syntax diag <obj_name> <file_name> <user_name> Parameters obj_name
<obj_name>={inQ|outQ|muo|bfio|ALT|cgo|ceo|mco|po}
Name of object whose memory dump is required. It can be either of the following: • inQ=Input Q. • outQ=Output Q. • muo=MU Object. • bfio=Interface Object (both NIC and AP). • ALT=Address Lookup Table. • cgo=CG Object. • ceo=CE Object. • mco=MC Object. • po=Policy Object. file_name
Name of file where the output needs to be saved.
user_name
Name of user executing the command.
Example SM-WS5000> diag ALT TestFile admin SM-WS5000> logdir File Name Bytes Date & time ======================================================== TestFile.ALT.diag
454
Sat Mar 11 18:20:26 2006
SM-WS5000>
9.2.13 directory Lists the image and configuration files that are stored on a WS5000. As a shortcut, “dir” can be used instead of “directory”. Syntax directory Parameters
None
Page 595
Service Mode CLI
Example SM-WS5000> directory Date & Time Mar 9 Mar 9 Mar 9 Mar 9 Mar 10 Mar 9 Mar 9 Mar 9
23:25 20:42 22:57 23:23 00:01 23:05 23:31 20:50
Bytes
File Name
115219 92004 91824 91818 7531 17020 17023 34603
WS5000Defaults_v2.1.0.0-017B.cfg WS5k_Auto_v2.1.0.0-015B_20060309.cfg WS5k_Auto_v2.1.0.0-016B_20060309.cfg WS5k_Auto_v2.1.0.0-017B_20060309.cfg cmd_template.sym kp.cfg pavan.cfg walmart_new.cfg
9-13
SM-WS5000>
9.2.14 emergencymode Enables or disables the “Emergency” Switch Policy (ESP). This is a switch policy that can activated (enabled) at any time in case of an emergency. When ESP is deactivated (disabled), the previous switch policy is reactivated. Define an Emergency switch Policy prior to enabling the Emergency Wireless Switch Policy. Create two or more switch policies. An error message displays if less than two Switch Policies are available. Syntax emergencymode <enable/disable> Parameters enable/disable
Indicates whether to enable or disable the ESP.
Example SM-WS5000> emergencyMode enable
9.2.15 enablecclog This command is used to enable the CC log with dd.conf input file. Syntax enablecclog Parameters
None Example
9.2.16 execute Executes the specified file. The command is used with specified optimization (patch file) files provided from Symbol Technologies when a service upgrade is needed on the WS5000 Series Switch.
Page 596
9-14
WS5000 Series Switch System Reference
Syntax execute Parameters
None Example SM-WS5000> execute Executing CLI Service Mode command file.... Enter the command file name:
9.2.17 export This command is used to copy the log files from the switch to the remote TFTP server. use ‘logdir’ to view the list of user log files that can be exported. Syntax export Parameters
This is an interactive command and you will be asked for the following: • destination, This is the remote TFTP host.
• filename, The name of the log file that has to be exported to the remote TFTP server.
• username, Enter the user name which you mentioned at the time of log file creation when using the ‘diag’ command. The default user name would is admin.
Example SM-WS5000> logdir File Name Bytes Date & time ======================================================== TestFile.ALT.diag
454
TestBfio.bfio.diag 2006
41560
Sat Mar 11 18:20:26 2006 Sat Mar 11 18:35:33
SM-WS5000> export Creating the Event list... Enter the log file name : TestBfio.bfio.diag Enter the user name : admin IP address of the remote TFTP server : 192.168.168.10 Optional storage path in the TFTP server (press ENTER if none) : Copying log file TestBfio.bfio.diag to remote TFTP Server 192.168.168.10 ... File: TestBfio.bfio.diag copied successfully to 192.168.168.10 SM-WS5000>
9.2.18 ftpPasswd This command is used to reset the FTP password for the switch. This command is used to change the password of the standard user for FTP operations. The default user name is, ftpuser. You have to use the default user name to FTP to the switch along with the password that you provide using ftpPasswd.
Page 597
Service Mode CLI
9-15
Syntax ftpPasswd Parameters
None Example SM-WS5000> ftpPasswd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Password for FTP operations updated SM-WS5000>
9.2.19 getcclogfile This command is used to upload the CC log file to the TFTP server. Syntax getcclogfile Parameters
None Example SM-WS5000> getcclogfile Enter IP Address of TFTP Server where log file to be copied:192.168.168.10 File: CCErrors.txt copied successfully to 192.168.168.10 Do you want to disable Switch debug logging (yes/no) Disabled Switch Debug Logging successfully.
: y
SM-WS5000>
9.2.20 install Configures the switch as primary or standby, installs Kerberos settings, or runs a CLI command file, depending on the value of the first parameter. Syntax install <install_option> [file_name] Parameters install_option
Specify Primary or Standby to configure the switch as the primary or standby Switch.Specify which command (.sym) file to install. Omitting a specific command file, forces the system to install the default command *.sym file. If no default command file exits, omitting the file name results in no changes to the current configuration.
file_name
The optional command file name extensions are (.sym) or Kerberos file (.krb) to install. Specifying a valid command file (*.sym) causes the switch to shutdown and reset. Specifying a valid Kerberos file to update (*.krb) does not require the Kerberos enabled switches to reset.
Page 598
9-16
WS5000 Series Switch System Reference
Example SM-WS5000> install primary test.sym Begin command file processing... Begin parsing command file for download and logging parameters... /WS5000/scripts/cmd_process: tr: command not found /WS5000/scripts/cmd_process: tr: command not found... Command file was parsed successfully. Shutting down running processes. This may take a while... Shutting down running processes... Resetting the Switch... SM-WS5000>
9.2.21 launch Use launch to specify the program or shell command to be executed. Observe the following constraints: •
For executing a Linux program, its path must be available in the environment variable $PATH.
•
When executing a command, the command must be available in the /WS5000/scripts/engg directory with executable permission.
Syntax launch -p <key>
<option> <program_name>
Parameters
<key>
Secret key for password to access launch command. Note Use encrypt command along with the root password to generate the key for executing the launch command.
<option>
It can be either of the below mentioned two: • -c for command • -f for file
<program_name>
It can be either of the below mentioned two: • for -c option it is command name • for -f option it is a file name to be executed
Example SM-WS5000> cfg encrypt B20!FlyIn Encrypting password 'B20!FlyIn'.... Actual Password B20!FlyIn Encrypted Password 14c8bf727be6e37b3fbd25489b00b3b1
Page 599
Service Mode CLI
9-17
SM-WS5000.(Cfg)> launch -p 14c8bf727be6e37b3fbd25489b00b3b1 -c ps PID TTY TIME CMD 20808 pts/0 00:00:00 CLI 25402 pts/0 00:00:00 ps SM-WS5000.(Cfg)>
9.2.22 ledcolor This command is not supported in WS5000 hardware platform. Syntax None Parameters
None Example None
9.2.23 logdir This command is used to lists available user log (history, syslog, pktlog, diag log, system status log) files. It does not list image/config files. Use dir command to list image/config files. Syntax logdir
OR logdir user <username> Parameters username
This s 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 ========================================================
Page 600
9-18
WS5000 Series Switch System Reference examplepacketcapture.pktbin
25835
Sun Feb 12 17:26:39 2006
9.2.24 name This command is used to change the systems name. Syntax name <name> Parameters name
The name which you want to assign to the switch.
Example SM-WS5000> name Bangalore_WS5000 WARNING: Changing the switch name will require the KDC configuration to be recreated Are you sure? (yes/no)
: yes
Configuring name... Status : Success.
9.2.25 password This command is used to change the CLI Service Mode password. Syntax password Parameters
None Example SM-WS5000> password Changing CLI Service Mode password.... Enter the new password : ********* Re-Enter the new password : ********* SUCCESS: CLI Service Mode password update successful. SM-WS5000>
9.2.26 ping Sends ICMP ECHO_REQUEST packets to a network host.
Page 601
Service Mode CLI
9-19
Syntax ping <host/ip_address> Options: ping [-Rdfnqrv] [-c count] [-i wait] [-l preload] [-p pattern] [-s packetsize] host 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.
Page 602
9-20
WS5000 Series Switch System Reference
Example SM-WS5000> 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.074 ms 64 bytes from WS5000 (10.1.1.101): icmp_seq=2 ttl=64 time=0.027 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.032 ms --- WS5000 ping statistics --4 packets transmitted, 4 received, 0% loss, time 2997ms rtt min/avg/max/mdev = 0.027/0.041/0.074/0.019 ms SM-WS5000>
9.2.27 remove This command is used to remove specified log (history, packet, diag log, sysstatus) file. It does not remove image/config or local syslog files.To remove image/config files use 'delete'. To remove local syslog files use ‘remlocal’. Syntax remove <file_name> [username-optional] Parameters file_name
The log file that you want to remove.
username
This field is optional and is the storage directory for the logs.
Example WS5000.cfg>logdir File Name Bytes Date & time ======================================================== Log1.history 7833 Thu Jan 19 04:36:16 2006 SM-WS5000> remove Log1.history Removing file 'Log1.history'.... done.
9.2.28 restore This command is used to restore system images and configuration. This command will reset the system and boot up with the new restored image/config. Syntax restore <restore_option> <file_name> Parameters restore_option
It can be one of the following three: • system, Restore the system image and configurations from file_name. • configuration, Restore the configuration from the specified file name. • standby, Restore the configuration from the specified file name.
file_name
The system image file name to be restored.