The text of a manual · part 11 of 81
WS5000 Series Switch System Reference Guide: CH 3 Configuring the WS5000 Series Switch Automatically, pages 80 to 88
Pages 80 to 88 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 80
3-10
WS5000 Series Switch System Reference Guide
SNMPCommunity4Perm
#RO/RW: Access permissions
# # SNMP Traps # SNMPCommunity1Trap SNMPCommunity1TrapIP
#SNMP community trap #SNMP community trap IP
SNMPCommunity2Trap SNMPCommunity2TrapIP
#SNMP community trap #SNMP community trap IP
SNMPCommunity3Trap SNMPCommunity3TrapIP
#SNMP community trap #SNMP community trap IP
SNMPCommunity4Trap SNMPCommunity4TrapIP
#SNMP community trap #SNMP community trap IP
############################################################################# # SECTION: SYSLOG Configuration # ############################################################################# # # Syslog severities # # Name #----------# Emergency # Alert # Critical # Error # Warning # Notice # Info # Debug
Number -------1 2 3 4 5 6 7 8
# # Syslog host 1 # SysLogHostname1 SysLogIP1 SysLogSev1 # # Syslog host 2 # SysLogHostname2 SysLogIP2 SysLogSev2 # # CLI Commands Section # #Example CLI Commands CLI# CLI# CLI# CLI#
#Hostname of syslog collector #IP address of syslog collector #Enter a list of severity numbers #separated by white spaces EX: 2 3 6 8
#Hostname of syslog collector #IP address of syslog collector #Enter a list of severity numbers #separated by white spaces EX: 2 3 6 8
Page 81
Configuring the WS5000 Series Switch Auto-
3-11
3.4 Upgrading Using AutoInstall This section describes how to upgrade to 2.1 using the autoinstall procedure.
3.4.1 Using AutoInstall to Upgrade from 2.0 to 2.1 1. Copy the new image (WS5000_v2.1.0.0-xxx.sys.img) to the TFTP Server. 2. Change the parameters in the cmd_template as mentioned below TFTPServer<IP address of the TFTP Server> ImageRestore
<System image filename *.sys.img>
3. Reboot the Switch. As part of boot up process the auto-install will begin and TFTP Server should supply the new sys.img file. If all the above parameters are correct, the upgrade will be performed successfully. It is advised the template file be edited and checked before starting the auto-install process. Note The following file must be available on the TFTP server before beginning the upgrade process using Auto Install: WS5000_v2.0.0.0-034R.sys.img (should be in the TFTP server) Cmd_template.sym (Should be in the TFTP Server)
3.4.2 Using AutoInstall to Upgrade from 1.4.X.X / 1.4.1.0 / 1.4.1.1 / 1.4.2 /1.4.3 to 2.1 To upgrade the switch from 1.4/1.4.1.0/1.4.1.1/1.4.2/1.4.3/Mantis to 2.1 using the automatic installation: 1. Copy the patch supplied to switch. copy ftp system -u <user_name>
2. Enter the patch filename, IP Address, and password at the system prompt. The switch downloads the patch file specified. 3. Log into the service mode CLI using service command from the system context. 4. Run the following service mode CLI command exec 5. Enter the patch filename when the system prompts. The switch installs the patch file. 6. Before the reboot ensure that the FTP root directory contains the following: •
PreUpgradeScript
• vdate
• dominfo
•
WS5000_v2.1.0.0-xxx.sys.kdi
Page 82
3-12
WS5000 Series Switch System Reference Guide
7. Reboot the switch. As part of boot up process, the auto-install begins. The DHCP server provides the TFTP server IP and command filename. The command file is present on TFTP server and it should contain the following name - value pairs for the upgrade. FTPServer <ftp_server_ip_address> FTPUser<ftp_user_name> FTPPassword<ftp_user_password> UpgradeFile<upgrade_file_name_present_on_the_ftp_server>
The upgrade file is the. sys.kdi file in the ftp user home directory on the ftp server. If you enter all of these parameters, the switch upgrades successfully.
3.4.3 Using AutoInstall to Upgrade From WS5000 Series Switch Build 49 To upgrade from WS5000 Series Switch to 2.1 as part of Auto-install. 1. Copy the patch supplied to the switch running WS5000 Series Switch (build 49): copy ftp system -u <user_name>
2. Enter the patch filename, IP Address, and password at the system prompt. The switch downloads the patch file specified. 3. Log into the service mode CLI using service command from the cfg context (under system context). 4. Run the following service mode CLI command: patch <patch_file>
5. Enter the patch filename when the system prompts. The switch installs the patch file. 6. Before the reboot ensure that the FTP root directory contains the following: •
PreUpgradeScript
• vdate
• dominfo
•
WS5000_v2.1.0.0-xxx.sys.kdi
7. Reboot the switch. As part of boot up process, the auto-install begins. The DHCP server provides the TFTP server IP and command filename. The command file is present on TFTP server and it should contain the following name - value pairs for the upgrade. FTPServer <ftp_server_ip_address> FTPUser<ftp_user_name> FTPPassword<ftp_user_password> UpgradeFile<upgrade_file_name_present_on_the_ftp_server>
The upgrade file is the. sys.kdi file in the ftp user home directory on the ftp server. If you enter all of these parameters, the switch upgrades successfully.
Page 83
Configuring the WS5000 Series Switch Auto-
3-13
3.4.3.1 Installing the Patch File Automatically You can install the patch files used during the upgrade procedure either manually or automatically using the Expect program as described below: Before you run the automatic patch file installation, check that you have: •
A linux machine with the Expect program installed.
•
Telnet or SSH enabled on the WS5000 Series Switch.
There is no need to have a patch update for WS5000 from version 2.0 to 2.1.
Installing the Patch File in 2.1 Switches To install the patch file for 2.1 switches: 1. Download the files bfly_caller.sh and bfly.exp to the linux machine with the Expect program installed. Download both bfly_caller.sh and bfly.exp to the same directory. 2. Enter the following command from the directory where you download the files: ./bfly_caller.sh <telnet/ssh> ftp <service_password> <file_containing_ip_of_WS5000 Series Switch_switches> <patch_filename> <ftp_ip> <ftp_user> <ftp_password>
If you are using tftp, enter the command: ./bfly_caller.sh <telnet/ssh> tftp <service_password> <file_containing_ip_of_WS5000 Series Switch_switches> <patch_filename> <tftp_ip> where: •
<telnet/ssh>: Program (telnet or ssh) enabled on the list of WS5000 Series Switches specified by the <file_containing_ip_of_WS5000 Series Switch_switches>.
• ftp or tftp: Method used to download the patch file.
• service_password: Service mode CLI password.
• file_containing_ip_of_WS5000 Series Switch_switches: Filename containing the list of IP Addresses of WS5000 Series Switch Switches (one IP Address per line).
• patch_filename: Name of the patch file downloaded; bfly_patch.tar by default. If you use ftp, the patch file is in the home directory of the ftp user on the ftp server specified by <ftp_ip>. If you use TFTP, the patch file is in the tftp server public directory.
• ftp_ip: IP Address of the FTP Server.
• tftp_ip: IP Address of the TFTP Server.
• ftp_user: Name of the ftp user
• ftp_password: ftp user’s password.
Page 84
3-14
WS5000 Series Switch System Reference Guide
Automatically Installing the Patch File in WS5000 Series Switches 1. Download the files mantis_caller.sh and mantis.exp in the same directory of a linux machine with the Expect program installed. 2. Run the following command from the directory where you downloaded the files: If you use ftp to download the file: ./mantis_caller.sh ftp <file_containing_ip_of_WS5000 Series Switch_switches> <patch_filename> <ftp_ip> <ftp_user> <ftp_password>
If you use tftp to download the file: ./mantis_caller.sh tftp <file_containing_ip_of_WS5000 Series Switch_switches> <patch_filename> <tftp_ip> where: •
<telnet/ssh>: Program (telnet or ssh) enabled on the list of WS5000 Series Switches specified by the <file_containing_ip_of_WS5000 Series Switch_switches>.
• ftp: Method used to download the patch file.
• tftp: Method used to download the patch file.
• service_password: Service mode CLI password.
• file_containing_ip_of_WS5000 Series Switch_switches: Filename with the list of IP
Addresses of WS5000 Series Switches (one IP Address per line). • patch_filename: Name of the patch file downloaded; mantis_patch.tar by default. If you use ftp, the patch file is in the home directory of the ftp user on the ftp server specified by <ftp_ip>. If you use TFTP, the patch file is in the tftp server public directory. • ftp_ip: IP Address of the FTP Server.
• tftp_ip: IP Address of the TFTP Server.
• ftp_user: Name of the FTP user
• ftp_password: FTP user’s password. There is no need to have a patch update for WS5000 from version 2.0 to 2.1.
Page 85
Configuring the WS5000 Series Switch Auto-
3-15
3.5 Manual Auto-install There are two types of file you can use for manual auto-install: 1. The Command File Example shown above. This file has .sym extension. 2. The .cli file, which contains just the CLI section of command file (.sym file).See CLI Commands section for more details about this file. A sample CLI file used for radius configuration is shown below: ############################################################################# # # Copyright (c) 2005, Symbol Technologies, Inc. # All rights reserved. # # radius_template.sym file # # This is a template file to configure WS5000 for MU authentication by onboard RADIUS Server. # Requires Server Certificate (cert-srv.pem) and CA Certificate (cacert.pem) to be present on the TFTP Server # Username to be used at MU = aaauser0 # Password to be used at MU = aaaaaa # SSID to be associated to = aaawlan # ############################################################################# #Example CLI Commands # Go to Config context CLI#cfg ############################################################################# #TFTP Server Certificate to be installed for RADIUS server ############################################################################# CLI#copy tftp system CLI#cacert.pem CLI#157.235.208.179 #TFTP CA Certificate to be installed for RADIUS server CLI#copy tftp system CLI#cert-srv.pem CLI#157.235.208.179 ############################################################################# #Install Server Certificate to be installed for RADIUS server #WS5000 is the password used while generating this certificate ############################################################################# CLI#aaa CLI#eap CLI#import servcert cert-srv.pem CLI#WS5000 CLI#import cacert cacert.pem CLI#.. CLI#.. ############################################################################# #create a security policy. #this example uses WEP and 802.1x authentication using Onboard RADIUS server #shared secret to be used is WS5000 ############################################################################# CLI#securitypolicy
Page 86
3-16
WS5000 Series Switch System Reference Guide
CLI#add aaasecuritypolicy CLI#set encryption wep40 enable CLI#2 CLI#157.235.208.234 CLI#1812 CLI#WS5000 CLI#set radius server 1 127.0.0.1 CLI#.. CLI#.. ############################################################################# #create a WLAN. Use the security policy that was created above ############################################################################# CLI#wlan CLI#add aaawlan aaawlan CLI#set security aaasecuritypolicy CLI#.. CLI#.. ############################################################################# #Create an APPolicy. Add this WLAN ############################################################################# CLI#appolicy CLI#add aaaappolicy CLI#add aaawlan CLI#.. CLI#.. ############################################################################# #Create a Switch Policy. Use APPolicy and EtherPolicy created above. #Set Country to US #Activate this Switch Policy ############################################################################# CLI#switchpolicy CLI#add aaaswitchpolicy CLI#set appolicy aaaappolicy CLI#set etherpolicy aaaetherpolicy CLI#set adoptionlist a default allow aaaappolicy CLI#set adoptionlist b default allow aaaappolicy CLI#set adoptionlist g default allow aaaappolicy CLI#set adoptionlist fh default allow aaaappolicy CLI#set country us CLI#yes CLI#.. CLI#.. CLI#set switchpolicy aaaswitchpolicy ############################################################################# # AAA Configuration # Add AAA users # aaauser0, aaauser1, aaauser2 ..... # passwords for all are aaaaaa # CLI prompts for the passwords twice. ############################################################################# CLI#aaa CLI#userdb CLI#user CLI#add aaauser0 CLI#aaaaaa CLI#aaaaaa CLI#add aaauser1 CLI#aaaaaa CLI#aaaaaa CLI#add aaauser2 CLI#aaaaaa CLI#aaaaaa CLI#add aaauser3 CLI#aaaaaa
Page 87
Configuring the WS5000 Series Switch Auto-
CLI#aaaaaa CLI#add aaauser4 CLI#aaaaaa CLI#aaaaaa CLI#.. ############################################################################# #Add a RADIUS Group ############################################################################# CLI#group CLI#add aaagroup CLI#.. ############################################################################# # Add aaauser0 to this created group ############################################################################# CLI#adduser aaauser0 aaagroup CLI#.. CLI#.. ############################################################################# # Set this access policy for this Group to allow the WLAN ############################################################################# CLI#policy CLI#add wlan aaagroup aaawlan CLI#.. ############################################################################# #Issue Save command to save these configurations # Start the RADIUS server using "enable" ############################################################################# CLI#save CLI#enable CLI#.. CLI#bye
To execute a .sym file, use the following commands: • install primary <.sym file name> on a primary switch
• install standby <.sym file name> on a standby switch
To execute the .cli file, use the following command: • install runcli <.cli file name>
3-17
Page 88
3-18
WS5000 Series Switch System Reference Guide