Chapter 5 Managing Configuration Files and Software Versions



Similar documents
Chapter 5 Managing Configuration Files and Software Versions

Chapter 5 Managing Configuration Files and Software Versions

File Transfers. Contents

Quick Note 038. Upgrade Software options and/or VPN Licenses on a Digi Transport router.

HP A-IMC Firewall Manager

HP IMC Firewall Manager

Managing Software and Configurations

Backup and Recovery Procedures

NSi Mobile Installation Guide. Version 6.2

File Transfers. Contents

Chapter 46 Terminal Server

DiskPulse DISK CHANGE MONITOR

RAPIER SWITCH USER GUIDE. Simp ly con n e ct in g t h e worl d C REV A

Chapter 6 Using Network Monitoring Tools

SuperLumin Nemesis. Administration Guide. February 2011

Backing Up and Restoring Data

How To Set Up A Backupassist For An Raspberry Netbook With A Data Host On A Nsync Server On A Usb 2 (Qnap) On A Netbook (Qnet) On An Usb 2 On A Cdnap (

Plesk 11 Manual. Fasthosts Customer Support

CCNA 2 Chapter 5. Managing Cisco IOS Software

IPPBX FAQ. For Firmware Version: V2.0/V

WEB CONFIGURATION. Configuring and monitoring your VIP-101T from web browser. PLANET VIP-101T Web Configuration Guide

AP6511 First Time Configuration Procedure


Configuring Secure Socket Layer (SSL)

Chapter 6 Using Network Monitoring Tools

Chapter 3 Using Access Control Lists (ACLs)

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

National Fire Incident Reporting System (NFIRS 5.0) Configuration Tool User's Guide

Honeywell Internet Connection Module

The SSL device also supports the 64-bit Internet Explorer with new ActiveX loaders for Assessment, Abolishment, and the Access Client.

Polycom CMA System Upgrade Guide

How To Backup In Cisco Uk Central And Cisco Cusd (Cisco) Cusm (Custodian) (Cusd) (Uk) (Usd).Com) (Ucs) (Cyse

Chapter 29 User Authentication

Quadro Configuration Console User's Guide. Table of Contents. Table of Contents

3.5 EXTERNAL NETWORK HDD. User s Manual

LifeSize Control Installation Guide

Network Management Card Wizard--1. Introduction... 1 Using the Network Management Card Wizard... 5

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

COMMANDS 1 Overview... 1 Default Commands... 2 Creating a Script from a Command Document Revision History... 10

GlobalSCAPE DMZ Gateway, v1. User Guide

Administering the Network Analysis Module. Cisco IOS Software. Logging In to the NAM with Cisco IOS Software CHAPTER

Contents. Before You Install Server Installation Configuring Print Audit Secure... 10

13.1 Backup virtual machines running on VMware ESXi / ESX Server

F-Secure Messaging Security Gateway. Deployment Guide

Installation and Setup Guide

Pharos Control User Guide

Using Logon Agent for Transparent User Identification

SonicOS Enhanced Release Notes TZ 180 Series and TZ 190 Series SonicWALL, Inc. Firmware Release: August 28, 2007

Sysax Multi Server User manual

Administration guide. Océ LF Systems. Connectivity information for Scan-to-File

Installing, Uninstalling, and Upgrading Service Monitor

McAfee SMC Installation Guide 5.7. Security Management Center

USER GUIDE WEB-BASED SYSTEM CONTROL APPLICATION. August 2014 Phone: Publication: , Rev. C

Device Installer User Guide

Hillstone StoneOS User Manual Hillstone Unified Intelligence Firewall Installation Manual

Debugging Network Communications. 1 Check the Network Cabling

Background Deployment 3.1 (1003) Installation and Administration Guide

Web Browser Interface User s Guide

StruxureWare Power Monitoring 7.0.1

Tandem Systems, Ltd. WinAgents HyperConf. User s Guide

Table of Contents. Online backup Manager User s Guide

1 Getting Started. Before you can connect to a network

Network-Enabled Devices, AOS v.5.x.x. Content and Purpose of This Guide...1 User Management...2 Types of user accounts2

IP Configuration Manual

How To Enable A Websphere To Communicate With Ssl On An Ipad From Aaya One X Portal On A Pc Or Macbook Or Ipad (For Acedo) On A Network With A Password Protected (

3M Command Center. Installation and Upgrade Guide

NETASQ SSO Agent Installation and deployment

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

Administration Quick Start

How To Check If Your Router Is Working Properly

WS_FTP Server. User s Guide. Software Version 3.1. Ipswitch, Inc.

How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip

USER MANUAL GUIMGR Graphical User Interface Manager for FRM301/FRM401 Media Racks

Using LDAP Authentication in a PowerCenter Domain

Secure Messaging Server Console... 2

Chapter 6 Updating Software Images and Configuration Files

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

HP Security Modules. Software Upgrade Guide. Part number: Document version: 6PW

Installation and Setup: Setup Wizard Account Information

User's Guide. Product Version: Publication Date: 7/25/2011

Virtual Appliance Installation Guide

Configure Cisco Emergency Responder Disaster Recovery System

Customer Tips. Xerox Network Scanning HTTP/HTTPS Configuration using Microsoft IIS. for the user. Purpose. Background

How To Industrial Networking

Novell ZENworks 10 Configuration Management SP3

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

This guide consists of the following two chapters and an appendix. Chapter 1 Installing ETERNUSmgr This chapter describes how to install ETERNUSmgr.

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

Installing and Configuring vcloud Connector

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

IP Phone Configuration and Troubleshooting Guide

Installation Guide: Delta Module Manager Launcher

Ultra Thin Client TC-401 TC-402. Users s Guide

PerleVIEW Device Management System User s Guide

SSL VPN Portal Options

Penetration Testing LAB Setup Guide

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

Content Filtering Client Policy & Reporting Administrator s Guide

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

Table of Contents... iii. Summary of Changes... v. Introduction Getting Started... 3

Transcription:

Chapter 5 Managing Configuration Files and Software Versions Managing Configuration Files...5-3 Loading Files onto the Switch...5-4 Loading from a Trivial File Transfer Protocol (TFTP) Server... 5-5 Loading from a Web Server... 5-5 Loading from a Lightweight Directory Access Protocol (LDAP) Server... 5-7 Loading from a Remote Device using Secure Copy... 5-8 Additional Loader Commands... 5-9 Uploading Files from the Switch...5-9 Using HTTP... 5-9 Using TFTP and ZMODEM... 5-11 Using Secure Copy... 5-11 Software Upgrades...5-12 Upgrade Overview... 5-13 Install Process... 5-13 Filenames... 5-14 Licencing... 5-15 Patches... 5-16 Example: Upgrading to new software... 5-17 Example: Upgrading to a new patch file... 5-19 Upgrading the GUI on the AT-9900 Switch... 5-20 Command Reference...5-22 create config... 5-22 delete install... 5-23 disable basepackage... 5-24 disable feature... 5-24 disable http debug... 5-25 disable http server... 5-25 disable ldap debug... 5-26 disable release... 5-26 enable basepackage... 5-27 enable feature... 5-28 enable http debug... 5-29 enable http server... 5-29 enable ldap debug... 5-30 enable release... 5-30 load... 5-31 purge ldap... 5-36 reset http server... 5-36 reset loader... 5-37 restart... 5-37 restart... 5-38

5-2 AlliedWare OS Software Reference set config... 5-39 set http server... 5-40 set install... 5-41 set install... 5-43 set loader... 5-44 show config... 5-48 show feature... 5-50 show http client... 5-52 show http debug... 5-53 show http server... 5-53 show http server session... 5-55 show install... 5-56 show ldap... 5-58 show ldap request... 5-59 show loader... 5-61 show patch... 5-63 show release... 5-63 show system licence... 5-64 show system package... 5-65 upload... 5-66

Managing Configuration Files and Software Versions 5-3 Managing Configuration Files Managing configuration files consists of the following: Creating a configuration file Specifying a configuration at startup Working with configuration files Configuring multiple switches Creating a configuration file Specifying a configuration at startup A configuration file is a text file that contains a sequence of standard commands for a specific purpose. Configuration files should have an.scp or.cfg extension. Create a file with one of the following methods: Use the create config command to save the current configuration. Save the current configuration and use the edit command to modify it. Use the edit command to create a file on the switch and then type commands into it. Create a file on a PC, type commands into it, and load it onto the switch. Use the show config command on page 5-48 to display part of the configuration, capture the output, and save it to a file. When you start or restart a switch, or when it automatically restarts, it executes preconfigured commands in a configuration file. The default script is called boot.cfg. To set a configuration file as a boot script to execute when the switch starts, use one of these command: create config set set config=filename The convention is to use.cfg for configuration files. You may want to save the configuration as boot.cfg. However, we recommend that you do not because it removes the possibility of going back to the original configuration. To display the name of the configuration file that is set to execute when the switch restarts, enter the command: show config To start without a configuration in order to configure it completely from a blank one, use the command: set config=none Working with configuration files When you use the CLI or GUI to configure the switch, it stores this dynamic configuration as a list of commands. To view the switch s current dynamic configuration, use the dynamic parameter in the show config command on page 5-48. If you turn off the switch or restart it, any unsaved changes to the dynamic configuration are lost. To save changes, use the create config command on page 5-22. Once saved, you have a configuration file, or script, that you can use for various purposes such as startup.

5-4 AlliedWare OS Software Reference You most likely have many configuration files. Storing them on a switch lets you keep a backup switch with configuration scripts for every switch in the network, which speeds up network recovery time. Multiple scripts also let you test new configuration scripts before setting them as the default. For example, to test a new script named test.cfg, enter the command: restart switch config=test.cfg You can run a configuration file any time without restarting the switch by using the command: activate script=filename.cfg This command adds the configuration in the script to the dynamic configuration. For more information about how to create and run scripts, see Chapter 43, Scripting. You can also set a trigger to automatically execute a configuration script when a predetermined event occurs. For information about creating triggers, see Chapter 44, Trigger Facility. Configuring multiple switches Follow these steps when configuring a number of switches with similar requirements: 1. Configure one switch by using either the CLI or GUI, if supported. 2. Save the configuration. This creates a configuration file that is stored in the switch s flash memory. The file consists of a sorted list of the CLI commands that make up the configuration. 3. Upload the file to a PC by using either the CLI or GUI, if supported. 4. Open the file in a text editor, make necessary changes, and download the file onto each switch that you want to configure with it. Loading Files onto the Switch When you want to upgrade your switch with new features, you must load new files onto it. Use the switch s loader to load the files. The loader uses the following protocols to load and store files into memory: Loading from a Trivial File Transfer Protocol (TFTP) Server Loading from a Web Server Loading from a Lightweight Directory Access Protocol (LDAP) Server Loading from a Remote Device using Secure Copy Additional Loader Commands The loader also uses ZMODEM over an asynchronous port to retrieve files from a network host.

Managing Configuration Files and Software Versions 5-5 Loading from a Trivial File Transfer Protocol (TFTP) Server TFTP runs over User Datagram Protocol (UDP). It is simpler and faster than FTP but has minimal capability, such as no provisions for user authentication. Allied Telesis s TFTP server, AT-TFTP, is on the Documentation and Tools CD-ROM along with instructions in a readme file. You can install it on a PC or server running Windows. See the Hardware Reference for the switch for more information about AT-TFTP. To load a file onto the switch with TFTP, use the command: load [method=tftp] [delay=delay] [destfile=destfilename] [destination={bootblock cflash flash nvs}] [server={hostname ipadd}] [srcfile file=filename] You must specify the following parameters in either the load command or the set loader command on page 5-44: server file or srcfile the name that the file has on the server If the file is not in the top level of the TFTP server, include the path as part of the filename. You can optionally rename the file as it is saved to the switch memory, but you should not rename software files. If you rename the file to one that has more than 8 characters, with an extension of 3 characters (DOS 8.3 format), the translation table dynamically allocates a DOS 8.3 formatted filename. The file is saved to memory under this name and an entry is added to the translation table; the file is managed through this translation table. Loading from a Web Server The switch has a built-in HTTP client. The HTTP client enables the switch to act as a browser by sending HTTP "get" or "post" requests to an HTTP server. To load a file onto the switch with the HTTP client, use the command: load [method={http web www}] [delay=delay] [destfile=destfilename] [destination={bootblock cflash flash nvs}] [httpproxy={hostname ipadd} [password=password] [proxyport=1..65535]] [server={hostname ipadd}] [servport={1..65535 default}] [srcfile file=filename] [username=username] You must specify the following parameters in either the load command or the set loader command on page 5-44: method=http or web or www server file or srcfile the name that the file has on the server To display the current status of the HTTP client, use the command: show http client

5-6 AlliedWare OS Software Reference Example: Loading a file over the Internet This example loads a configuration file from a remote switch at company.com to a local switch across the Internet using HTTP. The file is called company.cfg. Before starting, make sure that: IP is configured on both switches both switches can access the Internet 1. Configure the loader. If desired, set the loader with defaults to make the process of downloading files simpler in the future. Use the command: set loader method=http server=ip-address-of-remote-switch [other-options...] If the HTTP server requires authentication, then specify the username and password in either the set loader or load command. 2. Download the configuration file. Download the file onto the switch with the defaults set above by using the command: load file=company.cfg When the download has completed, check that the file is in flash memory by using the command: show file=*.cfg Example: Loading a patch file using HTTP This example loads a patch file onto the switch from a HTTP server on the network. Before starting, make sure that: the HTTP server is operating on a host with an IP address (for example, 192.168.1.1) on the network, and that the patch file is in the server s HTTP directory the switch has an IP address (for example, 192.168.1.2) on the interface connecting it to the HTTP server, and that it can communicate with the server there is enough space in the switch s flash memory for the new patch file 1. Configure the loader. Set the loader with defaults to make the process of downloading files in the future simpler. set loader method=http server=192.168.1.1 destination=flash 2. Download the patch file. Download the patch file onto the switch by using the defaults set above. For x900-48fe switches, use the command: load file=89262-09.paz For AT-9900 switches, use the command: load file=89266-01.paz When the download has completed, check that the file is in flash memory by using the command: show file=*.paz To activate the patch, see Example: Upgrading to a new patch file on page 5-19.

Managing Configuration Files and Software Versions 5-7 Loading from a Lightweight Directory Access Protocol (LDAP) Server LDAP is a network-layer protocol for accessing X.500-like directories. LDAP runs over TCP and uses a client/server model. Entries in an LDAP-accessible directory tree are identified by a distinguished name (DN). To load a file onto the switch with LDAP, use the command: load [method=ldap] [attribute={cert crl cacert}] [baseobject=dist-name] [delay=delay] [destfile=destfilename] [destination={bootblock cflash flash nvs}] [password=password] [server={hostname ipadd}] [servport={1..65535 default}] [username=username] To remove all open LDAP requests and return the LDAP module to its original empty state, use the command: purge ldap This command is most likely to be useful if an LDAP request locks. To see a summary of the outstanding LDAP requests, use the command: show ldap To see more information about one or all LDAP requests, use the command: show ldap request To display LDAP data on the terminal as it is received, use the command: enable ldap debug To disable debugging information, use the command: disable ldap debug LDAP URLs The location of a file in an LDAP-accessible directory tree is given by an LDAP Universal Resource Locator (URL). An LDAP URL consists of the word ldap, followed by an address, an optional port number, and a distinguished name. The syntax of an LDAP URL is: ldapurl=ldap://address[:port]/[base-object] where: address is an IP address in dotted decimal notation or a host name from the host name table. See the ping command on page 13-107 of Chapter 13, Internet Protocol (IP) for information on determining the host name. port is an integer between 1 and 65535. base-object is a distinguished name as defined in Distinguished Names (DN) on page 35-4 of Chapter 35, Public Key Infrastructure (PKI). If an LDAP URL contains spaces, it must be in double quotes.

5-8 AlliedWare OS Software Reference Loading from a Remote Device using Secure Copy Secure Copy (SCP) provides a secure way to copy files onto the switch from a remote device. You can load files onto the switch by using one of the following methods: locally by using the switch s CLI. This uses the SSH client on the switch. remotely by using a suitable client on a remote device and the SSH server on the switch. Secure Copy connections cannot load to the bootblock. Loading using the switch The switch can load files from a remote server using SCP. To do this, do all of the following: Check the server is running SCP and set a username. Set either a password or RSA keyid on the server to authenticate the user. If using RSA authentication, set the public key onto the server. To load a file onto the switch, use the command: load [method=scp] [delay=delay] [destfile=destfilename] [destination={cflash flash nvs}] [{file srcfile}=filename] [{keyid=key-id password=password}] [server={hostname ipadd ipv6add}] [username=username] Example In this example, the SCP server has an IP address of 192.168.1.2, with the username john, and the password secret set on it. To download the file atr-281/86s-281.rez from the server, use this command on the switch: load method=scp username=john password=secret server=192.168.1.2 file=/atr-281/86s-281.rez destination=flash If desired, set the loader with defaults to make the process of downloading files simpler in the future. Use the command: set loader method=scp username=john password=secret server=192.168.1.2 destination=flash Loading using the remote device Secure Copy allows remote client devices to load files onto the switch. To do this, do all of the following: Check the switch is running as a SSH server with SCP enabled. Configure the user to allow them to connect using SSH. Set either a password or RSA keyid on the switch to authenticate the user. If using RSA authentication, set the public key onto the switch. Example In this example, the username is Alice and the client device is running Linux. The switch has the IP address 192.168.1.1. To copy the file 86s-281.rez onto the switch, use this command on the client device: scp atr-281/86s-281.rez alice@192.168.1.1:86s-281.rez

Managing Configuration Files and Software Versions 5-9 Additional Loader Commands The switch loads one file at a time. Wait for the current transfer to complete before initiating another one. To display the current configuration of the loader, and the progress of the current transfer, enter the show loader command on page 5-61. You are likely to repeat the process of downloading files onto the switch using a similar method each time. You can set defaults for some or all of the loader parameters. You can then use or override some or all of these defaults for each load. To set loader defaults, enter the set loader command on page 5-44. You can set all parameters except destfile, scrfile and file back to the factory defaults with the option default. To stop a load at any time and leave the loader ready to load again, enter the reset loader command on page 5-37. You can also use the loader to upload files, such as log files, from the switch to a host on the network (see Using TFTP and ZMODEM on page 5-11). Uploading Files from the Switch This section explains the following popular methods to upload files from a switch to another location: Using HTTP Using TFTP and ZMODEM Using Secure Copy Note that some file types, such as UKF or STK, cannot be uploaded from the switch for security reasons. Using HTTP When you use a web browser to load files off the switch onto a PC, you are accessing the switch s built-in HTTP server. You also access the server when you use the load command to load files from one switch to another. The HTTP server offers an alternative loading and uploading method to TFTP, at the same level of reliability and security as FTP. Unlike HTTP and FTP, TFTP is a connectionless protocol and does not guarantee reliable delivery of files across the Internet. If you are loading a file across the Internet, we recommend that you use HTTP. Commands The HTTP server is enabled by default. To disable the HTTP server, use the command: disable http server To enable the HTTP server after it has been disabled, use the command: enable http server To display the current status of the HTTP server, use the command: show http server

5-10 AlliedWare OS Software Reference To display information about sessions currently active on the HTTP server, use the command: show http server session The switch logs all "get", configure, and monitor requests as well as authorisation failures (see Chapter 45, Logging Facility). You can also display debug messages by using the command: enable http debug={all auth msg session} Debug messages display authorisation attempts, HTTP "get" and "post" requests and responses, and TCP state changes. To disable debugging, use the command: disable http debug={all auth msg session} To list the currently enabled debugging options, use the command: show http debug To restart the HTTP server, disable debugging, and clear all counters, use the command: reset http server Resolving URLs HTTPS: Secure access Example: Uploading to a PC When you enter a URL, the switch checks whether it matches a file in the switch s flash memory. If the URL does not match a file, the HTTP server returns the HTTP error 404, File Not Found. If you browse to the switch s IP address without specifying a filename, the server also returns error 404. You can secure the HTTP server so that it only accepts HTTPS connections. For a configuration example, see Configuration Example on page 34-6 of Chapter 34, Secure Sockets Layer (SSL). This example loads a configuration file from a switch to a PC using HTTP. The file is called company.cfg and the IP address for the switch is 192.168.1.1. Before starting, make sure that: IP is configured on the switch the PC can access the switch s subnet 1. Browse to the file. Use the switch s IP address, followed by a forward slash, and the name of the file as follows: http://192.168.1.1/company.cfg The browser prompts you for a username and password. 2. Enter your username and password. The username and password must be valid they must match a user defined in the User Authentication Database or on an external authentication server. For information about user accounts, see Chapter 29, User Authentication. 3. Save the file to your PC. Follow the browser s prompts.

Managing Configuration Files and Software Versions 5-11 Using TFTP and ZMODEM The upload command enables you to load files from the switch to a network host using TFTP or ZMODEM. Allied Telesis s TFTP server, AT-TFTPD, is provided on the Documentation and Tools CD-ROM. You can install it on a PC or server running Windows. The CD-ROM also includes a readme file describing how to install and use AT-TFTPD. Upload files by using one of the following commands: upload [method=tftp] [file=path/filename] [server={hostname ipadd}] upload [method=zmodem] [file=filename] [asyn=port] The upload command uses defaults set with the set loader command for parameters not specified with the upload command. Example: Uploading to a TFTP server This example uploads a configuration file from the switch to a TFTP server on the network. Before starting, ensure that: the TFTP server is operating on a host with an IP address (for example 192.168.1.3) on the network. the switch has a valid IP address (for example 192.168.1.2) on the interface connecting it to the TFTP server, and that it can communicate with the server. the configuration file is present in the switch s flash memory. 1. Configure the loader. Set the loader with defaults to make the process of downloading and uploading files simpler in the future. set loader method=tftp server=192.168.1.3 2. Upload the configuration file. Upload the configuration file from the switch into the TFTP directory of the TFTP server on the network by using the defaults set above. upload file=filename.cfg Monitor the load progress with the command: show load When the upload is complete, check that the file is in the TFTP directory on the network host. Using Secure Copy The Secure Copy Protocol (SCP) provides a secure way to copy files from the switch onto a remote device. You can upload files from the switch by using one of the following methods: locally by using the switch s CLI. This uses the SSH client on the switch. remotely by using a suitable client on a remote device and the SSH server on the switch. Uploading using the switch The switch uses SCP to load files onto a remote server. To do this, do all of the following: Check the server is running SCP and set a username. Set either a password or RSA keyid on the server to authenticate the user. If using RSA authentication, set the public key onto the server.

5-12 AlliedWare OS Software Reference To upload a file from the switch, use the command: upload [method=scp] [file=filename] [destfile=destfilename] [{keyid=key-id password=password}] [server={hostname ipadd ipv6add}] [username=username] Example In this example, the SCP server has an IP address of 192.168.1.2, with the username john, and the password secret set on it. To upload the file voip.cfg to the server, use this command on the switch: upload method=scp server=192.168.1.2 username=john password=secret file=voip.cfg destfile=voip.cfg If desired, set the loader with defaults to make the process of uploading files simpler in the future. Use the command: set loader method=scp server=192.168.1.2 username=john password=secret Uploading using a remote device Secure Copy allows remote client devices to load files from the switch. To do this, do all of the following: Check the switch is running as a SSH server with SCP enabled. Configure the user so that they are allowed to use SSH. Set either a password or RSA keyid on the switch to authenticate the user. If using RSA authentication, set the public key onto the switch. Example In this example, the username is Alice and the client device is running Linux. The switch has the IP address 192.168.1.1. To copy the file voip.cfg from the switch, use this command on the client device: scp alice@192.168.1.1:voip.cfg /root/voip.cfg Software Upgrades The most current software is on the switch when it leaves the factory, and the switch automatically loads it from flash memory into RAM when you first start it (see How the Switch Starts in the Hardware Reference for details). You can upgrade software on your switch as it becomes available by downloading the latest version along with CLI help files from www.alliedtelesis.com/support/software. This section contains the following topics: Upgrade Overview Install Process Filenames Licencing Patches Example: Upgrading to new software Example: Upgrading to a new patch file Upgrading the GUI on the AT-9900 Switch

Managing Configuration Files and Software Versions 5-13 Upgrade Overview Upgrading software is a 2-part procedure: loading the correct files into the switch s file system, and then installing the files. The following is an overview of this procedure: 1. Contact your Allied Telesis representative to get the new file. 2. Place the file in a directory on a server that the switch can access, such as a TFTP server. See Loading Files onto the Switch on page 5-4 for different ways to load files. 3. Load the file into the file system by using the load command. 4. Set the switch to use the new file as follows: Enable a file and specify the password if necessary by using the enable release command or enable basepackage command. Install the release, GUI resource, or patch file by using the set install command. Set CLI help for a help file by using the set help command on page 2-13 of Chapter 2, Using the Command Line Interface (CLI). See Install Process on page 5-13 for details about installing software on the switch. 5. Restart the switch if you loaded release or patch files for x900-48fe or AT-9900 switches. Install Process The switch keeps information, called install records, about the files it installs and uses. The following table describes the types of installs. Install Type Preferred Temporary Default Fallback Software that the switch routinely uses. This install is completely configurable, and the switch is set to run it when you receive the switch. Allows software and/or patch to be loaded just once for testing in case it causes a problem. Can be completely configured. Both the release and an associated patch may be set on x900-48fe and AT-9900 switches. The release may be the flash boot release or a release stored in the flash file system. Used when only EPROM or the flash boot release is present.this is a very limited release of the software on x900-48fe and AT-9900 switches, and is the last resort. It cannot be modified but a manager can set a patch for it. A small subset of the base package that resides in flash and is permanently installed. It runs when the base package is unavailable. It can download and install a base package, modify configuration scripts, and monitor the system. Valid for x900-24x only. The switch inspects install information in strict order as follows: 1. The switch checks for a temporary install. If one is specified, the switch loads it into RAM and runs it. The switch then deletes the temporary install information so it cannot load again. This information is deleted even if the temporary install triggers a fatal condition causing the switch to reboot immediately.

5-14 AlliedWare OS Software Reference 2. If no temporary install is defined or the temporary install information is invalid, the switch checks for a preferred install. If present, the preferred install is loaded. The switch never deletes the preferred install information. 3. If neither a temporary install nor a preferred install is specified on the x900-48fe and AT-9900 switches, they load the default install. The Install module ensures that the default install is always present in the switch. If a temporary or preferred install is not specified on the x900-24x switch and it cannot find a valid one, it loads the fallback software, which is always present. To change installation information when the switch boots up or later, use one of the following commands. For x900-48fe and AT-9900 switches: set install={temporary preferred default} [gui=file-name] [release=[release-name] [patch[=patch-name]] For x900-24x switches: set install={temporary preferred} [basepackage=package-filename none] [help=help-filename none] The set install command requires a user with Security Officer privilege when the switch is in security mode. When you set a patch file as part of a temporary or permanent install on x900-48fe and AT-9900 switches, you must also set the corresponding release file in the same command if it has not already been set as part of that install. You can set the patch, but not the release, for the default install. To delete a temporary or preferred install, enter the following command and specify the desired option: delete install={temporary preferred} To delete the patch associated with the default install, use the command: delete install=default To display the current install information, including the install currently running in the switch, and how the install information was checked at the last reboot, enter the command: show install x900-24x Filenames Software products are available as compressed files with filename formats of mmm-nnn-vv.ext where: mmm identifies the model, for example, AT-9924Ts nnn-vv identifies the version, for example, 301-02 for version 3.0.1, update 02.ext is the filename extension.pkg x900-48fe and AT-9900 Software products are available as compressed files with filename formats of mmm-nnn.ext where: mmm identifies the model, for example, AT-9934T nnn identifies the version, for example, 275 for version 2.7.5.ext is the filename extension.rez

Managing Configuration Files and Software Versions 5-15 This software contains code that runs the switch, and a number of the files can be stored on the switch at once. Software is specific to a particular series of switch, and may run on just several models in a series. This means that the software version must be appropriate for your switch model. This information filenames and models is provided in release notes that routinely accompany our software. The following table explains software files for the switch. File type File Extension Purpose release rez Runs the x900-48fe and AT-9900 switches and controls features. patch paz Small software updates. These files must be compatible with the release file on your x900-48fe and AT-9900 switches. package pkg Product software that runs the x900-24x switch and controls features. GUI resource rsc Graphical user interface and its help file. These files must be compatible with the release on your AT-9900 switch. help hlp Command line help. Help files typically support a particular software version but can run under others. Release licences Licencing Product software sometimes requires a release licence. To determine if you need one, use one of the following commands: show release (X900-48FE and AT-9900) show system licence (x900-24x) If your switch does not have the following output, contact your Allied Telesis representative to request a licence. Release/Base Package Licence Period --------------------------------------------------- any full - --------------------------------------------------- A new release licence is not required when you are updating to a minor or maintenance release. Special feature licences Special features are often offered that are separate from standard software products. A special licence and password are required to activate these features. A licence can be full (unlimited time) or a 30-day trial. Passwords must be ordered from your authorised distributor or reseller. You must specify the special features to be licenced and the serial number of the switches where they are to be enabled. Passwords cannot be transferred from one switch to another. Password information is stored in flash memory. You must set the system date and time before you can enable a trial feature licence.

5-16 AlliedWare OS Software Reference To enable a special feature licence with the CLI, enter the command: enable feature=feature password=password If you are using the GUI on the AT-9900: 1. Select Management > Software > Licences from the sidebar menu. 2. Select the Feature Licences tab. 3. Click Add. 4. Enter the feature name and password. 5. Click Apply. To disable a special feature licence, use the command: disable feature={featurename index} To display a list of current special feature licences, use the command: show feature[={featurename index}] : Special features Special feature packs Software features that may require a special feature licence are: Triple DES S/W DES encryption IPv6 IP Multicast routing: DVMRP and PIM-Sparse Mode IPX routing Open System Interconnection (OSI) Resource Reservation Protocol (RSVP) BGP-4 Most software features that require a special feature licence are bundled into one of the following special feature licence packs: Full Layer 3 Feature Licence Advanced Layer 3 Feature Licence Security Pack Feature Licence Patches Patch software contains changes to the product software on x900-48fe and AT-9900 switches. It often contains fixes to software problems, although it also include enhancements. Patches are compressed files with filenames in the format rrr-vv.paz where: rrr identifies the associated version, such as 2.7.5 vv is the version number that identifies the patch in a series, such as 1, 2, 3 For example, 275-01.paz means 2.7.5 is the version that the patch modifies, and 01 is the version number that identifies the patch in a series of patches (1, 2, 3...). Patches are specific to individual releases and switch series. This means that patch files must be appropriate for your model and the release level on it. This information filenames and models is provided in release notes that accompany patches.

Managing Configuration Files and Software Versions 5-17 Patches can be loaded into flash memory or CompactFlash, or into NVS if the file is small enough. There is no difference between a patch file loaded into flash memory, CompactFlash, or NVS. The difference is in the command that loads the file. Information on using the loader is in Loading Files onto the Switch on page 5-4. To verify the patch is loaded, use the commands: show file show patch To remove a patch, use the command: delete file Patch files are ASCII files, and consist of a header followed by a sequence of Motorola S-records that contain code about the patch. The header has a standard format that gives the switch important information. Do not change this header. Doing so might cause the file load or install to fail. The switch could be put into a state where it would require field service in order to boot correctly. Example: Upgrading to new software This example assumes the switch is correctly configured to allow TFTP to function. This means that IP is configured and the switch can communicate with the designated TFTP server. It assumes that the TFTP server is functioning correctly and that correct files are in the server s directory. The IP address of the server is 172.16.1.1. The name of the release file being loaded on x900-48fe and AT-9900 switches is 89-291.rez. The name of the file being loaded on x900-24x switch is AT9924s_321-00.pkg. 1. Configure the loader. The loader has defaults to make the process of downloading files easy. Release and patch files are stored in flash memory. set loader method=tftp server=172.16.1.1 destination=flash 2. Load the new file onto the switch. Make sure there is room in the file system for the new file. Also make sure the software is compatible with the switch model (see Filenames on page 5-14). Load any patch files required on x900-48fe and AT-9900 switches, and the help file for the version (see Loading Files onto the Switch on page 5-4). To load the software file using the loader default settings, enter the appropriate command: or load file=89-291.rez load file=at9924s_321-00.pkg Wait for the file to load, which can take several minutes even over a high speed link. To see the progress of the load on x900-48fe and AT-9900 switches, enter the command: show load

5-18 AlliedWare OS Software Reference Then check that the file is loaded with the command: show file To check that a load has finished on x900-24x switches, enter the command: show loader Then verify that the file loaded successfully with the command: show file 3. Enter licence information for the new software if necessary. Product software sometimes requires a release licence. If so, enter the licence password: or enable release=89-291.rez password=ce654398fbe number=2.9.1 enable basepackage=at9924s_321-00.pkg password=ce654398fbe A password is provided by your authorised distributor or reseller and is unique for the switch s serial number. 4. Test the new software. Set the new file to run as a temporary install. This sets the switch to load the new file when it next reboots. Enter the appropriate command: or set install=temporary release=89-291.rez set install=temporary basepackage=at9924s_321-00.pkg To use the current switch configuration again, store the dynamic configuration as a configuration file, and set the switch to use this configuration when it restarts. Releases are typically backwardcompatible, so your current configuration should run with little or no modification on a later release. Use the commands: create config=myconfig.cfg set config=myconfig.cfg The set config information survives the software update. Reboot the switch with the command: restart reboot The switch reboots, loading the new file and specified configuration. To check that the temporary file loaded properly on x900-48fe and AT- 9900 switches, use the command: show install To display the log to check that the temporary file loaded on x900-24x switches, use the command: show log

Managing Configuration Files and Software Versions 5-19 5. Make the new software the default (preferred) file. If the switch operates correctly with the new software, make it permanent by entering the appropriate command: or set install=preferred release=89-291.rez set install=preferred basepackage=at9924s_321-00.pkg Every time the switch reboots from now on, it will load the new software from the file system. Save the configuration again by using the commands: create config=myconfig.cfg set config=myconfig.cfg Example: Upgrading to a new patch file Use this procedure to upgrade the software on x900-48fe and AT-9900 switches with a new patch. This example assumes that the Software Version 2.6.6 is set as the preferred version. The name of the patch file being loaded on the AT-9900 switch is 89266-01.paz. 1. Load the new patch file onto the switch. Load the new file onto your switch. For details, see Loading Files onto the Switch on page 5-4. load file=89266-01.paz Check that the file successfully loaded by using the command: show file=*.paz 2. Test the patch. Set the release to run as a temporary install, which means the switch loads the patch just once the next time it reboots. set install=temporary release=89-266.rez patch=89266-01.paz If you want to use the current switch configuration again, store the dynamic configuration as a configuration script file, and set the switch to use this configuration when it restarts. Use the commands: create config=myconfig.scp set config=myconfig.scp Reboot the switch by using the command: restart reboot The switch reboots and loads the new patch file and the specified configuration. Check that the switch operates correctly with the new patch file. 3. Make the patch part of the default (permanent). If the switch operates correctly with the new patch, make the release permanent. set install=preferred release=89-266.rez patch=89266-01.paz Every time the switch reboots from now on, it loads the new release and patch from flash memory.

5-20 AlliedWare OS Software Reference Save the configuration again by using the commands: create config=myconfig.cfg set config=myconfig.cfg Upgrading the GUI on the AT-9900 Switch Before you start, ensure that the switch is running the most recent release and patch files. The GUI is not part of the release file, but the most recent GUI resource file is compatible with the most recent software version. To check which files the switch is running, refer to the Current Install section in the output from the show install command on page 5-56. If you are updating both the release and the GUI resource file, set the preferred release and restart the switch before installing the GUI. You can download the latest resource file from www.allied telesis.com/support. See Example: Upgrading to new software on page 5-17. You can use the GUI to load the new resource file onto the switch (Management > Software > Upgrade), but you need to use the CLI to install the new file. 1. If required, delete the old GUI resource file. If required, you can store more than one GUI resource file on the switch at a time. If you want to delete the previous GUI resource file (for example, to save memory), you must first disable the GUI by using the command: disable gui Then delete the GUI resource file by using the command: delete file=old-gui.rsc where old-gui.rsc is the name of the GUI resource file that you are replacing. Wait until flash compaction finishes, which may take several minutes. Caution While flash is compacting, do not restart the switch or use commands that affect the flash file subsystem such as create, edit, load, rename, or delete. Wait until you get a message that file compaction is complete. Interrupting flash compaction may damage files. If you have multiple valid resource files and releases stored on the switch, use the set install command on page 5-41 to change the release and resource file the switch uses (see below). 2. Load the new file onto the switch. Download the GUI resource file for your model of switch from the web site to your TFTP server. Do not rename the file. If you do, make sure that you rename it with its original name. Resource files use a fixed naming convention. If you change the GUI resource file s name, the switch will not recognise it as a valid file and you will be unable to use it for configuration. Some TFTP servers do not support filenames longer that 8 characters and therefore will not allow you to load the file from the server. With such servers, you can rename the GUI file to a short name on the TFTP server. However, you must then rename it correctly on the router or switch.

Managing Configuration Files and Software Versions 5-21 Load the GUI resource file from your TFTP server to the switch by using the command: load file=filename.rsc server=server where: filename is the name of the GUI resource file, as shown on the support site for your switch. If the file is not in the top level of the TFTP server, include the path. server is the IP address of the TFTP server the file is loaded from. When the switch has loaded the file into its RAM, it displays File transfer successfully completed. It then writes the file to flash memory, which takes approximately 30 seconds after the message. Once the file has been copied to flash memory, you can enter commands that refer to it. 3. Install the new file as the preferred GUI. If you are updating both the release and resource file, set the preferred release and restart the switch, if you have not already done so. To set the new GUI resource file as the preferred resource file, use the command: set install=preferred gui=filename.rsc If you disabled the GUI to delete the old resource file, enable it again by using the command: enable gui Check that the new GUI resource file is valid for your device by using the command: show gui If it is not, or if the file was corrupted during the download, disable the GUI, delete the file, and try again. 4. Point your web browser at the switch s IP address. You may have problems if your browser has stored a local copy of the old GUI file. If so, delete these temporary files, which means clearing the cache as follows: To clear the cache in Internet Explorer: 1. From the Tools menu, select Internet Options. 2. On the General tab, click the Delete Files button. 3. The Delete Files dialogue box opens. Click the OK button. To clear the cache in Netscape 6.2.x 1. From the Edit menu, select Preferences 2. Click the Advanced menu option to expand it. 3. Select the Cache menu option. 4. Click the Clear Memory Cache and Clear Disk Cache buttons.

5-22 create config AlliedWare OS Software Reference Command Reference This section describes the commands available on the switch to support day-today operational and management activities. The shortest valid command is denoted by capital letters in the section. See Conventions on page xlix of About this Software Reference for details of the conventions used to describe command syntax. See Appendix A, Messages for a complete list of messages and their meanings. create config CREate CONfig=filename [SET] This command creates a configuration or script file that contains commands required to recreate the current dynamic configuration of the switch. You can also set the switch to the file at the same time you create it. This command requires a user with security officer privilege when the switch is in security mode. Parameter CONfig SET Name of the configuration file or script to create. If one already exists, it is replaced. The filename is in the format [device:]filename.ext and can be: a maximum of 39 characters uppercase and lowercase letters digits # $ % &! ' ( ) +, -. ; = @ [ ] ^ _ ` { } ~ and space device indicates the physical location where the file is stored. The default is flash..ext is an 3-letter extension, such as.txt or.scp. Invalid characters are * \ :? / < > Default: no default Sets the switch to use the configuration file or script specified by filename when the switch boots up again. To save the current dynamic configuration to a script file called test.cfg, use the command: cre con=test.cfg restart set config show config

Managing Configuration Files and Software Versions delete install 5-23 delete install for x900-24x for x900-48fe and AT-9900 DELete INSTall={TEMPorary PREFerred} DELete INSTall={TEMPorary PREFerred DEFault} This command deletes a specific install from the install information. Note that an install can also be deleted with the set install command if you set all parameters to none. An install is a record identifying software that the switch is using. In the case of the default install, patch information is deleted because the release information must always be left intact in the default install. All switches have the same two types of installs: temporary, preferred. Both of these are configurable. Both the release and an associated patch on x900-48fe and AT-9900 switches may be set. The release may be EPROM or one stored in FFS. x900-24x switches have a fallback install whereas the x900-48fe and AT-9900 switches have a default. Fallback software is a small subset of the base package that resides in flash and is permanently installed. It runs when the base package is unavailable. It can download and install a base package, modify configuration scripts, and monitor the system. Both the temporary and preferred installs are completely configurable. In the case of the default install, patch information is deleted because the release information must always be left intact in the default install. The default install is the install of last resort. The release for the default install cannot be changed by the manager and is always the EPROM release. The patch for the default install may be set by the manager. To delete the temporary install after you have finished testing it, use the command: del inst=temp set install show install

5-24 disable basepackage AlliedWare OS Software Reference disable basepackage DISable BASEpackage=package-filename This command removes a licence for a specific base package from the x900-24x switch. A package-filename is in the format [device:]filename.pkg. Invalid characters are * \ :? / < >. Valid characters are: uppercase and lowercase letters digits! # $ % & ' ( ) +, -. ; = @ [ ] ^ _ ` { } ~ and space device indicates the physical location where the file is stored, either flash or NVS. The default is flash. To disable base package AT9924s_301-00.pkg, use the command: dis base=at9924s_301-00.pkg enable basepackage show system licence show system package disable feature DISable FEAture={featurename index} This command disables the specified special feature licence. This command requires a user with Security Officer privilege when the switch is in security mode. Parameter FEAture The special feature being disabled, identified by specifying the name or the index number assigned to it. The special feature must exist on the switch and currently be enabled. Default: no default featurename index The name assigned to the special feature when it was enabled with the enable feature command on page 5-28. The feature name is a string 1 to 12 characters long, containing any printable character. A decimal number used to identify the feature. Features are sequentially assigned a number from 1 upwards. To display the feature numbers, use the show feature command on page 5-50. To disable the special feature licence Triple DES, use the command: dis fea="triple des" To disable the special feature licence with index 2, use the command: dis fea=2 enable feature show feature

Managing Configuration Files and Software Versions disable http server 5-25 disable http debug DISable HTTP DEBug={ALL AUTH MSG SESSion STATe} This command disables some or all HTTP server debugging. Debug output is sent to the terminal session or Telnet connection from which the command was entered. Debugging is disabled by default. Parameter DEBug The type of debugging which is disabled. Default: no default ALL All debugging is disabled. AUTH Debugging of authentication attempts is disabled. MSG Debugging is disabled for HTTP get and set requests and responses. SESSion Debugging is disabled for TCP state changes and session activity. STATe Debugging is disabled for state changes in the state machine. When enabled, this debugging shows each event that occurs, the current state, and the new state. To disable HTTP server debugging, use the command: dis http deb enable http debug show http debug disable http server DISable HTTP SERVer This command disables the HTTP server. The HTTP server provides HTML pages out of the switch s flash memory to a web browser, and allows users to log into the switch. The server is enabled by default. To disable the HTTP server, use the command: dis http serv enable http server reset http server show http server show http server session

5-26 disable ldap debug AlliedWare OS Software Reference disable ldap debug DISable LDAP DEBug This command disables LDAP debugging. By default, debugging is disabled. To stop LDAP debugging, use the command: dis ldap deb enable ldap debug show ldap disable release DISable RELease=release-name This command removes the licence for a specific release file on x900-48fe and AT-9900 switches. The release parameter specifies the name of the release file. The name of a release file uses the format [device:]filename.ext. Invalid characters are * + = \ [ ] ; :? /, < > and wildcards are not allowed. Valid characters are: uppercase and lowercase letters digits ~! @ # $ % ^ & ( ) _ - { } If a device is not specified, the default is flash. To disable release 28-761.rel, use the command: dis rel=28-761.rel enable release show release

Managing Configuration Files and Software Versions enable basepackage 5-27 enable basepackage ENAble BASEpackage=package-filename VERsion=packageversion [PASSword=password] A base package is similar to a "version". It is product software that is available in versions comprised of different feature sets. This command enables a licence for a specific base package on x900-24x switches. Parameter BASEpackage VERsion PASSword Name and location of the base package. Enter package-filename as follows: in [device:] filename.pkg format. When no device is specified, flash is assumed. not case sensitive can have characters that are uppercase and lowercase letters, digits, # $ % &! ' ( ) +, -. ; = @ [ ] ^ _ ` { } ~ and spaces. If it has spaces, it must be in double quotes. cannot have * \ [ ] :? / < > Default: no default Software version to be licensed for the base package. Default: no default Password for the base package that is encoded as a sequence of hexadecimal digits. The password is specific to a version and switch serial number. It enables the version with a full licence or 30-day licence. When a password is not present, the switch generates one if the switch finds valid versions of a licensed base package or fallback software. Default: no default To use the password CE645398FBE to enable the base package AT9924s_301-00.pkg in flash memory for software version 3.0.1, use the command: ena basep=at9924s_301-00.pkg ver=3.0.1 pass=ce645398fbe disable basepackage show system licence show system package

5-28 enable feature AlliedWare OS Software Reference enable feature ENAble FEAture=featurename PASSword=password This command enables a special feature licence on x900-48fe and AT-9900 switches. The licence is identified by its name and password. This command requires a user with Security Officer privilege when the switch is in security mode. You must set the system date and time before you can enable a trial feature licence. Contact your authorised Allied Telesis distributor or reseller for details and passwords of the product licence you have purchased. Although this command enables ENCO licensed features, such as 3DES and AES, they are not active until the switch restarts. Parameter FEAture PASSword Specifies a user-defined name for the special feature licence that is in output of the show feature command on page 5-50 and identifies the special feature licence in other commands. The feature name can be: from 1 to 12 characters long any printable characters Default: no default Password for the special feature licence that identifies the features being licenced, whether the licence is full or 30-day trial, and the switch serial number. Password information is stored in flash memory. The password can be: 16 characters long minimum uppercase and lowercase characters and digits Default: no default To enable the special feature licence Triple DES with the sample password 591a9d5d9b2e8969cbf7, use the command: ena fea=3des pass=591a9d5d9b2e8969cbf7 disable feature show feature

Managing Configuration Files and Software Versions enable http server 5-29 enable http debug ENAble HTTP DEBug={ALL AUTH MSG SESSion STATe} This command enables HTTP server debugging. Debug output is sent to the terminal session or Telnet connection where the command was entered. To enable combinations of debugging options, enter multiple commands. Debugging is disabled by default. Parameter DEBug The type of debugging which is enabled. Default: no default ALL All debugging is enabled. AUTH Debugging of authentication attempts is enabled. MSG Debugging is enabled for HTTP get and set requests and responses. SESSion Debugging is enabled for TCP state changes and session activity. STATe Debugging is enabled for state changes in the state machine. This debugging shows each event that occurs, the current state, and the new state. To enable debugging of authentication attempts and HTTP "get" and "set" messages, use the commands: ena http deb=auth ena http deb=msg disable http debug show http debug enable http server ENAble HTTP SERVer This command enables the HTTP server. The HTTP server sends HTML pages from the switch s flash memory to a web browser so that users can log into the switch. The server is enabled by default. To enable the HTTP server, use the command: ena http serv disable http server reset http server set http server show http server show http server session

5-30 enable ldap debug AlliedWare OS Software Reference enable ldap debug ENAble LDAP DEBug This command enables LDAP trace debugging, which lets a user trace the execution of LDAP requests by displaying step-by-step information. By default, debugging is disabled. To start LDAP trace debugging, use the command: ena ldap deb disable ldap debug show ldap enable release ENAble RELease=release-name [PASSword=password] NUMber=release-number where: release-name is the name of a release file, in the device:]filename.ext format. Invalid characters are * + = \ [ ] ; :? /, < >, and wildcards are not allowed. Valid characters are: uppercase and lowercase letters digits ~! @ # $ % ^ & ( ) _ - { } password is the password to licence this release, expressed as a string of hexadecimal characters (A F, 0 9). It is not case sensitive. release-number is the release number for this release. This command enables a release file on x900-48fe and AT-9900 switches. The release parameter specifies the name of the release file. If a device is not specified, the default is flash. The password parameter specifies the password for this release, encoded as a sequence of hexadecimal digits. The password is supplied by your authorised distributor or reseller if required, and is specific to a particular switch serial number. The password enables the release with either a full licence or a 30-day licence. The number parameter specifies the software version for the release file being licenced. This is entered in dotted decimal form, for example 2.3.1. To enable version 28-231.rel with the password CE645398FBE for software version 2.3.1, use the command: ena rel=28-231.rel pass=ce645398fbe num=2.3.1 disable release show release

Managing Configuration Files and Software Versions load 5-31 load LOAd [METhod=TFtp] [DELay=delay] [DESTFile=destfilename] [DEStination={BOOTblock CFlash FLash NVs}] [{FIle SRCFile}=filename] [SErver={hostname ipadd ipv6add}] LOAd [METhod={HTTP WEB WWW}] [DELay=delay] [DESTFile=destfilename] [DEStination={BOOTblock CFlash FLash NVs}] [{FIle SRCFile}=filename] [HTTPproxy={hostname ipadd}] [PASSword=password]] [PROxyport=1..65535] [SErver={hostname ipadd ipv6add}] [SERVPort={1..65535 DEFault}] [USERName=username] LOAd [METhod=LDAP] [ATTribute={CERT CRL CACERT}] [BASeobject=dist-name] [DELay=delay] [DESTFile=destfilename] [DEStination={BOOTblock CFlash FLash NVs}] [PASSword=password] [SErver={hostname ipadd}] [SERVPort={1..65535 DEFault}] [USERName=username] LOAd [METhod=ZModem] [ASYn=port] [DELay=delay] [DESTFile=destfilename] [DEStination={BOOTblock CFlash FLash NVs}] [{FIle SRCFile}=filename] LOAd [METhod=NONE] [ASYn=port] [DELay=delay] [DESTFile=destfilename] [DEStination={BOOTblock CFlash FLash NVs}] [{FIle SRCFile}=filename] LOAd [METhod=SCP] [DELay=delay] [DESTFile=destfilename] [DEStination={CFlash FLash NVs}] [{FIle SRCFile}=filename] [{KEYid=key-id PASSword=password}] [SErver={hostname ipadd ipv6add}] [USERName=username] LOAd [METhod=CFlash] [DELay=delay] [DEStination={FLash NVs CFlash}] [FIle=filename] where: delay is a time delay in seconds. hostname is a string 1 to 40 characters long. ipadd is an IP address in dotted decimal notation. ipv6add is a valid IPv6 address. filename is a string 1 to 256 characters long. This is a full path name for the file to load, in the syntax of the server from which the file is loaded. for x900-48fe and AT-9900 switches, destfilename is a character string 5 to 20 characters long, specifying the name of the destination file in the switch file system. for x900-24x switches, destfilename is a string 1 to 256 characters long specifying the name of the destination file in the switch file system.

5-32 load AlliedWare OS Software Reference dist-name is an X.500 distinguished name, as described in Distinguished Names (DN) on page 35-4 of Chapter 35, Public Key Infrastructure (PKI). key-id is a decimal ID number of an encryption key used for authentication. password is a string 1 to 60 characters long that is used for basic server authentication. port is the number of an asynchronous port. Ports are numbered sequentially starting with asyn0. username is a string 1 to 60 characters long that is used for basic server authentication. This command downloads a file to the switch using one of the following: Trivial File Transfer Protocol (TFTP) HyperText Transfer Protocol (HTTP) Lightweight Directory Access Protocol (LDAP) Secure Copy (SCP) ZMODEM direct input from an asynchronous port Parameters not specified use the defaults set with the set loader command on page 5-44. Some parameters are invalid or have different meanings depending on the method used to download the file. This command requires a user with security officer privilege when the switch is in security mode. Caution While flash is compacting on x900-48fe and AT-9900 switches, do not restart the switch or use commands that affect the flash file system such as create, edit, load, rename, or delete. Wait until you get a message that file compaction is complete. Interrupting flash compaction may damages files. The asyn parameter specifies the asynchronous port via which the file is to be downloaded when the method parameter is set to zmodem or none. The asyn parameter is not valid when method is set to http, web, www, ldap, scp, or tftp. If method is set to zmodem or none, the asyn parameter is required unless it has been already set with the set loader command on page 5-44. The attribute parameter defines a keyword specifying the type of object to retrieve from an LDAP repository. A list of currently recognised keywords and their respective object types are in the following table. Keyword cert crl cacert Object Type usercertificate certificatereservationlist cacertificate The baseobject parameter specifies the repository location of the object to load, in the LDAP distinguished name format, and is required if the load method is LDAP. If the string contains spaces, it must be in double quotes. The special characters {, = + < > # ; \ <CR> } must be escaped by typing a \ before the character, as defined in RFC 1779, unless they are used for their prescribed purpose. For example, to include a \ in the string, type \\ and to include a #, type \#. The delay parameter specifies the delay in seconds between initiating the file download and the download actually starting. This feature allows

Managing Configuration Files and Software Versions load 5-33 reconfiguration of ports and devices after initiating the download. For example, a manager may be at a remote site with a single PC that is to act as both the access device to the switch and the TFTP server. By specifying a delay, the manager has time to reconfigure the PC from terminal emulation mode to TFTP server mode before the download starts. The delay parameter is optional. The destfile parameter specifies the name of the destination file in the switch file system. When method is set to LDAP, the extension of the destination file must be valid for the type of object being loaded (either cer, crl, or csr). When using the HTTP method and a destfile is necessary, it must be present on the command line when the file or srcfile parameter is present or it has no effect. The destination parameter specifies where to store the file. If this parameter is not specified and has not already been set with the set loader command on page 5-44, the default is flash. The bootblock option is supported on x900-48fe and AT-9900 switches only. If it is specified, the file is stored in the special boot code area of flash reserved for the switch boot code. Only boot code release files (with extension.fbr) may be loaded to the boot code area. The boot code should not normally need to be upgraded. While loading a new switch boot code file onto the flash boot code area, the switch must not lose power. When the switch goes through a power cycle while writing to the boot block, the code used to reboot the switch will be incomplete, and the switch cannot be rebooted. The switch does not respond to any interfaces while the boot block is being written. The switch should be idle while the boot block is being reloaded. The switch must have sufficient free buffers (about 600) when commencing the download to be able to store the entire boot code. The cflash option is supported on x900-48fe and AT-9900 switches only. If it is specified, the file is stored on the CompactFlash card. The prefix cf is automatically assigned. Patch, release, script, and GUI files may be stored in CFlash. Patch, release, and script may be stored in CFlash. If flash is specified, the file is stored in the Flash File System (FFS) on the switch. Release files, patch files, and script files may be stored in flash. If nvs is specified, the file is stored in the battery-backed non-volatile storage on the switch. Only patch files and script files can be stored in NVS due to the size limitations of NVS. The httpproxy parameter specifies the proxy server used to handle HTTP requests. Either the IP address or the fully qualified domain name of the proxy server may be specified. If a domain name is specified, the switch performs a DNS lookup to resolve the name. The keyid parameter specifies the ID number of a RSA private or public key that is held on the switch. This parameter is only valid when using SCP. The server receiving the load request must have the public key for this authentication to work. The method parameter specifies the method to use when downloading the file. If http is specified, HTTP is used to download the file. The options web and www are synonyms for http. If ldap is specified, LDAP is used to download the file. If tftp is specified, TFTP is used to download the file. If scp is specified, SCP is used to download the file. If zmodem is specified, the ZMODEM protocol is used to download the file. If cflash is specified, the file indicated by the file parameter is loaded from CompactFlash to the destination device. This

5-34 load AlliedWare OS Software Reference command converts Motorola S-Record files to binary files. If none is specified, text files can be downloaded and all input received via the port is directed to the specified file on the switch s file subsystem. The file transfer is terminated by the first control character received that is not a CR or LF character. The default is tftp, unless another method has been specified using the set loader command on page 5-44. The following table shows the different load methods and the required parameters for each method. You can specify the required parameters with either the load or set loader command. Method TFTP HTTP, WWW, or web ZMODEM SCP LDAP CFLASH none Other required parameters server and either file or srcfile method, server, and either file or srcfile method, asyn method, either file or srcfile, server, username, and either keyid or password method, server, baseobject, and destfile method and either file or srcfile method, asyn, and either file or srcfile The password parameter specifies the password for the LDAP, HTTP or SCP methods if server authentication is required. As the password is typed it appears as plain text on the screen, so it should only be used in a secure area. The proxyport parameter specifies the port on a proxy server. The proxyport parameter is valid when using HTTP, if httpproxy is specified. The default is 80. The server parameter specifies the IP address or the host name (a fully qualified domain name) of the HTTP, LDAP or TFTP server from which the file is loaded. If a host name is specified, a DNS lookup is used to translate this to an IP address. See set ip nameserver command on page 13-127 of Chapter 13, Internet Protocol (IP) for more information about setting up name servers. The ping command on page 13-107 of Chapter 13, Internet Protocol (IP) can be used to verify that the switch can communicate with the server via IP. The server parameter is required if method is http, ldap, scp, or tftp unless it has been set by the set loader command on page 5-44. The server parameter is not valid when method is set to zmodem or none. The following are examples of valid server names for the HTTP or LDAP method: host.company.com 192.168.3.4 The servport parameter optionally specifies the port on the HTTP or LDAP server from which the file is loaded. If this is not specified (or is specified using the default keyword) and no default has been set using the set loader command, a default is invoked according to the current load method. In this case, servport takes a value of 80 for HTTP, and 389 for LDAP. The srcfile or file parameter specifies the name of the file in the syntax of the server from which the file is to be downloaded. For load methods other than LDAP and ZMODEM, this parameter is required unless it has been set with the set loader command on page 5-44. It can be a full path name rather than just a filename. The only restriction is that the last part of the file parameter must be a valid filename for the loader. Starting at the end of the filename and working backwards, the first character not valid in filenames delimits a valid filename for the switch. If the slash at the beginning of the path is omitted in this

Managing Configuration Files and Software Versions load 5-35 command, the load command adds it. The following are examples of valid filenames: /path/filename.ext path/filename.ext The username parameter specifies the username for the scp, ldap or http methods when server authentication is required. To download a release using the defaults set previously with the set loader command on page 5-44, use the command: loa To download the 89-291.rez version into the Flash File System on an x900-48fe switch from a TFTP server with IP address 172.16.8.5, use the command: loa fi=89-291.rez se=172.16.8.5 To load the script file show.scp from asynchronous port 1, use the command: loa fi=show.scp asy=1 In this example, the switch is downloading the file abc.cfg from a SCP server with the IP address 172.16.8.5. The user has the username john and the password secret on the server. To download the file and save it as abc.cfg in flash memory, use this command: loa met=scp fi=/downloads/abc.cfg se=172.16.8.5 des=fl usern=john pass=secret To load the script file show.scp from asynchronous port 1 by using the ZMODEM protocol, use the command: loa asy=1 met=zmodem To download the 89-291.rez file to an x900-48fe switch from the downloads directory on the web server at www.company.com, when a name server has been set, use the command: loa met=http fi=/downloads/89-291.rez se=www.company.com To download the 89-291.rez file to an x900-48fe switch from the download directory on the web server at www.company.com (with IP address 192.168.1.1) when a name server is not defined, use the command: loa met=http fi=/downloads/89-291.rez se=192.168.1.1 To download the 89-291.rez file to an x900-48fe switch from the download directory on the web server at www.company.com using a proxy server at 192.168.1.2 and the default proxy port, use the command: loa met=http fi=/downloads/89-291.rez http=192.168.1.1 se=www.company.com To download new code to the special boot area of flash memory, use the command: loa fi=ar410b10.fbr ser=172.16.8.5 des=boot To download reallylongfile.rez into the flash memory on an x900-48fe switch from a TFTP server with IP address 172.16.8.5, use the command: loa fi=reallylongfile.rez se=172.16.8.5

5-36 purge ldap AlliedWare OS Software Reference The filename is similar to really~1.rez and saved to flash memory. All consequent edition, display, and upload reconciliations are completed by consulting the longname.lfn table file. This table provides either the name reallylong.rez or really~1.rez as a valid ID for file management. To download reallylongfile.rez and save it as temporary.rez into flash memory from a TFTP server with IP address 172.16.8.5, use the command: loa fi=reallylongfile.rez se=172.16.8.5 destf=temporary.rez The filename is tempor~1.rez and the file is saved to flash memory. All consequent edition, display, and upload reconciliations are completed by consulting the longname.lfn table file. This table provides either the name temporary.rez or tempor~1.rez as a valid ID for file management. set loader show loader upload purge ldap PURge LDAP This command removes all open LDAP requests and resets the LDAP module to its original empty state. It is most likely to be useful if an LDAP request locks. To reset the LDAP module, use the command: pur ldap show ldap reset http server RESET HTTP SERVer This command resets the HTTP server. The server is restarted, debugging is disabled, and all counters are reset to zero. To reset the HTTP server, use the command: reset http serv disable http server enable http server set http server show http server

Managing Configuration Files and Software Versions restart 5-37 reset loader RESET LOAder This command aborts the file transfer currently being loaded. All resources used by the transfer are released and any file in the process of being created is deleted. The loader becomes ready immediately for a new load to be initiated. load set loader show loader restart for x900-48fe and AT-9900 RESTART SWItch [CONfig={filename NONE}] RESTART REBoot where filename is a file name in the format [device:]filename.ext. Invalid characters are * + = \ [ ] ; :? /, < > and wildcards are not allowed. Valid characters are: uppercase and lowercase letters digits ~! @ # $ % ^ & ( ) _ - { } This command restarts x900-48fe and AT-9900 switches with either the current configuration file (set with the set config command on page 5-39) or the specified configuration file. If reboot is specified the switch performs a cold start (hardware reset) and executes the default configuration file, if one is defined. The config parameter may not be specified. If switch is specified, the switch performs a warm start of all software modules (the hardware is not reset) and executes the default configuration file, if one is defined. Under SNMP this appears as a coldstart Trap. The config parameter may be used to specify a script or configuration file other than the current default. The file extension must be.scp or.cfg. If none is specified, the switch restarts without executing a configuration file. If the switch is operating in security mode and a configuration script is specified, the configuration script must create a user with Security Officer privilege, so that when the switch restarts in security mode there is at least one user with sufficient privilege to execute critical commands. The switch displays a warning message to this effect and prompts for a confirmation. To warm start the switch using a configuration file named test.cfg instead of the default configuration file, use the command: restart swi config=test.cfg

5-38 restart AlliedWare OS Software Reference set config show config show exception show startup show system exception restart for x900-24x RESTART SWItch [CONfig={filename NONE}] RESTART REBoot This command performs a cold start (hardware reset) and then executes a configuration file if specified. There are two forms of this command; both cold start the switch. Parameter SWItch CONfig REBoot Performs a cold start and reboots with the configuration file set by the set config command. Identifies whether a specific configuration file is executed after the switch restarts. Default: current default configuration file filename In the format [device:]filename.ext where device indicates the physical location where the file is stored, either flash or NVS. The default is flash. The.ext extension, such as.txt and.cfg, for a text file. NONE Invalid characters are * \ :? / < > Valid characters are: uppercase and lowercase letters digits! # $ % & ' ( ) +, -. ; = @ [ ] ^ _ ` { } ~ and space Restarts with the configuration file set by the set config command. Performs a cold start and reboots with the configuration file set by the set config command. If the switch is operating in security mode and a configuration script is specified, the configuration script must create a user with Security Officer privilege, so that when the switch restarts in security mode there is at least one user with sufficient privilege to execute critical commands. The switch displays a warning message to this effect and prompts for a confirmation. To cold start the switch using a configuration file named test.cfg instead of the default configuration file, use the command: restart swi config=test.cfg set config show config show exception show startup show system exception

Managing Configuration Files and Software Versions set config 5-39 set config SET CONfig={filename none} on x900-48fe and AT-9900 switches where filename is a file name in the format [device:]filename.ext. Invalid characters are * + = \ [ ] ; :? /, < >, and wildcards. Valid characters are: a maximum of 39 characters uppercase and lowercase letters digits ~! @ # $ % ^ & ( ) _ - { } on x900-24x switches where filename is in the format [device:]filename.ext. Invalid characters are * \ :? / < >. Valid characters are: a maximum of 39 characters uppercase and lowercase letters digits! # $ % & ' ( ) +, -. ; = @ [ ] ^ _ ` { } ~ and space device indicates the physical location where the file is stored, either flash or NVS. The default is flash..ext is a 3-letter text file extension such as.txt and.cfg. This command sets the configuration file that the switch uses as its default configuration. The file is stored in NVS, CFlash, or flash memory on x900-48fe and AT-9900 switches. The file is stored in flash or NVS on x900-24x switches. The command requires a user with security officer privilege when the switch is in security mode. If the switch is operating in security mode, the configuration script must create a user with security officer privilege, so that when the switch restarts in security mode there is at least one user with sufficient privilege to execute critical commands. The switch displays a warning message to this effect and prompts for a confirmation. The config parameter specifies the name of the script or configuration file to use. The file extension must be.scp or.cfg. The file must already exist on the switch. The commands in the script file are executed when the switch is rebooted or performs a warm restart. If none is specified, the switch boots with no configuration file. To set the default configuration file to "myboot.cfg", use the command: set con=myboot.cfg restart create config show config

5-40 set http server AlliedWare OS Software Reference set http server SET HTTP SERVer [POrt=0..65535] [SECurity=ON OFF ENAbled DIsabled True False] [SSLKey=0..65535] This command sets the options for when the switch acts as an HTTP server. Parameter POrt SECurity SSLKey Specifies which TCP port number, from 0 to 65535, the HTTP server is listening on. Default: 80 Specifies whether the HTTP server accepts SSL secured HTTPS connections or unsecured HTTP connections. Default: off ON, ENAbled, True All connections made to the server must be SSL connections. Setting security to on enables SSL on the switch. See Chapter 34, Secure Sockets Layer (SSL) for details on configuring SSL. OFF, DIsabled, False All connections made to the server must be non-ssl connections. The number, from 0 to 65535, of a valid private key ID for SSL operation. This parameter is required when the security parameter is set to on. Default: To change port that the HTTP server is listening on to the TCP port 550, use the command: set http serv po=550 To enable the HTTP server for SSL secured connections with the SSL identification key 5, use the command: set http serv sec=on sslk=5 enable http server reset http server set ssl show http server

Managing Configuration Files and Software Versions set install 5-41 set install for x900-48fe and AT-9900 SET INSTall={TEMPorary PREFerred DEFault} [GUI=[file-name NONE]] [RELease=[release-name] [PATch=[patch-name]] where: release-name is the name of a release file in [device:]filename.ext format. Invalid characters are * + = \ [ ] ; :? /, < >, and wildcards are not allowed. Valid characters are: uppercase and lowercase letters digits ~! @ # $ % ^ & ( ) _ - { } file-name is the name of the GUI resource file to be used. patch-name is the name of the patch file to set in this install. This command sets up release and patch information for one of the installs. It requires a user with Security Officer privilege when the switch is in security mode. The install parameter specifies which install is to be set. The Install module maintains installation information and loads the correct information at bootup. An install is a record that identifies a release, a GUI resource file, and an optional patch. The Install module has three types of installs: temporary, preferred, and default. The default install is the install of last resort. The release for the default install cannot be changed by the manager and is always the EPROM release. The patch for the default install may be set by the manager. The temporary and preferred installs are completely configurable. The release, GUI resource file, and an associated patch may be set. The gui parameter specifies the resource file used when the GUI is accessed. The resource file name includes information about the switch model, the software version, and the language. An example on an AT-9924SP is 9924_291-00_en_d.rsc for the English version of 2.9.1 software. The GUI resource file must exist in flash, possess a valid checksum, be compatible with the product model it is being loaded onto, and be compatible with the current software version. By specifying a null string for filename such as set install=preferred gui=, no resource file is used and so the GUI is unavailable. The GUI is also unavailable if the set install=preferred gui=none command is entered. Changing the GUI resource file causes an implicit reset gui to be performed. The switch reinitialises and reconstructs its index of pointers into the resource file so that the new GUI resource file is accessed correctly. The release parameter specifies the release file for this install. The release file is a filename in the following format for files in the file subsystem: [device:]filename.ext. The default device is flash. You can set the release file for the preferred install to a release file that does not exist in the file system. If the switch reboots before the release file is loaded into the file system, the system boots using the default install.

5-42 set install AlliedWare OS Software Reference The resource file must exist in flash, possess a valid checksum, be compatible with the product model it is being loaded onto, and be compatible with the current software version. By specifying a null string for filename such as set install=preferred gui=, no resource file is used and so the GUI is unavailable. The GUI is also unavailable if the set install=preferred gui=none command is entered. The patch parameter specifies the patch file for this install, and is a file name in the format [device:]filename.ext. The patch file may be resident in NVS or flash. The default is flash. If a patch name is not given, patch file information for a given install is removed and the release file is loaded as the install. You can not set the patch for the preferred install to a file that does not exist in the file system. If the patch parameter is not present, patch file information for a given install is removed and the release file is loaded as the install. A patch file cannot be set up for an install unless a release file is already set up, or a release file is specified in the same command. This stops the inadvertent setting of an install to be just a patch file. When the switch reboots in such a case the particular install is ignored, which may have undesirable effects on operations. To set up the release file 8-240.rez, use the command: set inst=pref rel=8-240.rez delete install help set install for x900-24x reset gui show install show system

Managing Configuration Files and Software Versions set install 5-43 set install for x900-24x SET INSTall={TEMPorary PREFerred} [BASEpackage=package-filename NONE] [Help=help-filename NONE] This command identifies the software that the x900-24x switch uses when it boots up. An install is a record that identifies files installed on the switch. The command requires a user with Security Officer privilege when the switch is in security mode. Parameter INSTall BASEpackage Help Whether the install is temporary, preferred, or fallback. For details about these types, see Install Process command on page 5-13. Default: no default Name and location of the product software. Default: none packagefilename Variable with the following: in [device:] filename.pkg format. When no device is specified, flash is assumed. not case sensitive. can have characters that are uppercase and lowercase letters, digits, # $ % &! ' ( ) +, -. ; = @ [ ] ^ _ ` { } ~ and spaces. If it has spaces, it must be in double quotes. cannot have * \ :? / < > none No base package is specified, which forces the switch to the fallback software. When this and other parameters are set to none, the install record is deleted. Name and location of the CLI help file. The help file is not available when you run fallback software, even if you set it with this command. Default: none help-filename Variable with the following: none in [device:] filename.hlp format. When no device is specified, flash is assumed. not case sensitive. can have characters that are uppercase and lowercase letters, digits, # $ % &! ' ( ) +, -. ; = @ [ ] ^ _ ` { } ~ and spaces. If it has spaces, it must be in double quotes. cannot have * \ [ ] :? / < > No help file is specified. When this and other parameters are set to none, the install record is deleted. To load the base package AT9924s_301-00.pkg, use the command: set inst=pref base=at9924s_301-00.pkg delete install help set install for x900-48fe and AT-9900 reset gui show install show system

5-44 set loader AlliedWare OS Software Reference set loader SET LOAder [ASYn={port DEFault}] [ATTribute={CErt CRl CAcert DEFault}] [BASeobject={dist-name DEFault}] [DELay={delay DEFault}] [DESTFile=destfilename] [DEStination={BOOTblock CFLASH FLash NVs} DEFault] [HTTPproxy={hostname ipadd DEFault}] [METhod={HTTP LDAP SCP TFtp WEB WWW ZModem NONE DEFault}] [{KEYid=key-id PASSword=password DEFault}] [PROxyport={1..65535 DEFault}] [SRCFile FIle=filename] [SErver={hostname ipadd ipv6add DEFault}] [SERVPort={1..65535 DEFault}] [USERName={username DEFault}] where: dist-name is an X.500 distinguished name, as described in Distinguished Names (DN) on page 35-4 of Chapter 35, Public Key Infrastructure (PKI). delay is a time delay, in seconds. for x900-48fe and AT-9900 switches, destfilename is a character string 5 to 20 characters long, specifying the name of the destination file in the switch file system. for x900-24x switches, destfilename is a string 1 to 256 characters long specifying the name of the destination file in the switch file system. hostname is a string 1 to 40 characters long. ipadd is an IP address in dotted decimal notation. ipv6add is a valid IPv6 address. key-id is a decimal ID number of an encryption key used for authentication. password is a string 1 to 60 characters long that is used for basic server authentication. port is the number of an asynchronous port. Ports are numbered sequentially from asyn0. filename is a string 1 to 256 characters long. This is a full path name for the file to load in the syntax of the server where the file is to be loaded. username is a string 1 to 60 characters long that is used for basic server authentication. This command sets defaults for the load command on page 5-31 and upload command on page 5-66. All values that can be specified with the load and upload commands can also be specified as defaults with the set loader command. Parameters not specified in the load and upload commands use this default. All parameters except destfile, srcfile, and file can be returned to their defaults with the default option. The asyn parameter specifies the asynchronous port via which the file is to be downloaded using zmodem or none, or uploaded using zmodem. If default is specified, previous defaults are cleared and the parameter is set to no ASYN port. The asyn parameter is not valid when method is set to http, web, www, scp, ldap, or tftp.

Managing Configuration Files and Software Versions set loader 5-45 The attribute parameter is a keyword specifying the type of object to retrieve from an LDAP repository. A list of currently recognised keywords and their respective object types can be found in the following table. If default is specified, this parameter is set to cert. Keyword cert crl cacert Object type usercertificate certificatereservationlist cacertificate The baseobject parameter is required if the load method is LDAP and specifies the repository location of the object to load in the LDAP distinguished name format. If the string contains spaces, it must be in double quotes. The special characters {, = + < > # ; \ <CR> } must be escaped by typing a \ before the character, as defined in RFC 1779, unless they are used for their prescribed purpose. For example, to include a \ in the string, type \\ and to include a #, type \#. The delay parameter specifies the delay, in seconds, between initiating the file download and the download actually starting. This feature is provided to allow reconfiguration of ports and devices after initiating the download. For example, a manager may be at a remote site with a single PC that must act as both the access device to the switch and the TFTP server. By specifying a delay, the manager has time to reconfigure the PC from terminal emulation mode to TFTP server mode before the download starts. The delay parameter is optional. If default is specified, no delay is set. The destfile parameter specifies the name of the destination file in the switch file system. When method is set to ldap, the extension of the destination file must be valid for the type of object being loaded ("cer" or "crl"). The destination parameter specifies where to store the file. The bootblock option is supported on x900-48fe and AT-9900 switches only. If it is specified, the file is stored in the special boot code area of flash reserved for the switch boot code. Only boot code release files (with extension.fbr) may be loaded to the boot code area. The boot code should not normally need to be upgraded. While loading a new switch boot code file onto the flash boot code area, the switch must not lose power. When the switch goes through a power cycle while writing to the boot block, the code used to reboot the switch will be incomplete, and the switch cannot be rebooted. The switch does not respond to any interfaces while the boot block is being written. The switch should be idle while the boot block is being reloaded. The switch must have sufficient free buffers (about 600) when commencing the download to be able to store the entire boot code. The cflash option is supported on x900-48fe and AT-9900 switches only. If it is specified, the file is stored on the CompactFlash card. The prefix cf is automatically assigned. Patch, release, script, and GUI files may be stored in CFlash. Patch, release, and script may be stored in CFlash. If flash is specified, the file is stored in the Flash File System (FFS) on the switch. Release files, patch files, and script files may be stored in flash. If nvs is specified, the file is stored in the battery-backed non-volatile storage on the switch. Only patch files and script files can be stored in NVS due to the size limitations of NVS. The httpproxy parameter specifies the proxy server used to handle HTTP requests. Either the IP address or the fully qualified domain name of the proxy

5-46 set loader AlliedWare OS Software Reference server may be specified. If a domain name is specified, the switch performs a DNS lookup to resolve the name. If default is specified, this parameter is set to the default, which has no value set for httpproxy and clears previous default settings. The keyid parameter specifies the ID number of a RSA private key that is held on the switch. This parameter is only valid when loading or uploading using SCP. The server receiving the load request must have the public key for this authentication to work. If default is specified, the previous default is cleared and server authentication is not used. The method parameter specifies the method used to download the file. If http is specified, HTTP downloads the file. The web and www options are synonyms for HTTP. If ldap is specified, LDAP downloads the file. If tftp is specified, TFTP downloads the file. If scp is specified, SCP is the default method for loading and uploading. If zmodem is specified, the ZMODEM protocol downloads the file. If none is specified, text files can be downloaded and all input received through the port is directed to the specified file on the switch s file system. The file transfer is terminated by the first control character received that is not a CR or LF character. If default is specified, the parameter is set to tftp. The password parameter (and/or the username parameter) sets a default to use under the HTTP, LDAP or SCP method when server authentication is required. If default is specified, the previous default is cleared and server authentication is not used. The username and password defaults cannot be set to the actual text string default or part of this string (not case sensitive). If the user requires that either the username or password be the word default, it must be specified on the command line when the load command is invoked. The proxyport parameter specifies the port on a proxy server. The proxyport parameter is valid if method is http and httpproxy is specified. If default is specified, this parameter is set to 80. The srcfile or file parameter specifies the name of the file, in the syntax of the server from which the file is downloaded. The file parameter is a full path name rather than just a filename. The only restriction is that the last part of the parameter must be a valid filename for the loader. When method is set to tftp, http, zmodem, or none, valid filenames have the format filename.ext and can be 1 to 32 characters long. The following are examples of valid filenames for tftp, zmodem, or none methods: \user\public\filename.ext ; UNIX or DOS server [network.cfg]filename.ext ; DEC VAX server Starting at the end of the filename and working backwards, the first character not valid in filenames delimits a valid filename for the switch. If the slash at the beginning of the path is omitted in this command, the load command adds it. The following are examples of valid filenames for HTTP method: /path/filename.ext path/filename.ext The server parameter specifies the IP address or the host name (a fully qualified domain name) of the HTTP, SCP or TFTP server from which the file is loaded. If a host name is specified, a DNS lookup is used to translate this to an IP address. See set ip nameserver command on page 13-127 of Chapter 13, Internet Protocol (IP) for more information about setting up name servers. The ping command on page 13-107 of Chapter 13, Internet Protocol (IP) can verify that the switch can communicate with the server via IP. The server parameter is

Managing Configuration Files and Software Versions set loader 5-47 not used when method is set to zmodem or none. The following are examples of valid server names when method is set to http: host.company.com 192.168.3.4 If default is specified, previous defaults are cleared and no value is set for server. The servport parameter optionally specifies the port on the HTTP or LDAP server from which the file is loaded. If default is specified and a load starts, a default is invoked according to the load method. In this case, servport takes a value of 80 for HTTP, and 389 for LDAP. The username parameter (and/or the password parameter) sets a default to use under the SCP, HTTP or LDAP methods if server authentication is required. If default is specified, previous defaults are cleared and server authentication is not used. The username and password defaults cannot be set to the actual text string default or part of this string (not case sensitive). If the user requires that either the username or password be the word default, it must be specified on the command line when the load command is invoked. To set the switch to download files from the TFTP server with IP address 172.16.8.5 by default, use the command: set loa se=172.16.8.5 To clear defaults previously set with the set loader command (except the filename), and restore the factory defaults, use the command: set loa asy=def att=def del=def des=def http=def key=def met=def pas=def pro=def se=def servp=def usern=def load reset loader show loader upload

5-48 show config AlliedWare OS Software Reference show config SHow CONfig [DYNamic[=module-id]] where module-id is the name of a switch module. See Module Identifiers and Names on page B-2 of Appendix B, Reference Tables for a complete list. This command displays the current configuration file for the switch, or the current dynamic configuration for the switch or specific software module. It requires a user with security officer privilege when the switch is in security mode. If no optional parameters are specified, the current default configuration file (set with the set config command on page 5-39) is displayed, along with information about how the current configuration was obtained (Figure 5-1, Table 5-1). The dynamic parameter displays the current dynamic configuration of the switch or of a specific software module. The information displayed is the sequence of switch commands required to recreate the current dynamic configuration. Figure 5-1: Example output from the show config command for x900-24x switches Boot configuration file:startup.cfg (exists) Current configuration:startup.cfg Figure 5-2: Example output from the show config command for x900-48fe and AT-9900 switches Boot configuration file:boot.cfg (exists) Current configuration:boot.cfg Table 5-1: Parameters in output of the show config command Parameter Boot configuration file Meaning The current startup configuration file set with the set config command, and whether the file exists: Not set <filename> (exists) <filename> (doesn t exist) Boot configuration file has not been set Boot configuration file has been set to <filename> and it exists. Boot configuration file has been set to <filename> but it does not exist.

Managing Configuration Files and Software Versions show config 5-49 Table 5-1: Parameters in output of the show config command (cont) Parameter Current Configuration Meaning Source of the current configuration: None The switch started with no configuration because one was not set, a valid CFG file was not found, the DIP switches were not set for a special configuration and there is no NVS in the switch to upgrade from (or the switch release is for model without NVS); or the user entered S in response to the prompt during startup. <filename> (warm start) The x900-48fe or AT-9900 switch started using <filename>, but this was a warm restart (restartswitch conf=<filename>). None (file not found) The switch started with no configuration because the required file was not found. The commands restartswitch conf=<filename> and set conf=<filename> check that the file exists, but it is possible to execute a set config command and then delete the file. <filename> The switch started from the <filename> configuration file. This is the typical case. Receiver sensitivity test script (DIP switch) Remote configuration script (DIP switch) <file> (default) DIP switches on the x900-48fe and AT-9900 switches are set to force the switch to execute a configuration for factory testing. This case should never be seen. DIP switches on the x900-48fe and AT-9900 switches are set to execute a special configuration designed to allow a manager to dial in and configure the switch. There are two DIP switch settings that can cause this message one forces this configuration, and the other runs the special configuration when a valid configuration file is not found (either one set or boot.cfg). The switch started from the default configuration file because a configuration file was not set. The switch looks for the file in NVS first, then in flash memory. To display the default configuration file, use the command: sh con To display the current dynamic configuration of the switch, use the command: sh con dyn To display the current dynamic configuration of just the IPX routed protocol, use the command: sh con dyn=ipx restart create config set config

5-50 show feature AlliedWare OS Software Reference show feature SHow FEAture[={featurename index}] where: featurename is a string 1 to 12 characters long. Valid characters are any printable character. index is a decimal number in the range from 1 to the number of special feature licences. This command displays information about any special feature licences for the switch. The command requires a user with security officer privilege when the switch is in security mode. If a specific feature or index is not entered, summary information about all special feature licences is displayed (Figure 5-3, Table 5-2). If a special feature licence name or index is specified, detailed information about it is displayed (Figure 5-4 on page 5-51, Table 5-3 on page 5-51). Figure 5-3: Example output from the show feature command The Special Feature licences Index FeatureName Licence Period ------------------------------------------------------------ 1 ENCO Full - 2 Test 30 day Trial 16 AUG 2004 to 16 SEP 2004 3 Test2 password incorrect The current valid features: Triple DES Encryption SW Compression Table 5-2: Parameters in output of the show feature command Parameter Index FeatureName Licence Period The current valid features Meaning Index number for this special feature licence. Name assigned to the special feature licence with the enable feature command on page 5-28. Whether the licence is full or a 30-day trial. A password error is displayed if there is a mismatch between the software being licenced and the serial number of the switch. Timeframe for which the trial licence is valid. List of the special features enabled by this licence.

Managing Configuration Files and Software Versions show feature 5-51 Figure 5-4: Example output from the show feature command for a specific special feature licence The special feature licence : ENCO Licence Type : full Period : - The included features : 3des Encryption Table 5-3: Parameters in output of the show feature command for a specific special feature licence Parameter The special feature licence Licence Type Period The included features Meaning Name assigned to the special feature licence with the enable feature command on page 5-28. Whether the licence is full or a 30-day trial. A password error is displayed if there is a mismatch between the software being licenced and the serial number of the switch. Timeframe for which the trial licence is valid. List of the special features enabled by this licence. To display a list of all special feature licences, use the command: sh fea To display detailed information about special feature licence Triple DES, use the command: sh fea="triple DES" disable feature enable feature show release show system licence

5-52 show http client AlliedWare OS Software Reference show http client SHow HTTP CLIent This command displays the current state of the HTTP client (Figure 5-5, Table 5-4). Figure 5-5: Example output from the show http client command HTTP Client ------------------------------------------------------------ Sessions opened... 1 Sessions closed... 1 Transmitted requests... 1 Received replies... 1 ------------------------------------------------------------ Table 5-4: Parameters in output of the show http client command Parameter Sessions opened Sessions closed Transmitted requests Received replies Meaning Number of HTTP client sessions that have been started. Number of HTTP client sessions that have been closed. Number of HTTP GET and POST requests the client has transmitted. Number of HTTP responses the client has received. To display the current status of the HTTP client, use the command: sh http cli set http server show http client show http debug show http server show http server session

Managing Configuration Files and Software Versions show http server 5-53 show http debug SHow HTTP DEBug This command displays the debugging options currently enabled for the HTTP server (Figure 5-6). For possible debug modes, see the enable http debug command. Figure 5-6: Example output from the show http debug command Enabled Debug Modes ------------------------------------------------------- AUTH,MSG ------------------------------------------------------- To display the currently enabled debugging modes for the HTTP server, use the command: sh http deb disable http debug enable http debug show http client show http server show http server session show http server SHow HTTP SERVer This command displays configuration and status information for the HTTP server (Figure 5-7, Table 5-5 on page 5-54). Figure 5-7: Example output from the show http server command HTTP Server ------------------------------------------------------------ Status... Enabled SSL Security... OFF SSL Key ID... - Port... 80 Listen port... Open Sessions opened... 12 Sessions closed... 12 Received requests... 205 Unknown requests... 0 Transmitted replies... 205 Aborted replies... 0 Transmitted replies on bad session... 0 Authorisation successes... 202 Authorisation failures... 3 ------------------------------------------------------------

5-54 show http server AlliedWare OS Software Reference Table 5-5: Parameters in output of the show http server command Parameter Status SSL Security SSL Key ID Port Listen port Sessions opened Sessions closed Received requests Unknown requests Transmitted replies Aborted replies Transmitted replies on bad session Authorisation successes Authorisation failures Meaning Whether the HTTP server is enabled. Whether the HTTP server is enabled for SSL secured connections. If on, the HTTP server accepts SSL secured connections; if off, the HTTP server accepts connections not secured with SSL. Identification number for the private key used for encryption. TCP port that the HTTP server is listening on. Whether the HTTP server s TCP listen port is open or closed. Number of HTTP server sessions that have been started. Number of HTTP server sessions that have been closed. Number of HTTP GET and POST requests the server received. Number of unrecognised HTTP requests the server received. Number of HTTP responses the server transmitted. Number of HTTP replies the server aborted. Number of HTTP replies the server transmitted for bad sessions. Number of successful HTTP authorisations. Number of failed HTTP authorisations. To display the current status of the HTTP server, use the command: sh http serv disable http server enable http server set http server show http client show http server session

Managing Configuration Files and Software Versions show http server session 5-55 show http server session SHow HTTP SERVer SESSion This command displays TCP session information for the HTTP server (Figure 5-8, Table 5-6). Figure 5-8: Example output from the show http session command Client IP Interface Current User State ------------------------------------------------------------ 127.0.0.1 vlan1 manager RECEIVING_REQ 127.0.0.1 vlan1 manager RECEIVING_REQ ------------------------------------------------------------ Table 5-6: Parameters in output of the show http server session command Parameter Client IP Interface Current User State Meaning IP address of the client using the session. IP interface through which the client session is running. User name used to authenticate the session. Status of the HTTP server session: Awaiting_req Proc_keepup_req Proc_close_req Receiving_req Closing To display TCP session information for the HTTP server, use the command: sh http sess set http server show http client show http debug show http server

5-56 show install AlliedWare OS Software Reference show install SHow INSTall This command displays the product software installed on the x900-24x switches, including the base package and help file (Figure 5-9, Table 5-7). For x900-48fe and AT-9900 switches, this command shows install information, the install that the switch is currently running, and the history of checking install information at boot. This information includes the release file, patch file used, and GUI resource file if applicable (Figure 5-10, Table 5-7). If the selected GUI resource file fails to pass validation checks on boot up, described under the set install command on page 5-41, the install does not fail. Instead, the release and patch files are installed, but the GUI resource file is not installed. The success or failure of this validation is recorded in the install history section of the command output. Figure 5-9: Example output from the show install command after a new release file is installed on x900-24x switches Install Package GUI Help -------------------------------------------------------------- Temporary - - Preferred AT9924s_301-00.pkg - 9900301a.hlp Fallback AT9924s_fb301-00.pkg - -------------------------------------------------------------- Current install -------------------------------------------------------------- Preferred AT9924s_301-00.pkg - 9900301a.hlp -------------------------------------------------------------- Figure 5-10: Example output from the show install command after a new release file is installed on x900-48fe and AT- 9900 switches Install Release Patch GUI --------------------------------------------------------------------- Temporary - - - Preferred flash:55-291.rez - 750s_291-00_en_d.rsc Default EPROM (PR1-1.1.0) - - --------------------------------------------------------------------- Current install --------------------------------------------------------------------- Preferred flash:55-291.rez - 750s_291-00_en_d.rsc --------------------------------------------------------------------- Install history --------------------------------------------------------------------- No Temporary release selected Preferred release selected Preferred release successfully installed Preferred GUI successfully installed ---------------------------------------------------------------------

Managing Configuration Files and Software Versions show install 5-57 Table 5-7: Parameters in output of the show install command Parameter Install Package GUI Help Release Patch Dmp Current install Install history Meaning Types of files available to run: temporary, preferred, default or fallback, depending on the switch. Filenames of packages that are installed and currently used on the x900-24x switch. GUI resource file installed and currently used on the AT-9900, if any. The filename is displayed regardless of whether the GUI is enabled. Help files installed and currently used on the x900-24x switch. Release filename used on x900-48fe and AT-9900 switches. Patch filename used x900-48fe and AT-9900 switches. Third-party data manipulation program for the install, if any. This is not present on most models and software releases. Names of files currently running on x900-48fe and AT-9900 switches. A list of checks carried out on x900-48fe and AT-9900 switches during the install boot. The list shows how the current install was selected and loaded. delete install set install show system

5-58 show ldap AlliedWare OS Software Reference show ldap SHow LDAP [DEBug] This command summarises information about the LDAP module (Figure 5-11, Table 5-8). If debug is specified, debug status for the LDAP module is displayed. Figure 5-11: Example output from the show ldap command LDAP Module Information: Number of outstanding requests: 2 Open Request Summary: Request ID... 2 Level... Top Level Status... BINDING TO SERVER Request ID... 1 Level... Top Level Status... BINDING TO SERVER LDAP module trace debugging: Current Status... DISABLED Debug Device... 16 Table 5-8: Parameters in output of the show ldap command Parameter Number of outstanding requests Request ID Level Status Debugging Current Status Debug Device Meaning Number of currently active requests in the LDAP module database. ID allocated to the request by the LDAP module. Level where the request was initiated: Top Level - the request was initiated from outside of the module (by the user or another module) Subordinate - the LDAP module generated the request internally Current status of the request in progress: Binding to server - attempting to establish a connection to the LDAP server Waiting for result - waiting for the server to send the results of the requested operation Abandoned - the operation has been abandoned by the original requester Status of module trace debugging; either enabled or disabled. Device last or currently receiving debug information. To show the current state of the LDAP module, use the command: sh ldap show ldap request

Managing Configuration Files and Software Versions show ldap request 5-59 show ldap request SHow LDAP REQuest[={ALL number}] where number is the request identification number of an open request This command displays information about LDAP requests (Figure 5-12, Table 5-9). If the request parameter is specified with the identification number of an open request, information is displayed for that request. Figure 5-12: Example output from the show ldap request command Show all LDAP Requests: Info for Request ID 1: Schema... PKI Operation... Read Request Level... Top Level Request Status... BINDING TO SERVER Host IP/Port... 192.168.3.4:389 BindDN/User... Password... Base Object DN... cn=joe Blobbs,dc=blobby,dc=com Scope... Base Object Only Return Objects... usercertificate Get Names Only... False Search Filter... (objectclass=*) Table 5-9: Parameters in output of the show ldap request command Parameter Schema Operation Request Level Request Status Host IP/Port BindDN/User Password Base Object DN Meaning LDAP Schema under which the request was made. Whether the operation requested under the schema is read or search. Level where the request was initiated: Top Level - the request was initiated from outside of the module (by the user or another module) Subordinate - the request was generated internally by the LDAP module Current status of the request in progress: Binding to server - attempting to establish a connection to the LDAP server Waiting for result - waiting for the server to send the results of the requested operation) Abandoned - the operation has been abandoned by the original requester) IP address and port of the LDAP server. Server authentication username. Server authentication password. Base object for the requested LDAP operation; a distinguished name in the format shown in Distinguished Names (DN) on page 35-4 of Chapter 35, Public Key Infrastructure (PKI).

5-60 show ldap request AlliedWare OS Software Reference Table 5-9: Parameters in output of the show ldap request command (cont) Parameter Scope Return Objects Get Names Only Search Filter Meaning Scope of objects in the X.500-like directory to which the operation should apply: Base Object Only Single Level Whole Subtree Type of objects to be returned as a result of a read or search operation. Whether the objects names are returned (True) or their values also (False). LDAP filter for the operation. To show LDAP requests in detail, use the command: sh ldap req show ldap

Managing Configuration Files and Software Versions show loader 5-61 show loader SHow LOAder This command displays defaults for the loader. It also shows the progress of the current load on x900-48fe and AT-9900 switches (Figure 5-13, Table 5-10). Figure 5-13: Example output from the show loader command Loader Information ------------------------------------------------------------------------------ Defaults: Method... TFTP File... /netupgrades/new.cfg Destination File... - Server... tftp.company.com (192.168.1.1) HTTP Proxy... - Proxy Port... Default ( 80 ) Asyn... - Destination... Flash Delay (sec)... 0 Current Load: Method... HTTP File... myserver/newreleasefiles/releaseupgrades/mycurrentproducts /netupgrades/ospf.cfg Destination File... - Server... www.company.com (192.168.163.22) TCP Port... 80 Destination... Flash Delay (sec)... 0 Status... Loading Bytes received... 24371 Load Level... 8% ------------------------------------------------------------------------------ Table 5-10: Parameters in output of the show loader command Parameter Defaults Current Load Last Load Method File Destination File Server HTTP Proxy Proxy Port TCP Port Meaning Defaults used as parameters not specified in the load and upload commands. Values currently being used to load a file to or from the switch. Values last used to load a file to or from the switch. Method used to load files, one of: LDAP, SCP, TFTP, HTTP, WEB, WWW, ZMODEM, or None. Name of the file being copied. Name assigned to the new file copy. This defaults to the original file name if not specified. IP address or host name of the server. Used when method is set to SCP, TFTP or HTTP. IP address or host name of the proxy server when method is set to HTTP and access is via a proxy server. The port number of the proxy server, if the load method is HTTP and httpproxy is specified. TCP port used during a load using HTTP.

5-62 show loader AlliedWare OS Software Reference Table 5-10: Parameters in output of the show loader command (cont) Parameter LDAP BaseobjectDN LDAP Username LDAP Password LDAP Attribute Username Asyn Destination Delay Status Bytes received Load Level Last Message Meaning The repository location of the object to load if using LDAP. Displays only if LDAP is the load method. The LDAP username set. Displays only if LDAP is the load method. The LDAP password set. Displays only if LDAP is the load method. The type of object being retrieved from an LDAP repository. Displays only if LDAP is the load method. The username set for the load or upload. This displays only if a username is set. The asynchronous port via which the file is being loaded using ZMODEM or none, or uploaded using ZMODEM. Where the file is stored, or will be stored The delay, in seconds, between initiating the file download and the download actually starting. Current status of the load or upload. Number of bytes loaded thus far. For x900-24x switches only. The percentage of the file transfer completed. For x900-48fe and AT-9900 switches only. Last error or informational message sent to the device where the last load command was issued. At switch boot up, the Last Message is undefined and displays a dash. This is not displayed when the loader status is "Loading". load set loader upload

Managing Configuration Files and Software Versions show release 5-63 show patch SHow PATch This command displays all patch files stored in NVS and flash memory on x900-48fe and AT-9900 switches (Figure 5-14, Table 5-11). Figure 5-14: Example output from the show patch command Patch files Name Device Size Version --------------------------------------------- 28-74.pat flash 376032 7.4.0-11 28760-02.paz flash 109644 7.6.0-02 --------------------------------------------- Table 5-11: Parameters in output of the show patch command Parameter Name Device Size Version Meaning Name of the patch file. Whether the device where the patch is physically stored is flash, cflash, or NVS. Size of the patch file in bytes expressed as a decimal number. Version number of the patch, consisting of the version number of the version to which the patch applies, followed by a hyphen, and the generation number of the patch itself. load show release SHow RELease This command shows release licence information on x900-48fe and AT-9900 switches (Figure 5-15, Table 5-12 on page 5-64). All releases that have a licence are displayed, along with the status of the licence. Figure 5-15: Example output from the show release command Release Licence Period --------------------------------------------------------------------------------- flash:load\28-74ang.rel full - flash:load\28-761.rel 30 day trial 10-May-1998 to 10-Jun-1998 ---------------------------------------------------------------------------------

5-64 show system licence AlliedWare OS Software Reference Table 5-12: Parameters in output of the show release command Parameter Release Licence Period Meaning Full name of the release file. Whether the licence is full or a 30-day trial. Period of the licence when it is a 30-day trial. disable release enable release show system licence SHow SYStem LICence This command shows licence information on the x900-24x switch (Figure 5-16, Table 5-13). All releases that have a licence are displayed along with the status of the licence. For more information about licencing, see Licencing on page 5-15. Figure 5-16: Example output from the show system licence command Package Licence Period ------------------------------------------------------------ AT9924s_302-00.pkg 30 day trial 10-MAR-2005 to 10-APR-2005 AT9924s_301-01.pkg full - ------------------------------------------------------------ Table 5-13: Parameters in output of the show system licence command Parameter Package Licence Period Meaning Full name of the product software file. Whether the licence is full or a 30-day trial. A password error is displayed if there is a mismatch between the software being licenced and the serial number of the switch. Period of the licence when it is a 30-day trial. To display licencing information about the switch, use the command: sh sys lic disable basepackage enable basepackage show system package show feature

Managing Configuration Files and Software Versions show system package 5-65 show system package SHow SYStem PACKage[=package-filename] This command displays information about software package files on the x900-24x switch (Figure 5-17, Table 5-14). Filenames are displayed along with information about the version, type, and size. Parameter PACKage PKG file type, such as base package and fallback. Default: no default packagefilename none specified Name and location of a specific package file as follows: in [device:] filename.pkg format. When no device is specified, flash is assumed. not case sensitive All files in the file system that end with a.pkg extension. Figure 5-17: Example output from the show system package command Package Version Type Size Process Size --------------------------------------------------------- AT9924s_301-00.pkg 3.0.1 Base 3876425 System.img 4098 Product_App.img 46525 AT9924s_302-00.pkg 3.0.2 Base 6544923 System.img 5024 Product_App,img 4675 --------------------------------------------------------- Table 5-14: Parameters in output of the show system package command Parameter Package Version Type Size Process Size Meaning Full name of the package file. Version of the software in the package file. Whether the type of package is base or fallback. Size in bytes of the package file. Name of the process partition in the package file. Size in bytes of the process partition in the package file. To display information about the base package AT9924s_301-00.pkg, use the command: sh sys pack=at9924s_301-00.pkg show system licence

5-66 upload AlliedWare OS Software Reference upload UPLoad [METhod=SCP] [DESTFile=path/destfilename] [FIle=filename] [{KEYid=key-id PASSword=password}] [SErver={hostname ipadd ipv6add}] [USERName=username] UPLoad [METhod=TFtp] [DESTFile=path/destfilename] [FIle=filename] [SErver={hostname ipadd ipv6add}] UPLoad [METhod=ZModem] [ASYn=port] [DESTFile=destfilename] [FIle=filename] where: filename is the name of a local file to upload. This may be a full path name for the file in the syntax of the TFTP server. Certain file types cannot be uploaded, such as UKF or STK. ipadd is an IP address in dotted decimal notation. ipv6add is a valid IP address. hostname is a string up to 40 characters long. key-id is a decimal ID number of an encryption key used for authentication. password is a string 1 to 60 characters long that is used for basic server authentication. port is the number of an asynchronous port. Ports are numbered sequentially starting with asyn 0. username is a string 1 to 60 characters long that is used for basic server authentication. path is a character string specifying the destination file location path on the server. The combination of path and filename can be a maximum of 256 characters long. destfilename is a string 1 to 256 characters long specifying the name of the destination file in the TFTP server file system. This command uploads a file from the switch using SCP, TFTP or ZMODEM. This command requires a user with security officer privilege when the switch is in security mode. Any parameters that are not specified use the defaults set with the set loader command on page 5-44. Some parameters are invalid or have different meanings depending on the method that downloads the file. The asyn parameter specifies the asynchronous port where the file is uploaded if the method parameter is set to zmodem. The asyn parameter is not used when method is set to tftp or scp. If method is set to zmodem, the asyn parameter is required unless it was set with the set loader command on page 5-44. The destfile parameter specifies the name that the file is saved under in the destination file system. For SCP and TFTP, you can specify a path as well as a filename. The file parameter specifies the name of the file on the switch s file system and should be a fully qualified filename, including the device name. This

Managing Configuration Files and Software Versions upload 5-67 parameter is required unless it was already set with the set loader command on page 5-44. The keyid parameter specifies the ID number of a RSA private or public key that is held on the switch. This parameter is only valid when uploading using SCP. The server receiving the upload request must have the public key for this authentication to work. The method parameter specifies the method that uploads the file. If tftp is specified, TFTP uploads the file. If method is tftp, the file and server parameters are required. If scp is specified, SCP uploads the file. When scp is specified, the username parameter must be set, along with either the password or keyid parameter. If zmodem is specified, the ZMODEM protocol uploads the file. Only text files can be uploaded with method set to zmodem. The default is tftp, unless another method has been specified using the set loader command on page 5-44. You can specify the other required parameters for the chosen method with either the upload or set loader command. The password parameter specifies the password for server authentication, if RSA authentication is not being used. This parameter is only valid when uploading using SCP. As the password is typed it appears as plain text on the screen, so it should only be used in a secure area. The server parameter specifies the IP address or the host name (a fully qualified domain name) of the TFTP server where the file is uploaded. If a host name is specified, a DNS lookup translates this to an IP address. See the set ip nameserver command on page 13-127 of Chapter 13, Internet Protocol (IP) for more information about setting up name servers. Use the ping command on page 13-107 of Chapter 13, Internet Protocol (IP) to verify that the switch can communicate with the server via IP. The server parameter is required if method is tftp, unless it was previously set by the set loader command on page 5-44. The server parameter cannot be used when method is zmodem. The username parameter specifies the username needed when uploading using SCP. To upload show.scp stored in flash memory to a TFTP server with an IP address of 172.16.8.5, use the command: upl fi=show.scp se=172.16.8.5 To upload the file debug.txt to a SCP server with the IP address 172.16.8.5, use the command: upl met=scp fo=debug.txt destf=/tmp/debug.txt se=172.16.8.5 usern=username password=password To upload the reallylongfile.scp file from an x900-48fe switch to the TFTP server s download directory, with an IP address of 172.16.8.5 so that the server saves the file as 52-240.scp, use the command: upl fi=/downloads/reallylongfile.scp se=172.16.8.5 destf=52-240.scp load set loader show file in Chapter 6, Managing the File System show loader