The text of a manual · part 63 of 81
WS5000 Series Switch System Reference Guide: CH 9 Service Mode CLI, pages 583 to 592
Pages 583 to 592 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 583
Service Mode CLI 9.1 CLI Service Mode Overview The CLI Service Mode allows retrieval of system data that includes tables, log files, configuration, status, and operation, for use in debugging and problem resolution while troubleshooting the WS5000 Series Switch configuration. Only Symbol Technologies trained and customer-authorized personnel should use the advanced commands within the CLI Service Mode. Occasionally, the customer may be asked to retrieve system data and provide it to a Symbol Support Engineer who uses this data to examine the system status. To enter Service Mode Configuration context, invoke the service command within the System or Configuration context (WS5000> or WS5000.(Cfg)> prompts, for example). The CLI user can either output the data to the standard display, or capture the data in a file stored in the default system directory. The user can immediately access the file, or transport it to another host. The Service mode includes almost all of the commands that are provided in “normal” CLI mode. The same commands from the “normal” CLI mode execute identically in the Service Mode CLI System context and Configuration context.
Page 584
9-2
WS5000 Series Switch System Reference
9.1.1 Logging into the Service Mode Initially, to log into the Service mode, follow these steps: 1. Enter service at the WS5000> System Context prompt. 2. Enter the CLI Service Mode password. The default password is password. WS5000> service Enter CLI Service Mode password:******** Enabling CLI Service Mode commands...... done. SM-WS5000>
The customer can allow or deny access to the CLI Service Mode by maintaining the CLI Service Mode password. The service mode password command is used to update/change the Service Mode password.
9.1.2 Basic Conventions When working within Service Mode, consider the following basic conventions: •
Service Mode is clearly marked by its differentiated prompt. You know you are in “service mode” when the prompt is: SM-WS5000>
•
All CLI commands are case insensitive but, all user data is case sensitive.
•
Any time a name is assigned that contains two or more words separated by a space, use double quotes around the words that make up the name. For example: SM-WS5000>name "Wireless Switch"
•
The Service Mode is password-protected and should only be used by customer-authorized personnel such as Symbol support personnel.
9.2 SM-WS5000> Command Review This section provides detailed command and syntax descriptions, as well as examples of the Service Mode commands. Table 9.1 Service Mode Command Summary Command
Description
Ref.
? or help
To get the command information page 9-4 logout or bye
Close this session page 9-5 exit
Exit from the Service CLI mode.
page 9-5 capture
Capture the current system status to a file page 9-5 cleanapdbglog
Cleanup AP300 debug log files page 9-6 clear
Clears the screen page 9-6 configure
Configure system attributes page 9-6 copy
Copy files between the Switch and TFTP/FTP server page 9-8 debug
Enable/disable debug information to the log file page 9-9
Page 585
Service Mode CLI
9-3
Table 9.1 Service Mode Command Summary Command
Description
Ref.
delete
Delete an image files from the memory page 9-10 description
Set description text page 9-11 diag
Diagnostic utility page 9-12 directory
Display the available image files in memory page 9-12 emergencymode
Enable or disable Emergency Mode page 9-13 enablecclog
Enable Switch log information to the log file page 9-13 execute
CLI Service Mode command file execution page 9-13 export
Exports log files from the Switch to TFTP server.
page 9-14 ftpPasswd
Changes password for FTP operations page 9-14 getcclogfile
Upload Switch log file to TFTP Server page 9-15 install
Install primary/standby/Kerberos config or CLI commands.
page 9-15 launch
Launches the specified program page 9-16 ledcolor
Get or set the color of the LEDs page 9-17 logdir
Display the user saved log files page 9-17 name
Set or change the name page 9-18 password
Change the CLI Service Mode password page 9-18 ping
Ping a network host/IP address page 9-18 remove
Remove a log file shown by 'logdir' command.
page 9-20 restore
Restore system image or configuration page 9-20 rfping
Send a WNMP ping to a Access Port page 9-21 save
Save the running system configuration to a file page 9-21 setThresholds
Enable/Disable/Set thresholds for periodic monitoring page 9-22 shell
Enter into the embedded O.S. command prompt page 9-22 show
Display context specific attributes page 9-23 showAPFirmware
Displays AP Firmware images available page 9-25 showBuildInfo
Displays build version Information page 9-25 showDiskUsage
Displays current disk usage page 9-26 showHardwareInfo
Displays current hardware Information page 9-26 showMemUsage
Displays current memory usage page 9-27 showThresholds
Display current settings for various thresholds page 9-27 watchdogtimer
Enable/disable watch dog timer page 9-28 wvpnctl
Enable/disable wvpn logging page 9-28
Page 586
9-4
WS5000 Series Switch System Reference
9.2.1 ? or help Displays a list of available commands. Identical to "help" command. Syntax ?
Parameters
None Example SM-WS5000> ? System Context. ---------------------------------------------Commands Brief Description ---------------------------------------------? or help To get the command information logout or bye Close this session exit Exit from the Service CLI mode. capture Capture the current system status to a file cleanapdbglog Cleanup AP300 debug log files clear Clears the screen configure Configure system attributes copy Copy files between the Switch and TFTP/FTP server. debug Enable/disable debug information to the log file delete Delete an image files from the memory description Set description text. diag Diagnostic utility. directory Display the available image files in memory emergencymode Enable or disable Emergency Mode enablecclog Enable Switch log information to the log file execute CLI Service Mode command file execution export Exports log files from the Switch to TFTP server. ftpPasswd Changes password for FTP operations. getcclogfile Upload Switch log file to TFTP Server install Install primary/standby/Kerberos config or CLI commands. launch Launches the specified program ledcolor Get or set the color of the LEDs logdir Display the user saved log files name Set or change the name. password Change the CLI Service Mode password ping Ping a network host/IP address remove Remove a log file shown by 'logdir' command. restore Restore system image or configuration. rfping Send a WNMP ping to a Access Port save Save the running system configuration to a file. setThresholds Enable/Disable/Set thresholds for periodic monitoring. shell Enter into the embedded O.S. command prompt show Display context specific attributes showAPFirmware Displays AP Firmware images available. showBuildInfo Displays build version Information. showDiskUsage Displays current disk usage. showHardwareInfo Displays current hardware Information. showMemUsage Displays current memory usage. showThresholds Display current settings for various thresholds. watchdogtimer Enable/disable watch dog timer wvpnctl Enable/disable wvpn logging SM-WS5000>
Page 587
Service Mode CLI
9-5
9.2.2 logout or bye Exits service mode and logs the user out of the switch. Identical to the command "bye". Syntax bye Parameters
None Example SM-WS5000> bye Logging out... user name:
9.2.3 exit Exits the CLI Service Mode and returns to the switch command prompt (normal CLI). Syntax exit Parameters
None Example SM-WS5000> exit Disabling CLI Service Mode commands...... done. WS5000>
9.2.4 capture This command saves the current system status (and packets) of various tables, files and processes of the switch to a file, for use by Symbol engineers during problem resolution. The file name, ssm_report, appears in the WS5000/scripts/service/ directory. Any previous ssm_report file gets renamed to ssm_report.prev. After capturing the system status, it can be displayed by using the show sysstat command. Use 'logdir' to list the captured file names.Similarly, use 'remove' to delete the saved files and 'export' command to copy files to remote TFTP server. Syntax capture <option> Parameters option
It can be either of the below two:
• sysstat - Saves the system status to a file.
• packet - Captures packets in real time.
Page 588
9-6
WS5000 Series Switch System Reference
Example SM-WS5000> capture sysstat Capturing current system status.... Starting the SSM capture ... Finished the SSM capture ... SM-WS5000>
9.2.5 cleanapdbglog This command is used to clean up AP300 debug log files. Syntax cleanapdbglog Parameters
None Example This command does not generate any output.
9.2.6 clear Clears the screen contents and returns to the service mode prompt. Syntax clear Parameters
None Example SM-WS5000> clear SM-WS5000>
9.2.7 configure The command changes the Service Mode CLI to the Service Mode “Configuration” context, allowing the administrator to configure system attributes within the Service Mode. The sub-contexts and related commands available in the normal System Context (WS5000> prompt) are the same. Syntax configure Parameters
None Example SM-WS5000> configure SM-WS5000.(Cfg)> ? Config Context. ---------------------------------------------Commands Brief Description ----------------------------------------------
Page 589
Service Mode CLI
.. or end exit ? or help logout or bye aaa accessport acl appolicy banner ce cg chassis clear copy date delete description diag directory emergencymode encrypt ethernet etherpolicy events export ftp ftpPasswd fw host install kdc launch ledcolor logdir name np ping po purge radius remove reset restore rogueap route runacs save securitypolicy sensor set setThresholds show showAPFirmware showBcmcStats showBuildInfo showDiskUsage showDriverStats showEthernetStats showHardwareInfo showMemUsage showStartupLog showThresholds showUpgradeLog shutdown
9-7
Go back to the previous context. Go back to root context. To get the command information Close this session Configure AAA setting. Configure an Access Port. Configure ACL for the system. Configure an Access Port policy. Configure Banner for the system. Configure a Classifier. Configure a Classification Group. Configure Chassis settings. Clears the screen Copy files between the Switch and TFTP/FTP server. Set or display system time and/or date Delete an image files from the memory Set description text. Diagnostic utility. Display the available image files in memory Enable or disable Emergency Mode Encrypt the passwd to be used in auto-install Configure Ethernet Port. Configure an EtherPolicy. Configure Event properties. Exports log files from the Switch to TFTP server. Configure system FTP settings. Changes password for FTP operations. Configure LAN for the system. Configure Host properties. Install primary/standby/Kerberos config or CLI commands. Configure KDC server. Launches the specified program Get or set the color of the LEDs Display the user saved log files Set or change the name. Configure a Network Policy. Ping a network host/IP address Configure a Policy Object. Purge the specified contents. Configure RADIUS setting. Remove a log file shown by 'logdir' command. Reset Switch Restore system image or configuration. Configure RogueAP Detection feature for the system. Configure system Route settings. Run ACS on all adopted Access Ports Save the running system configuration to a file. Configure Security Policy for the system. Configure Sensor setting. Set Switch attributes Enable/Disable/Set thresholds for periodic monitoring. Display context specific attributes Displays AP Firmware images available. Displays BCMC statistics for PSD. Displays build version Information. Displays current disk usage. Displays driver statistics for ethernet ports. Displays ethernet port statistics Displays current hardware Information. Displays current memory usage. Displays system startup log. Display current settings for various thresholds. Displays system restore log. Shutdown the Switch
Page 590
9-8
WS5000 Series Switch System Reference snmp ssh ssl standby switchpolicy telnet tunnel user watchdogtimer wlan wvpn wvpnctl
Configure SNMP parameters. Configure SSH settings. Configure SSL settings. Configure system Standby settings. Configure Switch Policy. Configure system Telnet settings. Configure tunnel information. Configure user information. Enable/disable watch dog timer Configure WLAN for the system. Configure system WVPN settings. Enable/disable wvpn logging
SM-WS5000.(Cfg)>
9.2.8 copy Copies a file (system image (*.img) or configuration file (*.cfg) from the WS5000 to a (T)FTP server, or vice versa. TFTP can be used to transfer *.sys.img, *.cfg, and *.sym files. FTP can be used to transfer .krb, .sys.img, .cfg, and .sym files. The following are the default modes: •
Default protocol is TFTP
•
Default user for FTP: anonymous
•
Default mode for FTP: binary.
If using FTP, and the user is not anonymous (using -u option), CLI prompts the user to enter password. IMPORTANT! DO NOT USE THIS COMMAND FOR FILES LARGER THAN 32MB. Syntax copy <source> <destination> [-u user] [-m mode] Parameters source
The source of the file. Possible values are: • [protocol:]//<host_name or IP>/[file_name].For example, ftp://<ipAddress/path/[file_name]. If a filename is not supplied, the system will prompt for one, in addition to a password. • tftp • ftp • system • . • [/]<file_name>
Page 591
Service Mode CLI destination
9-9
The destination of the file. Possible values are: • tftp • ftp • system • . • / user
FTP username. Default is anonymous.
mode
FTP transfer mode, either ascii or binary. Default is binary.
Example SM-WS5000> copy tftp system Enter the file name to be copied from TFTP server : backup.sys.img IP address of the TFTP server : 157.235.208.208 Copying 'backup.sys.img' from tftp://157.235.208.208 to Switch...
9.2.9 debug Allows enabling or disabling logging of debug messages in the debug log file. User must execute the debug command to see the log of the operating function. Entering a specific option displays the debug option that is enabled. Syntax debug [<option> <enable/disable>] Parameters Option
Parameters
Descriptions.
errors enable/disable
Error messages.
general enable/disable
General messages.
threads enable/disable
Process thread information.
sharedmem enable/disable
Shared memory data.
accessport enable/disable
Access Port information.
ess enable/disable
ESS handling.
policy enable/disable policy handling.
ethernet enable/disable
Ethernet data.
stats enable/disable
Statistical data.
snmp enable/disable
SNMP data.
driver enable/disable
Driver messages.
standby enable/disable
Standby information.
frames enable/disable
Frame information.
Page 592
9-10
WS5000 Series Switch System Reference events enable/disable
Events information.
corba enable/disable
Corba handling.
packets enable/disable
Packets data.
apfirmware enable/disable
AP firmware information.
mu enable/disable
Mobile unit data.
xml enable/disable
XML information.
qos enable/disable
QOS handling.
vlan enable/disable
VLAN handling.
database enable/disable
Database information.
security enable/disable
Security handling.
memory enable/disable
Memory use information.
kdc enable/disable
Kerboros messages.
acs enable/disable
ACS information.
all enable/disable
Select all the above options.
Example SM-WS5000> debug sharedmem enable Enabling SHARED MEMEORY data logging ... Status: Success. Debug flag value (Hex): 0000000000000100 Enabled options are: ------------------sharedmem - SHARED MEMEORY data SM-WS5000>
9.2.10 delete Deletes the specified image or config file from the WS5000. As a shortcut, “del” can be used instead of “delete”. Use the directory command to list the files that can be deleted. Syntax delete <file_name> Parameters filename
Name of the file to be deleted.