H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Firmware Version 9.0.
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute the warranty of any kind, express or implied.
Table of Contents Preface Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Command Line Interface Usage Logging In to the Switch Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Opening and Closing an Admin Session . . . . . . . . . . . . . . . . . . . . . . . . . . . Entering Commands. . . . . . . . . . . . . . . . .
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Fibre Channel over Ethernet Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . Displaying Virtual LAN Information . . . . . . . . . . . . . . . . . . . . . . . Creating Virtual LANs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Deleting Virtual LANs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding Ports to a Virtual LAN . . . . . . . . . . . . . . . . . . . . . . .
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide 4 Switch Module Configuration Displaying Switch Module Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Switch Module Operational Information. . . . . . . . . . . . . . . . . . . . . . . . System Process Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Elapsed Time Between Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration Information . .
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Changing the Port Administrative State. . . . . . . . . . . . . . . . . . . . . . . . Changing the Port Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mapping Transparent Fabric Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Resetting a Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Deleting a Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modifying a Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Renaming a Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copying a Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Image. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ipsec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ipsec Association. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ipsec List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Show Pagebreak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Show Perf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Show Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Show Post Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Show Setup Callhome .
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 x Call Home Service Configuration Defaults. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Switch Module Configuration Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Port Configuration Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Preface This guide describes the features and use of the command line interface for the H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches running firmware version 9.0.7. This product is referred to as the Switch Module throughout this guide. The Switch Module is a fully integrated Ethernet, Fibre Channel, and FCoE switch module. This guide is organized as follows: This preface describes the Switch Module and features, the intended audience, related materials, and technical support.
Preface Intended Audience Intended Audience This guide is intended for individuals who are responsible for installing and servicing Fibre Channel equipment using the command line interface. Related Materials The following manuals and materials are referenced in the text and/or provide additional information.
1 Command Line Interface Usage Your Switch Module contains an embedded Telnet server. This server enables a Telnet client to establish a Telnet session with the Switch Module to retrieve information or to configure parameters using the CLI. You can use the CLI to perform a variety of fabric and Switch Module management tasks through an Ethernet connection to your server unit.
Command Line Interface Usage Logging In to the Switch Module NOTE: Throughout this document, references in text to commands and keywords use initial capitalization for clarity. Actual command and keyword entries are case insensitive.
Command Line Interface Usage Opening and Closing an Admin Session Opening and Closing an Admin Session The command line interface performs monitoring and configuration tasks. Commands that perform monitoring tasks are available to all user accounts. Commands that perform configuration tasks are available only after entering the Admin Start command to open an Admin session. A user account must have Admin authority to enter the Admin Start command.
Command Line Interface Usage Getting Help Getting Help To display help for a command, enter the Help command followed by the command. The following is an example of the help that is available for the Config Edit command. H3C #> help config edit config edit [CONFIG_NAME] This command initiates a configuration session and places the current session into config edit mode. If CONFIG_NAME is given and it exists, it gets edited; otherwise, it gets created.
Command Line Interface Usage Setting Page Breaks Setting Page Breaks Some display commands deliver so much information to the screen that it scrolls off too quickly to read it. You can limit the display to 20 lines by turning on page breaks. By default, page breaks are turned off.The following is an example of how to turn page breaks on and how it affects the display.
Command Line Interface Usage Creating a Support File Creating a Support File If you contact technical support about a problem with your Switch Module, they may request that you create and send a support file. This support file contains all of the Switch Module configuration information which can be helpful in diagnosing the problem. The Create Support command creates the support file (dump_support.tgz) on the Switch Module.
Command Line Interface Usage Creating a Support File If your workstation does not have an FTP server, enter the Create Support command to create the support file, and use FTP to download the support file from the Switch Module to your workstation as shown in the following example: H3C #> create support Log Msg:[Creating the support file - this will take several seconds] FTP the dump support file to another machine? (y/n): n To download the support file from the Switch Module to the workstation, do the fol
Command Line Interface Usage Downloading and Uploading Files Downloading and Uploading Files There are several files that reside on the Switch Module that you can download to the workstation for examination or for safekeeping. These files include the following: Backup configuration file (configdata) Log files (logfile) Support files (dump_support.
Command Line Interface Usage Downloading and Uploading Files To upload a file from the workstation to the Switch Module, do the following 1. Enter the FTP command and the Switch Module IP address or symbolic name. >ftp 192.168.70.129 2. When prompted for a user and password, enter the FTP account name and password (images, images). user:images password: images 3. Set binary mode and use the Put command to upload the file (config_switch_169).
Command Line Interface Usage Downloading and Uploading Files 10 59272-00 C
2 User Account Configuration User accounts and their respective passwords are the first line of Switch Module security. A user account consists of an account name, an authority level, and an expiration date. Switch Modules come from the factory with certain user accounts defined for special purposes. Table 2 describes these accounts, their passwords, and their purposes. These accounts cannot be deleted from the Switch Module. Table 2.
User Account Configuration Displaying User Account Information Displaying User Account Information You can display all user accounts defined on the Switch Module (User Accounts command) or just those user accounts that are logged on (User List or Show Users commands). The following example displays all user accounts defined on the Switch Module. Account information includes account name, authority, and expiration date.
User Account Configuration Creating User Accounts Creating User Accounts A user account consists of an account name, an authority level, and an expiration date. The account name can be up to 15 characters and must begin with an alphanumeric character. The authority level grants admin authority (true) or denies it (false). The expiration date sets the date when the user account expires. Only the Admin user account can create user accounts.
User Account Configuration Modifying User Accounts and Passwords Modifying User Accounts and Passwords Only the admin account can modify a user account, delete a user account, or change the password of another user account. However, all user accounts can change their own passwords. The User command modifies and deletes user accounts. The Passwd command changes passwords. The following example removes the expiration date and admin authority for the user account named user1.
3 Network and Fabric Configuration Network configuration consists of the IP parameters that identify the Switch Module in the network and provide for IP security.
Network and Fabric Configuration Displaying the Network Configuration Displaying the Network Configuration The Show Setup System command displays the entire switch network configuration, which includes the following: IP configurations DNS server configuration To display specific information, add the corresponding keyword.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Configuring Fibre Channel over Ethernet The Switch Module is capable of passing FCoE traffic through the configuration of virtual local area networks (VLANs) and FCoE forwarders (FCFs). This section describes the configuration tasks and provides examples of how to configure the Ethernet switch and the Switch Module for one and two SAN fabrics.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Creating Virtual LANs The Switch Module comes from the factory configured with all internal ports (4–7) in the default VLAN 1002. You can create up to four additional VLANs for a maximum total of five. To create additional VLANs, use the Vlan Create command as shown in the following example. H3C (admin) #> admin start H3C (admin) #> config edit The config named default is being edited.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Deleting Virtual LANs Deleting a VLAN returns the member ports to the default VLAN 1002. To delete a VLAN, use the Vlan Delete command as shown in the following example. H3C (admin) #> vlan list Active VLAN Information VLAN 1002 Ports 5-7 VLAN 1003 Ports 4 H3C (admin) #> H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> vlan 1003 delete The VLAN will be deleted.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Adding Ports to a Virtual LAN To add ports to an existing VLAN, use the Vlan Add Port command. The following example adds internal ports 4, 5, and 6 to VLAN 1003. Ports can be assigned to only one VLAN at a time. For example, if port 4 is currently assigned to VLAN 1002, and you add port 4 to VLAN 1003, port 4 is automatically removed from VLAN 1002. H3C (admin) #> config edit The config named default is being edited.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Removing Ports from a Virtual LAN To remove ports from a VLAN, use the Vlan Remove command. The following example removes port 4 from VLAN 1003 and returns it to the default VLAN 1002. H3C (admin) #> vlan list Active VLAN Information VLAN 1002 Ports 7 VLAN 1003 Ports 4-6 H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> vlan 1003 remove port 4 Port 4 has been removed from VLAN 1003.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Displaying FCoE Forwarder Information To display FCF information, use the Fcf List command.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Creating FCoE Forwarders The Switch Module can have multiple FCFs in addition to the default. Multiple FCFs apply only when attaching to multiple fabrics. To create an FCF, use the Fcf Create command as shown in the following example: H3C #> admin start H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> fcf 0efc01 create A list of attributes with formatting and default values will follow.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Modifying FCoE Forwarders To modify an FCoE forwarder, use the Fcf Edit command as shown in the following example: H3C #> admin start H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> fcf 0efc01 edit A list of attributes with formatting and default values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Deleting FCoE Forwarders To delete an FCF, use the Fcf Remove command as shown in the following example. H3C #> admin start H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> fcf 0efc01 delete The FCF will be deleted. Please confirm (y/n): [n] y The FCF has been deleted.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Adding a VLAN to an FCoE Forwarder You can add a VLAN to an FCF as shown in the following example. An FCF can have only one VLAN. H3C #> admin start H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> fcf 0efc01 add vlan 99 This configuration must be saved (see 'config save' command) and activated (see 'config activate' command) before it can take effect.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Removing VLANs from an FCoE Forwarder A VLAN can be removed from an FCF as shown in the following example: H3C #> admin start H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> fcf 0efc01 remove vlan 99 VLAN 99 has been removed from FCF 0efc01. This configuration must be saved (see 'config save' command) and activated (see 'config activate' command) before it can take effect.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet To configure the Ethernet Switch: 1. Enter System View. system-view 2. Create VLAN 1002 for the Fibre Channel fabric. vlan 1002 3. Enable LLDP function. system-view lldp enable 4. Enable APP function. acl number 4000 rule 0 permit type 8906 ffff rule 1 permit type 8914 ffff traffic classifier fcoe operator or if-match acl 4000 traffic behavior fcoe remark dot1p 3 qos policy fcoe classifier fcoe behavior fcoe mode dcbx 5.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet priority-flow-control no-drop dot1p 3 qos apply policy fcoe outbound qos trust dot1p lldp tlv-enable dot1-tlv dcbx quit Internal ports: interface Ten-GigabitEthernet1/1/1 port link-type trunk port trunk permit vlan 1 1002 priority-flow-control auto priority-flow-control no-drop dot1p 3 qos trust dot1p lldp tlv-enable dot1-tlv dcbx quit interface Ten-GigabitEthernet1/1/2 port link-type trunk port trunk permit vlan 1 1002 priority-flow
Network and Fabric Configuration Configuring Fibre Channel over Ethernet To configure Switch Module A: 1. Open a Config Edit session. H3C #> admin start H3C (admin) #> config edit 2. Create a VLAN and an FCF, and assign the VLAN to the FCF. This example uses the default VLAN 1002. If you want a different VLAN number, you can create one. H3C (admin-config) #> fcf 0efc01 create H3C (admin-config) #> fcf 0efc01 add vlan 1002 3. Assign internal ports to VLAN 1002.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet 5. Save and activate the Switch Module A configuration. H3C (admin-config) #> config save H3C (admin) #> config activate To configure Switch Module B: 1. Open a Config Edit session. H3C #> admin start H3C (admin) #> config edit 2. Create a VLAN and an FCF, and assign the VLAN to the FCF. H3C (admin-config) #> fcf 0efc01 create H3C (admin-config) #> fcf 0efc01 add vlan 1002 3. 59272-00 C Assign internal ports to VLAN 1002.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet 4. Map Switch Module B internal ports to the external ports. Normally, you would map all internal ports to maximize bandwidth. However for illustration purposes, this example maps internal ports 4 and 5 each to external ports 0 and 1.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Two-SAN Fabric Configuration This example explains how to configure connectivity for the Ethernet switch and two Switch Modules for two SAN fabrics as shown in Figure 2. Figure 2. Two-SAN Fabric Connectivity To configure the Ethernet switch: 1. Enter System View. system-view 2. Create VLANs 1002 and 1003 for the Fibre Channel fabric. vlan 1002 vlan 1003 3. Enable LLDP function. system-view lldp enable 4. Enable APP function.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet 5. Enable VLAN 1002, VLAN 1003, and DCBX/PFC/APP functions on the Ethernet switch external and interal ports.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet Internal ports: interface Ten-GigabitEthernet1/1/1 port link-type trunk port trunk permit vlan 1 1002 priority-flow-control auto priority-flow-control no-drop dot1p 3 qos trust dot1p lldp tlv-enable dot1-tlv dcbx quit interface Ten-GigabitEthernet1/1/2 port link-type trunk port trunk permit vlan 1 1003 priority-flow-control auto priority-flow-control no-drop dot1p 3 qos trust dot1p lldp tlv-enable dot1-tlv dcbx quit interface Ten-Giga
Network and Fabric Configuration Configuring Fibre Channel over Ethernet To configure Switch Module A: 1. Open a Config Edit session. H3C #> admin start H3C (admin) #> config edit 2. Assign internal ports to VLAN 1002. Because all internal ports (4–7) are assigned to VLAN 1002 by default, no further configuration is needed. 3. Create VLANs and their corresponding FCFs, and assign the VLANs to the FCFs. This example uses the default VLAN 1002 and creates VLAN 1003.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet 5. Map Switch Module A internal ports to external ports. Normally, you would map all internal ports to maximize bandwidth. However, for illustration purposes, this example maps internal port 4 to external port 0, and maps internal port 5 to external port 1.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet 7. Save and activate Switch Module A configuration. H3C (admin-config) #> config save H3C (admin) #> config activate To configure Switch Module B: 1. Open a Config Edit session. H3C #> admin start H3C (admin) #> config edit 2. Assign internal ports to VLAN 1002. Because all internal ports (4–7) are assigned to VLAN 1002 by default, no further configuration is needed. 3.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet 5. Map Switch Module B internal ports to external ports. Normally, you would map all internal ports to maximize bandwidth. However, for illustration purposes, this example maps internal port 4 to external port 0 and maps internal port 5 to external port 1.
Network and Fabric Configuration Configuring Fibre Channel over Ethernet 6. Assign CNA MAC addresses to their respective FCFs and enable CNA-MAC-address checking on the switch. This will ensure that each FCF responds to one and only one CNA.
Network and Fabric Configuration DNS Server Configuration DNS Server Configuration A DNS server manages the host names for a fabric. This enables you to specify servers and switches by a meaningful name rather than IP address. To configure a DNS server, enter the Set Setup System Dns command in an Admin session as shown in the following example: H3C (admin) #> set setup system dns A list of attributes with formatting and current values will follow.
Network and Fabric Configuration Displaying the Ethernet Network Configuration Displaying the Ethernet Network Configuration The Show Setup System command displays the entire switch network configuration, which includes the following: IP configurations DNS server configuration To display specific information, add the corresponding keyword. For example, to display DNS configuration information, enter the Show Setup System DNS command.
Network and Fabric Configuration Verifying a Switch Module in the Network Verifying a Switch Module in the Network You can verify that a Switch Module is communicating in the network using the Ping command. The following example successfully tests the network for a Switch Module with IP address 10.20.11.57. H3C #> ping 10.20.11.57 Ping command issued. Waiting for response... H3C #> Response successfully received from 10.20.11.57. If the Switch Module was unreachable, you would see the following display.
Network and Fabric Configuration Managing IP Security To remove all IP security policies and associations, enter the Reset Ipsec command.
Network and Fabric Configuration Managing IP Security A security association defines the encryption algorithm and encryption key to apply when called by a security policy. A security policy may call several associations at different times, but each association is related to only one policy. The security association database is the set of all security associations.
Network and Fabric Configuration Managing IP Security Policy and Association Information To display general or specific policy and association information, enter the Ipsec List command. The Ipsec List command does not require an Admin session nor an Ipsec Edit session. Within an Ipsec Edit session, the Ipsec Association List and Ipsec Policy List commands display the same information.
Network and Fabric Configuration Managing IP Security IP Security Configuration Limits To display a summary of the objects in the IP Security configuration and their maximum limit, enter the Ipsec Limits command to as shown in the following example: H3C #> ipsec limits Configured (saved) IPsec Information IPsec Attribute Maximum Current --------------- ------- ------- MaxConfiguredSAs 512 0 MaxConfiguredSPs 128 0 In an Ipsec Edit session, Ipsec Limits command displays the number of both configu
Network and Fabric Configuration Managing IP Security Creating a Policy To create a policy, enter the Ipsec Policy Create command as shown in the following example H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec policy create h2h-sh-sp A list of attributes with formatting will follow. Enter a value or simply press the ENTER key to skip specifying a value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Network and Fabric Configuration Managing IP Security Deleting a Policy To delete a user-defined policy, enter the Ipsec Policy Delete command as shown in the following example: H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec policy delete policy_1 The security policy will be deleted. Please confirm (y/n): [n] y H3C (admin-ipsec) #> ipsec save The IPsec configuration will be saved and activated.
Network and Fabric Configuration Managing IP Security Modifying a User-Defined Policy To modify an existing user-defined policy, enter the Ipsec Policy Edit command in an Admin session and an Ipsec Edit session as shown in the following example. An asterisk (*) indicates a required entry. H3C (admin-ipsec) #> ipsec policy edit h2h-sh-sp A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Network and Fabric Configuration Managing IP Security Renaming a User-Defined Policy To rename a policy (policy_1), enter the Ipsec Policy Rename command as shown in the following example: H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec policy rename policy_1 policy_4 The security policy will be renamed. Please confirm (y/n): [n] y H3C (admin-ipsec) #> ipsec save The IPsec configuration will be saved and activated.
Network and Fabric Configuration Managing IP Security Creating an Association To create an association, enter the Ipsec Association Create command as shown in the following example: H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec association create h2h-sh-sa A list of attributes with formatting will follow. Enter a value or simply press the ENTER key to skip specifying a value.
Network and Fabric Configuration Managing IP Security Deleting an Association To delete a user-defined association, enter the Ipsec Association Delete command as shown in the following example: H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec association delete association_1 The security association will be deleted. Please confirm (y/n): [n] y H3C (admin-ipsec) #> ipsec save The IPsec configuration will be saved and activated.
Network and Fabric Configuration Managing IP Security 3=null (0 byte key) 4=blowfish-cbc (5-56 byte key) 5=aes-cbc (16/24/32 byte key) 6=twofish-cbc (32 byte key) *EncryptionKey encryption algorithm choice : (quoted string or raw hex bytes) : The security association has been edited. This configuration must be saved with the 'ipsec save' command before it can take effect, or to discard this configuration use the 'ipsec cancel' command.
Network and Fabric Configuration Managing IP Security Resetting the IP Security Configuration Resetting the IP Security configuration deletes all policies and associations from the switch. There are two ways to do this. Within an Ipsec Edit session, enter the Ipsec Clear command, then save the changes as shown in the following example: H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec clear H3C (admin-ipsec) #> ipsec save The IPsec configuration will be saved and activated.
Network and Fabric Configuration Managing IP Security 56 59272-00 C
4 Switch Module Configuration Switch Module configuration consists of the following tasks: Displaying Switch Module Information Managing Switch Module Services Managing Switch Module Configurations Paging a Switch Module Setting the Date and Time Resetting a Switch Module Installing Firmware Testing a Switch Managing Idle Session Timers Displaying Switch Module Information You can display the following types of Switch Module information: 59272-00 C Switch Module Ope
Switch Module Configuration Displaying Switch Module Information Switch Module Operational Information The Show Switch command displays a variety of module operational information. These include the Switch Module WWN, domain ID, firmware version, administrative state, and operational state as shown in the following example: H3C #> show switch Switch Information ------------------ 58 SymbolicName H3C SwitchWWN 10:00:00:c0:dd:13:a8:78 BootVersion V1.12.5.95.
Switch Module Configuration Displaying Switch Module Information System Process Information The Ps command displays system process information to help you determine what processes are running and CPU usage. The following example displays current system processes. H3C #> ps PID PPID %CPU %MEM TIME ELAPSED COMMAND 241 216 0.1 8.8 00:00:00 01:37 cns 242 216 0.2 8.8 00:00:00 01:37 ens 243 216 0.1 8.8 00:00:00 01:37 dlog 244 216 3.1 9.1 00:00:03 01:37 ds 245 216 2.0 11.
Switch Module Configuration Displaying Switch Module Information Elapsed Time Between Resets The Uptime command displays the elapsed time since the Switch Module was last reset and the reset method. A hot reset or non-disruptive firmware activation does not reset the elapsed time reported by this command. The following example displays the time since the last reset.
Switch Module Configuration Displaying Switch Module Information Hardware Information Enter the Show Chassis command to display the status of the Switch Module hardware including power supplies, internal temperature, and Heartbeat LED status.
Switch Module Configuration Displaying Switch Module Information Firmware Information Enter the Show Version command to display a summary of Switch Module identity information including the firmware version.
Switch Module Configuration Managing Switch Module Services Managing Switch Module Services You can configure your Switch Module to suit the demands of your environment by enabling or disabling a variety of Switch Module services. You manage the Switch Module services using the Show Setup Services and commands. Refer to Table 24 for a description of the Switch Module services.
Switch Module Configuration Managing Switch Module Services Enter the Set Setup Services command within an Admin session to configure the Switch Module services as shown in the following example: H3C #> admin start H3C (admin) #> set setup services A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Switch Module Configuration Managing Switch Module Configurations Managing Switch Module Configurations The Switch Module configuration determines the basic operational characteristics of the Switch Module. A Switch Module supports up to 10 configurations including the default configuration, named Default Config. The current Switch Module operating characteristics are determined by the active configuration. Only one configuration can be active at one time.
Switch Module Configuration Managing Switch Module Configurations Delete a Switch Module Configuration Enter the Config Delete command to delete a configuration from the Switch Module as shown in the following example. You cannot delete the active configuration nor the default configuration (Default Config). H3C (admin) #> config delete config_2 Modify a Switch Module Configuration To modify a Switch Module configuration, you must open an Admin session with the Admin Start command.
Switch Module Configuration Managing Switch Module Configurations The following is an example of the Set Config Switch command. Refer to Table 19 for a description of the Switch Module configuration parameters. H3C #> admin start H3C (admin) #> config edit H3C (admin-config) #> set config switch A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Switch Module Configuration Managing Switch Module Configurations Back Up and Restore a Switch Module Configuration Successful management of Switch Modules and fabrics depends on the effective use of Switch Module configurations. Backing up and restoring a configuration is useful to protect your work or for use as a template in configuring other Switch Modules.
Switch Module Configuration Paging a Switch Module Restoring the Configuration File The restore operation begins with FTP to upload the configuration file from the workstation to the Switch Module, then finishes with a Telnet session and the Config Restore command. To upload the configuration file, config_switch_169_10112003 in this case, open and FTP session with account name images and password images.
Switch Module Configuration Setting the Date and Time Setting the Date and Time The Switch Module date and time can be set explicitly using the Date command or it can be set automatically through a Network Time Protocol (NTP) server. The Date command also displays the current time. Unlike the Date command, the NTP server also synchronizes the date and time on the Switch Module with the date and time on the workstation. Synchronized date and time is required for Secure Socket Layer (SSL) connections.
Switch Module Configuration Resetting a Switch Module To configure the Switch Module to use an NTP server, enter the Set Setup System Ntp command in an Admin session to enable the NTP client on the Switch Module and to specify the NTP server IP address, as shown in the following example: H3C (admin) #> set setup system ntp A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Switch Module Configuration Installing Firmware Installing Firmware New firmware becomes available periodically either on CD-ROM or from the web site. Installing firmware on a Switch Module involves the following steps: 1. Download the firmware image file to the Switch Module. 2. Unpack the firmware image file. 3. Activate the new firmware. The activation can be disruptive or non-disruptive.
Switch Module Configuration Installing Firmware One-Step Firmware Installation The Firmware Install and Image Install commands download the firmware image file from an FTP or TFTP server to the Switch Module, unpacks the image file, and performs a disruptive activation in one step.
Switch Module Configuration Installing Firmware 4. When prompted to install the new firmware, enter Yes to continue or No to cancel. Entering Yes will disrupt traffic. This is the last opportunity to cancel. About to install image. Do you want to continue? [y/n] y Connected to 10.20.20.200 (10.20.20.200). 220 localhost.localdomain FTP server (Version wu-2.6.1-18) ready. 5. Enter the password for your account name (FTP only). 331 Password required for johndoe. Password:****** 230 User johndoe logged in.
Switch Module Configuration Testing a Switch If your workstation has neither an FTP nor a TFTP server, open an FTP session and download the firmware image file by entering FTP commands: >ftp ip_address or switchname user:images password: images ftp>bin ftp>put filename ftp>quit 2. Display the list of firmware image files on the Switch Module to confirm that the file was loaded. H3C #> admin start H3C (admin) #> image list 3. Unpack the firmware image file to install the new firmware in flash memory.
Switch Module Configuration Testing a Switch Offline Tests for Switches An offline test is a disruptive test that exercises all port connections for a switch in the diagnostics state. You must place the switch in the diagnostics state using the Set Switch State command before starting the test. There are two types of offline test: internal loopback and external loopback. An internal loopback test exercises all connections within the port.
Switch Module Configuration Testing a Switch The following example performs a connectivity internal test on a switch: H3C #> admin start H3C (admin) #>set switch state diagnostics H3C (admin) #> test switch connectivity internal A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Switch Module Configuration Managing Idle Session Timers Canceling a Switch Test To cancel a switch test that is in progress, enter the Test Cancel Switch command. Managing Idle Session Timers You can limit the duration of idle login sessions and idle Admin sessions (Admin Start command). You can specify limits up to 1,440 minutes; specifying 0 means unlimited. Idle login sessions that exceed the limit are logged off (InactivityTimeout).
5 Port Configuration This section describes the following topics: Displaying Port Information Modifying Port Operating Characteristics Mapping Transparent Fabric Ports Resetting a Port Configuring Port Threshold Alarms Testing a Port Displaying Port Information You can display the following port information: 59272-00 C Port Configuration Parameters Port Operational Information Port Threshold Alarm Configuration Parameters Port Performance 79
Port Configuration Displaying Port Information Port Configuration Parameters Enter the Show Config Port command to display the port configuration parameters. These parameters determine the operational characteristics of the port. Refer to Table 18 for a description of these parameters. The following example displays port configuration information for external port 0.
Port Configuration Displaying Port Information Port Operational Information Enter the Show Port command to display port operational information. The following example displays port operational information for external port 0.
Port Configuration Displaying Port Information 82 BBCR_FrameFailures 0 Logout 0 BBCR_RRDYFailures 0 LongFramesIn 0 Class2FramesIn 0 LoopTimeouts 0 Class2FramesOut 0 LossOfSync 0 Class2WordsIn 0 LostFrames 0 Class2WordsOut 0 LostRRDYs 0 Class3FramesIn 180482 PrimSeqErrors 0 Class3FramesOut 180482 RxLinkResets 1 Class3Toss 0 RxOfflineSeq 1 Class3WordsIn 6497352 ShortFramesIn 0 Class3WordsOut 6497352 TotalErrors 0 DecodeErrors 0 TotalLinkResets 2 EpConnects 0
Port Configuration Displaying Port Information Port Threshold Alarm Configuration Parameters Enter the Show Config Threshold command to display the port threshold alarm parameters. These parameters determine the error thresholds at which the Switch Module issues alarms. Refer to Table 20 for a description of these parameters.
Port Configuration Displaying Port Information Port Performance Enter the Show Perf command to display port performance in terms of the volume of data transmitted, data received, or errors. You can display continuous live performance information for one or more ports, or an instantaneous summary. The following example displays an instantaneous summary in bytes and frames. Values are expressed in thousands (K) and millions (M) of bytes or frames per second.
Port Configuration Modifying Port Operating Characteristics Modifying Port Operating Characteristics You can make permanent or temporary changes to port operating characteristics. You make permanent port configuration changes using the Set Config Port command. These changes are saved in the active configuration and are preserved across Switch Module or port resets. The Set Port command makes temporary changes that apply until the next port or Switch Module reset, or until you activate a configuration.
Port Configuration Modifying Port Operating Characteristics The following example changes the administrative state for the internal port 4: H3C #> admin start H3C (admin) #> config edit H3C (admin-config) #> set config port 4 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Port Configuration Modifying Port Operating Characteristics You can configure external ports (1, 2, 3) as a group based on port 0, or all internal ports (4–7) based on port 4 using the Clone Config Port command. The following example configures the external ports based on port 0 and activates the configuration. H3C #> admin start H3C (admin) #> config edit H3C (admin) #> clone config port 0 1-3 H3C (admin-config) #> config save The config named default has been saved.
Port Configuration Modifying Port Operating Characteristics . PrimaryTFPortMap 3. 4. [0,1,2,3 ]0,2,3 H3C (admin-config) #> set config port 5 . . . PrimaryTFPortMap [0,1,2,3 ]0,2,3 H3C (admin-config) #> set config port 6 . . . PrimaryTFPortMap [0,1,2,3 ]0,2,3 H3C (admin-config) #> set config port 7 . . . PrimaryTFPortMap [0,1,2,3 ]0,2,3 Enter the Set Config Port command for external port (1) and the corresponding internal port (5) and change the PortType to PT.
Port Configuration Mapping Transparent Fabric Ports Mapping Transparent Fabric Ports TF_Port mapping assigns one or more TF_Ports to pass traffic to and from a specified TH_Port. You can specify a primary mapping and a backup mapping for each TH_Port. If all TF_Ports in the primary mapping fail, the backup mapping is used. In the default primary TF_Port mapping, each internal port (4–7) is mapped to every external port (0–3). The default backup TF_Port mapping is undefined.
Port Configuration Resetting a Port Resetting a Port Enter the Reset Port command to reinitialize one or more ports and to discard any temporary changes that have been made to the administrative state or link speed. The following example reinitializes port 0: H3C #> admin start H3C (admin) #> reset port 0 Configuring Port Threshold Alarms The Switch Module can monitor a set of port errors and generates alarms based on user-defined sample windows and thresholds.
Port Configuration Configuring Port Threshold Alarms Enter the Set Config Threshold command to enable and configure port threshold monitoring on the Switch Module: H3C #> admin start H3C (admin) #> config edit H3C (admin-config) #> set config threshold A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Port Configuration Testing a Port Testing a Port You can perform an internal or external offline port test using the Test Port command. The following sections describe the test types, displaying test results, and cancelling a test: Offline Tests for Ports Display Port Test Results Cancel a Port Test Offline Tests for Ports An offline test is a disruptive test that exercises the port connections.
Port Configuration Testing a Port The following example performs an offline test: H3C #> admin start H3C (admin) #> set port 1 state diagnostics H3C (admin) #> test port 1 offline internal A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the default value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Port Configuration Testing a Port 94 59272-00 C
6 Connection Security Configuration This section describes the following tasks: Managing SSL and SSH Services Displaying SSL and SSH Services Creating an SSL Security Certificate The Switch Module supports secure connections with Telnet and Switch Module management applications. The Secure SHell protocol (SSH) secures Telnet connections to the Switch Module.
Connection Security Configuration Managing SSL and SSH Services Enter the Set Setup Services command to manage both SSH and SSL services as shown in the following example: H3C #> admin start H3C (admin) #> set setup services A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Connection Security Configuration Displaying SSL and SSH Services Displaying SSL and SSH Services Enter the Show Setup Services command to display the status of the SSH and SSL services as shown in the following example: H3C #> show setup services System Services ----------------------------TelnetEnabled True SSHEnabled True GUIMgmtEnabled True SSLEnabled True EmbeddedGUIEnabled True SNMPEnabled True NTPEnabled True FTPEnabled True CallHomeEnabled True Creating an SSL Security Certificate
Connection Security Configuration Creating an SSL Security Certificate 98 59272-00 C
7 RADIUS Server Configuration User account authentication can be centralized using a Remote Dial-In User Service (RADIUS) server such as Microsoft® RADIUS. With a RADIUS server, the user account database for the entire fabric resides on the server. In this way, the database can be managed centrally, rather than on each switch. You can configure up to five RADIUS servers to provide failover.
RADIUS Server Configuration Displaying RADIUS Server Information Displaying RADIUS Server Information Enter the Show Setup Radius command to display RADIUS server information as shown in the following example. Refer to Table 22 for a description of the RADIUS server configuration parameters. H3C #> show setup radius Radius Information -----------------DeviceAuthOrder Local UserAuthOrder Local TotalServers 2 Server: 1 ServerIPAddress 10.0.0.
RADIUS Server Configuration Configuring a RADIUS Server on the Switch Configuring a RADIUS Server on the Switch Enter the Set Setup Radius command to configure a RADIUS server on the Switch Module. There are two groups of RADIUS configuration parameters. One group of parameters is common to all RADIUS server configurations. The second group is server specific. You can configure both groups of parameters for all RADIUS servers, or you can configure the common and server-specific parameters separately.
RADIUS Server Configuration Configuring a RADIUS Server on the Switch The following example configures RADIUS server 1: H3C (admin) #> set setup radius server 1 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the attributes for the server being processed, press 'q' or 'Q' and the ENTER key to do so.
8 Event Log Configuration This section describes the following tasks: Starting and Stopping Event Logging Displaying the Event Log Managing the Event Log Configuration Clearing the Event Log Logging to a Remote Host Creating and Downloading a Log File Event messages originate from the Switch Module or from the management application in response to events that occur in the fabric.
Event Log Configuration Starting and Stopping Event Logging Starting and Stopping Event Logging Enter the Set Log Stop command to stop recording event messages in the Switch Module Log as shown in the following example: H3C (admin) #> set log stop Enter the Set Log Start command to start recording event message in the Switch Module log as shown in the following example: H3C (admin) #> set log start Displaying the Event Log Enter the Show Log command to display the event log.
Event Log Configuration Displaying the Event Log The following is an example of the Show Log command: H3C #> show log [1][Fri Jan 07 02:07:56.068 UTC 2000][I][8400.0023][Switch][Successful login user (admin@OB-session8) with admin privilege from address 10.20.32.223-3852] [2][Fri Jan 07 02:07:56.069 UTC 2000][W][8400.0058][Switch][User (admin) is using their initial/default password] [3][Fri Jan 07 02:08:38.179 UTC 2000][I][8400.
Event Log Configuration Managing the Event Log Configuration Managing the Event Log Configuration Managing the Event Log Configuration consists of the following tasks: Configure the Event Log Display the Event Log Configuration Restore the Event Log Configuration Configure the Event Log You can customize what events are recorded in the Switch Module event log according to component, severity level, and port.
Event Log Configuration Clearing the Event Log Restore the Event Log Configuration Enter the Set Log Restore command to return the event log configuration to the factory default as shown in the following example: H3C (admin) #> set log restore Clearing the Event Log Enter the Set Log Clear command to delete all entries in the event log as shown in the following example: H3C (admin) #> set log clear Logging to a Remote Host The Switch Module comes from the factory with local logging enabled, which instruc
Event Log Configuration Logging to a Remote Host The Set Setup System command controls local logging through the LocalLogEnabled parameter and remote logging through the RemoteLogEnabled and RemoteLogHostAddress parameters as shown in the following example: H3C (admin) #> set setup system A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Event Log Configuration Logging to a Remote Host New Value (press ENTER to accept current value, 'q' to quit, 'n' for none): NTPClientEnabled (True / False) : NTPServerDiscovery (1=Static, 2=Dhcp, 3=Dhcpv6) : NTPServerAddress (hostname, IPv4, or IPv6 Address) : Logging Network Configuration - may optionally use 'set setup system logging' command. Current Values: LocalLogEnabled True RemoteLogEnabled False RemoteLogHostAddress 10.0.0.
Event Log Configuration Creating and Downloading a Log File Creating and Downloading a Log File Enter the Set Log Archive command to collect the event log messages in a file on the Switch Module named logfile. This file can have a maximum of 1200 event messages. Use FTP to download the file from the Switch Module to your workstation as follows: 1. Log into the Switch Module through Telnet and create an archive of the event log. The Set Log Archive command creates a file on the Switch Module named logfile.
9 Call Home Configuration This section describes the following topics: Call Home Concepts Configuring the Call Home Service Managing the Call Home Database Testing a Call Home Profile Changing SMTP Servers Clearing the Call Home Message Queue Resetting the Call Home Database Call Home Concepts The Call Home service improves fabric availability by notifying administrators by email of events that affect switch operation.
Call Home Configuration Call Home Concepts Call Home Requirements In addition to enabling the Call Home service, you must also do the following to ensure that email messages can be sent: Configure the Call Home service. The Call Home service configuration consists of primary and secondary SMTP server specifications and contact information. You must enable and specify an address and service port for at least one SMTP server. Refer to Configuring the Call Home Service.
Call Home Configuration Call Home Concepts Call Home Messages The Call Home service generates email messages for the specified event severity level and the following switch actions: Switch comes online Switch goes offline Reboot Power up Power down1 SFP failure When a qualifying switch action or event occurs, an email message is created and placed in the Call Home queue to be sent to the active SMTP server.
Call Home Configuration Call Home Concepts The following is an example of a full-text e-mail including profile and SNMP contact information: From: john.doe@work.com [mailto:john.doe@work.com] Sent: Wednesday, July 25, 2007 5:03 PM Subject: [CallHome: Test] Alarm generated on Switch_8 ------------ Event Details SwitchName: Switch_8_83.215 SwitchIP: 10.20.30.40 SwitchWWN: 10:00:00:c0:dd:0c:66:f2 Level: Alarm Text: CALLHOME TEST PROFILE MESSAGE ID: 8B00.0002 Time: Wed Jul 25 17:02:40.
Call Home Configuration Configuring the Call Home Service Configuring the Call Home Service Enter the Set Setup Callhome command in an Admin session to configure the Call Home service as shown in the following example. Refer to Table 21 for a description of the Call Home service configuration settings. H3C (admin) #> set setup callhome A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Call Home Configuration Managing the Call Home Database Enter the Show Setup Callhome command to display the Call Home service configuration as shown in the following example. H3C #> show setup callhome Callhome Information -------------------PrimarySMTPServerAddr 0.0.0.0 PrimarySMTPServerPort 25 PrimarySMTPServerEnabled False SecondarySMTPServerAddr 0.0.0.0 SecondarySMTPServerPort 25 SecondarySMTPServerEnabled False ContactEmailAddress nobody@localhost.
Call Home Configuration Managing the Call Home Database The Admin End command releases the Admin session for other administrators when you are done making changes to the switch. To remove all Call Home profiles and restore the Call Home service configuration to its factory state, enter the Reset Callhome command.
Call Home Configuration Managing the Call Home Database Enter the Callhome List command to display a list of Call Home profiles as shown in the following example: H3C #> callhome list Configured Profiles: -------------------group4 group5 Enter the Callhome List Profile command to display a list of Call Home profiles and their details as shown in the following example: H3C #> callhome list profile ProfileName: group4 -----------Level Warn Format FullText MaxSize any size up to max of 100000 EmailSubj
Call Home Configuration Managing the Call Home Database Creating a Profile Enter the Profile Create command to create a Call Home profile as shown in the following example: H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> profile create profile_1 A list of attributes with formatting and default values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Call Home Configuration Managing the Call Home Database Deleting a Profile Enter the Profile Delete command to delete a Call Home profile as shown in the following example: H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> profile delete profile_1 The profile will be deleted. Please confirm (y/n): [n] y H3C (admin-callhome) #> callhome save The CallHome database profiles will be saved and activated.
Call Home Configuration Managing the Call Home Database Modifying a Profile Enter the Profile Edit command to modify an existing Call Home profile as shown in the following example: H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> profile edit profile_1 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value.
Call Home Configuration Managing the Call Home Database Renaming a Profile Enter the Profile Rename command to rename profile_1 as shown in the following example: H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> profile rename profile_1 profile_4 The profile will be renamed. Please confirm (y/n): [n] y H3C (admin-callhome) #> callhome save The CallHome database profiles will be saved and activated.
Call Home Configuration Testing a Call Home Profile Testing a Call Home Profile Enter the Callhome Test Profile command to test a Call Home profile as shown in the following example. This command generates a test message and routes it to the email recipients specified in the profile. H3C #> admin start H3C (admin) #> callhome test profile group4 A callhome profile test has been started. A notification with the test result will appear on the screen when the test has completed.
Call Home Configuration Resetting the Call Home Database Resetting the Call Home Database There are two ways to reset the Call Home database. Enter the Callhome Clear command to clear all Callhome profiles as shown in the following example. H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> callhome clear H3C (admin-callhome) #> callhome save The CallHome database profiles will be saved and activated.
10 Simple Network Management Protocol Configuration This section describes the following tasks: Managing the SNMP Service Displaying SNMP Information Modifying the SNMP Configuration Resetting the SNMP Configuration Managing the SNMP Version 3 Configuration The Simple Network Management Protocol (SNMP) provides for the management of the Switch Module through third-party applications that use SNMP.
Simple Network Management Protocol Configuration Managing the SNMP Service Enter the Set Setup Services command to enable SNMP as shown in the following example: H3C #> admin start H3C (admin) #> set setup services A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Simple Network Management Protocol Configuration Displaying SNMP Information Displaying SNMP Information Enter the Show Setup SNMP command to display SNMP configuration information as shown in the following example. Refer to Table 25 for a description of the SNMP parameters. H3C #> show setup snmp SNMP Information ---------------- 59272-00 C SNMPEnabled True Contact Location Description 4-port FC media card ObjectID 1.3.6.1.4.1.3873.1.
Simple Network Management Protocol Configuration Modifying the SNMP Configuration Modifying the SNMP Configuration Enter the Set Setup SNMP command in an Admin session to configure SNMP on the switch. There are two groups of configuration parameters. One group is common to all traps. The second group is trap specific. You can configure both groups of parameters for all SNMP traps, or you can configure the common and trap-specific parameters separately. Refer to Table 25 for SNMP parameters descriptions.
Simple Network Management Protocol Configuration Resetting the SNMP Configuration The following example configures SNMP trap 1: H3C (admin) #> set setup snmp trap 1 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so. Current Values: Trap1Enabled True Trap1Address 10.20.33.
Simple Network Management Protocol Configuration Managing the SNMP Version 3 Configuration Managing the SNMP Version 3 Configuration SNMP version 3 is an interoperable standards-based protocol for network management. SNMP version 3 provides secure access to devices by a combination of packet authentication and encryption over the network.
Simple Network Management Protocol Configuration Managing the SNMP Version 3 Configuration Create an SNMP Version 3 User Account To create an SNMP version 3 user account, enter the Snmpv3user Add command as shown in the following example: H3C #> admin start H3C (admin) #> snmpv3user add A list of SNMPV3 user attributes with formatting and default values as applicable will follow. Enter a new value OR simply press the ENTER key where-ever allowed to accept the default value.
Simple Network Management Protocol Configuration Managing the SNMP Version 3 Configuration Modify an SNMP Version 3 User Account To modify an SNMP version 3 user account, enter the Snmpv3user Edit command as shown in the following example: H3C #> admin start H3C (admin) #> snmpv3user edit A list of SNMPV3 user attributes with formatting and current attribute values for the specified SNMPV3 user will follow. Enter a new value OR simply press the ENTER key where-ever allowed to accept the current value.
11 Command Reference This section describes the commands of the CLI and the format in which they are presented. The command format presents the following: Access Authority Syntax and Keywords Notes and Examples The commands are listed in “Command Listing” on page 134. Access Authority The Authority paragraph in each command description indicates what types of sessions are required to enter that command.
Command Reference Syntax and Keywords Syntax and Keywords The Syntax paragraph defines the command syntax using the following convention: command keyword keyword [value] keyword [value1] [value2] The Command is followed by one or more keywords. Consider the following rules and conventions: Commands and keywords are case insensitive. Required keyword values appear in standard font: [value]. Optional values are shown in italics: [value].
Command Reference Admin Admin Opens and closes an Admin session. The Admin session provides access to commands that change module configurations. Only one Admin session can be open on the module at any time. An inactive Admin session will time out after a period of time which can be changed using the Set Setup System command.
Command Reference Callhome Callhome Manages the Call Home database. The Callhome Edit command opens a session in which to create and manage Call Home profiles. Refer to the Profile command for more information about Call Home profiles. Authority Admin session except for the History and List keywords. The Clear keyword also requires a Callhome Edit session.
Command Reference Callhome history Displays a history of Call Home modifications. This keyword does not require an Admin session. History information includes the following: Time of the most recent Call Home database modification and the user who performed it. Checksum for the Call Home database Profile processing information list profile [profile] Lists the configuration for the profile given by [profile]. If you omit [profile], the command lists all profiles and their configurations.
Command Reference Callhome Examples The following is an example of the Callhome History command: H3C #> callhome history CallHome Database History ------------------------ConfigurationLastEditedBy admin@OB-session2 ConfigurationLastEditedOn day mmm dd hh:mm:ss yyyy DatabaseChecksum 000014a3 ProfileName group4 ProfileLevel Warn ProcessedCount 286 ProcessedLast day mmm dd hh:mm:ss yyyy ProfileName group5 ProfileLevel Alarm ProcessedCount 25 ProcessedLast day mmm dd hh:mm:ss yyyy The fo
Command Reference Callhome The following is an example of the Callhome List Profile command: H3C #> callhome list profile ProfileName: group4 -----------Level Warn Format FullText MaxSize any size up to max of 100000 EmailSubject CallHome Warn RecipientEmail admin1@company.com RecipientEmail admin2@company.com RecipientEmail admin3@company.com RecipientEmail admin7@company.com RecipientEmail admin8@company.com RecipientEmail admin9@company.com RecipientEmail admin10@company.
Command Reference Callhome The following is an example of the Callhome Queue Stats command: H3C #> callhome queue stats Callhome Queue Information -------------------------FileSystemSpaceInUse EntriesInQueue 140 534 (bytes) 3 59272-00 C
Command Reference Capture Capture Manages the data capture configuration for a specified Call Home profile. The data capture configuration determines the time and frequency by which status and trend data is collected from the switch and sent to recipients specified in the profile. Authority Admin session and a Callhome Edit session. Refer to the “Callhome” command on page 11-136 for information about starting a Callhome Edit session.
Command Reference Capture Examples The following is an example of the Capture Add command: H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> capture add Profile_1 A list of attributes with formatting and default values will follow. Enter a value or simply press the ENTER key to accept the default value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Capture The following is an example of the Capture Remove command: H3C #> admin start H3C (admin) #> callhome edit Profile_1 H3C (admin-callhome) #> capture remove Capture Entries for Profile: Profile_1 Index TimeOfDay DayOfWeek Interval ----- --------- --------- -------- 1 02:00 Sat 1 (weeks) Please select a capture entry from the list above ('q' to quit): 1 The selected capture entry has been removed from profile Profile_1.
Command Reference Clone Config Port Clone Config Port Configures one or more ports based on a source port. Authority Admin session and a Config Edit session Syntax clone config port [source_port_number] [port_list] Keywords port [source_port_number] [port_list] Configures a list of ports given by [port_list] based on the port given by [source_port_number]. [source_port_number] can be 0–7. [port_list] can be a list of port numbers or ranges delimited by spaces.
Command Reference Config Config Manages the Fibre Channel configurations on a Switch Module. For information about setting the port and Switch Module configurations, refer to the “Set Config Switch” command on page 11-206.
Command Reference Config delete [config_name] Deletes the configuration given by [config_name]. You cannot delete the default configuration (Default Config) nor the active configuration. edit [config_name] Opens an edit session for the configuration given by [config_name]. If you omit [config_name], the currently active configuration is used. export [account_name] [ip_address] [file_name] Exports an existing backup configuration file (configdata) from the switch to a remote server.
Command Reference Config save [config_name] Saves changes made during a configuration edit session in the configuration given by [config_name]. If you omit [config_name], the value for [config_name] you chose for the most recent Config Edit command is used. [config_name] can be up to 31 characters excluding #, semicolon (;), and comma (,). The module supports up to 10 configurations including the default configuration.
Command Reference Config The following is an example of how to upload a configuration backup file (configdata) from the workstation to the Switch Module, and then restore the configuration. #> ftp symbolic_name or ip_address user: images password: images ftp> bin ftp> put configdata ftp> quit H3C #> admin start H3C (admin) #> config restore The switch will be reset after restoring the configuration. Please confirm (y/n): [n] y Alarm Msg: [day month date time year][A1005.
Command Reference Create Create Creates support files for troubleshooting Switch Module problems, and certificates for secure communications for SMI-S. Authority Admin session for the Certificate keyword Syntax create certificate support Keywords certificate Creates a security certificate on the Switch Module. The security certificate is required to establish an SSL connection with a management application such as SMI-S.
Command Reference Create Examples The following is an example of the Create Support command when an FTP server is available on the workstation: H3C #> create support Log Msg:[Creating the support file - this will take several seconds] FTP the dump support file to another machine? (y/n): y Enter IP Address or host name of remote computer: 10.20.33.130 Login name: johndoe Enter remote directory name: bin/support Would you like to continue downloading support file? (y/n) [n]: y Connected to 10.20.33.130 (10.
Command Reference Create The following is an example of the Create Support command and how to download the support file to your workstation. When prompted to send the support file to another machine, decline, then close the Telnet session. Open an FTP session on the Switch Module and log in with the account name images and password images. Transfer the dump_support.tgz file in binary mode with the Get command.
Command Reference Date Date Displays or sets the system date and time. To set the date and time the information string must be provided in this format: MMDDhhmmCCYY. The new date and time takes effect immediately. Authority Admin session except to display the date. Syntax date [MMDDhhmmCCYY] Keywords [MMDDhhmmCCYY] Specifies the date – this requires an Admin session. If you omit [MMDDhhmmCCYY], the current date is displayed which does not require an Admin session.
Command Reference Exit Exit Closes the Telnet session. Authority None Syntax exit Notes You can also enter Control-D to close the Telnet session.
Command Reference Fcf Fcf Manages and displays FCoE Forwarder (FCF) configurations. Authority Admin session for Fcf List commands. All others require an Admin session and a Config Edit session. Syntax fcf list active configured edited or fcf [fcf_number] add mac [mac_list] add vlan [vlan_number] create delete edit remove mac [mac_list] remove vlan [vlan_number] Keywords active Displays the active FCF configuration. This is the default for the Fcf List command.
Command Reference Fcf Remove a VLAN from an FCF add mac [mac_list] Adds one or more converged network adapter ENODE MAC addresses given by [mac_list] to the FCF given by [fcf_number]. add vlan [vlan_number] Adds the VLAN given by [vlan_number] to the FCF given by [fcf_number]. An FCF can have only one VLAN. create Creates an FCF given by [fcf_number]. Additional FCFs can be created only for a transparent pass-thru module. The FCF parameters are described in Table 6. Table 6.
Command Reference Fcf Examples The following is an example of the Fcf List Active command: H3C (admin) #> fcf list active Active FCF (FCoE Forwarder) Information FCF 0efc01 EnforceKeepAliveTimer True KeepAliveTimer 8 FIPPriority 128 VLAN 1002 MACAddresses None The following is an example of the Fcf Create command: H3C #> admin start H3C (admin) #> config edit The config named default is being edited.
Command Reference Fcf The following is an example of the Fcf Delete command: H3C #> admin start H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> fcf 0efc01 delete The VLAN will be deleted. Please confirm (y/n): [n] y The VLAN has been deleted. This configuration must be saved (see 'config save' command) and activated (see 'config activate' command) before it can take effect. To discard this configuration use the 'config cancel' command.
Command Reference Fcf The following is an example of the Fcf Remove Mac command: H3C #> admin start H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> fcf 0efc01 remove mac 0e:fc:00:01:09:99 Mac address 0e:fc:00:01:09:99 has been removed from FCF 0efc01. This configuration must be saved (see 'config save' command) and activated (see 'config activate' command) before it can take effect. To discard this configuration use the 'config cancel' command.
Command Reference Feature Feature Adds license key features to the Switch Module and displays the license key feature log. To order a license key contact your switch distributor or your authorized reseller. Upgrading a Switch Module is not disruptive, nor does it require a Switch Module reset. Authority Admin session for Add keyword only Syntax feature add [license_key] log Keywords add [license_key] Adds the feature that corresponds to the value given by [license_key].
Command Reference Firmware Install Firmware Install Downloads firmware from a remote host to the Switch Module, installs the firmware, then resets the Switch Module to activate the firmware. This is disruptive.
Command Reference Firmware Install The following is an example of the Firmware Install command using TFTP: H3C #> admin start H3C (admin) #> firmware install The switch will be reset. This process will cause a disruption to I/O traffic. Continuing with this action will terminate all management sessions, including any Telnet sessions. When the firmware activation is complete, you may log in to the switch again. Do you want to continue? [y/n]: y Press 'q' and the ENTER key to abort this command.
Command Reference Hardreset Hardreset Resets the Switch Module and performs a power-on self test. This reset disrupts I/O traffic, activates the pending firmware, and clears the alarm log. To save the alarm log before resetting, refer to the “Set Log” command on page 11-210. Authority Admin session Syntax hardreset Notes To reset the Switch Module without a power-on self test, refer to the “Reset” command on page 11-192.
Command Reference Help Help Displays a brief description of the specified command, its keywords, and usage. Authority None Syntax help [command] [keyword] Keywords [command] Displays a summary of the command given by [command] and its keywords. If you omit [command], the system displays all available commands. [keyword] Displays a summary of the keyword given by [keyword] belonging to the command given by [command].
Command Reference History History Displays a numbered list of the previously entered commands from which you can re-execute selected commands. Authority None Syntax history Notes Use the History command to provide context for the ! command: Examples Enter ![command_string] to re-execute the most recent command that matches [command_string].
Command Reference Hotreset Hotreset Resets the Switch Module for the purpose of activating the pending firmware without disrupting traffic. This command terminates all management sessions, saves all configuration information, and clears the event log. After the pending firmware is activated, the configuration is recovered. This process may take a few minutes. To save the event log to a file before resetting, enter the Set Log Archive command.
Command Reference Image Image Manages and installs Switch Module firmware. Authority Admin session Syntax image cleanup fetch [account_name] [ip_address] [file_source] [file_destination] install list tftp [ip_address] [file_source] [file_destination] unpack [file] Keywords cleanup Removes all firmware image files from the Switch Module. All firmware image files are removed automatically each time the Switch Module is reset.
Command Reference Image unpack [file] Installs the firmware file given by [file]. After unpacking the file, a message appears confirming successful unpacking. The Switch Module must be reset for the new firmware to take effect. Notes To provide consistent performance throughout the fabric, ensure that all switches are running the same version of firmware. To install firmware when the management workstation has an FTP server, use the Image Install command or the Firmware Install command.
Command Reference Image The following is an example of the Image Fetch and Image Unpack commands: H3C (admin) #> image fetch johndoe 10.0.0.254 9.0.7.x.x_flcn >ftp 10.0.0.254 user:johndoe password: ******** ftp>bin ftp>put 9.0.7.x.x_flcn ftp>quit H3C (admin) #>image list H3C (admin) #>image unpack 9.0.7.x.
Command Reference Ipsec Ipsec Manages the IP Security database. The IP Security database consists of the Security Association database and the Security Policy database. The Ipsec Edit command opens a session in which to create and manage associations and policies. Authority Admin session except for the History keyword. The Clear keyword also requires an Ipsec Edit session. Syntax ipsec cancel clear edit history limits save Keywords cancel Closes the current Ipsec Edit session.
Command Reference Ipsec history Displays a history of IP security modifications. This keyword does not require an Admin session. History information includes the following: Time of the most recent IP security database modification and the user who performed it Checksums for the active and inactive IP security databases limits Displays the maximum and current numbers of configured associations and policies. This keyword does not require an Admin session nor an Ipsec Edit session.
Command Reference Ipsec Association Ipsec Association Creates and manages associations in the Security Association database.
Command Reference Ipsec Association Table 7. Association Configuration Parameters (Continued) Parameter Protocol Description IP security protocol to be used to process data. The protocol can be one of the following: Encapsulated Security Payload–RFC 2406 (esp) Encapsulated Security Payload–RFC 1827 (esp-old) Authentication Header– RFC 2402 (ah) Authentication Header–RFC 1826 (ah-old) SPI Security parameters index number Authentication Algorithm to use to authenticate the source or destination.
Command Reference Ipsec Association list [option] Displays the configuration for the policies given by [option]. If you omit [option], the command displays the configuration of all active associations. [option] can be one of the following: [association] Displays the configuration for the association given by [association]. active Displays the configuration for all active associations. configured Displays the configuration for all user-defined associations.
Command Reference Ipsec Association Examples The following is an example of the Ipsec Association Create command: H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec association create h2h-sh-sa A list of attributes with formatting will follow. Enter a value or simply press the ENTER key to skip specifying a value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so. Required attributes are preceded by an asterisk.
Command Reference Ipsec List Ipsec List Displays information about IP security associations and policies. Authority None Syntax ipsec list active association [option] configured edited policy [option] Keywords active Displays a summary of active associations and policies. This is the default. association [option] Displays the configuration for the associations given by [option]. If you omit [option], the command displays the configuration of all active associations.
Command Reference Ipsec List policy [option] Displays the configuration for the policies given by [option]. If you omit [option], the command displays the configuration of all active policies. [option] can be one of the following: [policy] Displays the configuration for the policy given by [policy]. active Displays the configuration for all active policies. configured Displays the configuration for all user-defined policies.
Command Reference Ipsec List The following is an example of the Ipsec List Association command: H3C #> ipsec list association Active IPsec Information h2h-sh-sa Description: Host-to-host: switch->host Source: fe80::2c0:ddff:fe03:d4c1 Destination: fe80::250:daff:feb7:9d02 Protocol: esp SPI: 333 (0x14d) Authentication: hmac-sha1 Encryption: 3des-cbc ******** ******** h2h-hs-sa Description: Host-to-host: host->switch Source: fe80::250:daff:feb7:9d02 Destination: fe80::2c0:ddff:fe03:d4c1 Protocol: esp SP
Command Reference Ipsec List The following is an example of the Ipsec List Policy command: H3C #> ipsec list policy Active IPsec Information h2h-hs-sp Description: Host-to-host: host->switch Source: fe80::250:daff:feb7:9d02/128 Destination: fe80::2c0:ddff:fe03:d4c1/128 Protocol: any Direction: in Priority: 0 Action: ipsec Rule Protocol Mode Level ---- -------- --------- ----- 1 esp transport require h2h-sh-sp Description: Host-to-host: switch->host Source: fe80::2c0:ddff:fe03:d4c1/128 Destin
Command Reference Ipsec Policy Ipsec Policy Manages policies in the Security Policy database. Authority Admin session and an Ipsec Edit session Syntax ipsec policy copy [policy_source] [policy_destination] create [policy] delete [policy] edit [policy] list [option] rename [policy_old] [policy_new] Keywords copy [policy_source] [policy_destination] Creates a new policy named [policy_destination] and copies the configuration into it from the policy given by [policy_source].
Command Reference Ipsec Policy Table 8. Policy Configuration Parameters (Continued) Parameter Protocol Description Protocol or application to which to apply IP security. Enter a keyword for one of the following protocols or an integer (0-255): Internet Control Message Protocol Internet Protocol Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Any protocol ICMP6 ICMP number (0–255). You are prompted for this parameter only if you specify ICMP6 for the Protocol parameter.
Command Reference Ipsec Policy Table 8. Policy Configuration Parameters (Continued) Parameter espRuleLevel Description Rule level to apply for ESP protection: Default–use the system wide default for the protocol Use–use a security association if one is available Require–a security association is required whenever a packet is sent that is matched with the policy delete [policy] Deletes the policy given by [policy] from the Security Policy database.
Command Reference Ipsec Policy Examples The following is an example of the Ipsec Policy Create command: H3C #> admin start H3C (admin) #> ipsec edit H3C (admin-ipsec) #> ipsec policy create h2h-sh-sp A list of attributes with formatting will follow. Enter a value or simply press the ENTER key to skip specifying a value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so. Required attributes are preceded by an asterisk.
Command Reference Logout Logout Closes the Telnet session. Authority None Syntax logout Notes You can also enter Control-D to close the Telnet session.
Command Reference Passwd Passwd Changes a user account’s password. Authority Admin account name and an Admin session to change another account’s password; You can change you own password without an Admin session. Syntax passwd [account_name] Keywords [account_name] The user account name. To change the password for an account name other than your own, you must open an Admin session with the account name Admin.
Command Reference Ping Ping Initiates an attempt to communicate with another switch over an Ethernet network and reports the result. Authority None Syntax ping [ip_address] [host_name] [host_address] Keywords [host_name] DNS host name of the switch you want to query. [host_name] is a character string of 2–125 characters made up of one or more subdomains delimited by periods (.). The following naming rules apply: Valid characters are alphanumeric characters, period (.), and hyphen (-).
Command Reference Profile Profile Creates and modifies profiles with which to customize Call Home e-mail notification. A profile defines the event severity level at which to generate e-mails, e-mail subject and text, and e-mail recipients. Authority Admin session and a Callhome Edit session. Refer to the “Callhome” command on page 11-136 for information about starting a Callhome Edit session.
Command Reference Profile Table 9. Profile Configuration Parameters (Continued) Parameter Description MaxSize Maximum number of characters allowed in the e-mail message. Decreasing this parameter makes for easier reading on small display devices such as cell phones. The minimum is 650. The maximum and default is 100,000. EmailSubject E-mail subject of up to 64 characters RecipientMail Recipient e-mail addresses; maximum of 10 addresses. The format is account@domain.
Command Reference Profile Examples The following is an example of the Profile Create command: H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> profile create profile_1 A list of attributes with formatting and default values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press ’q’ or ’Q’ and the ENTER key to do so.
Command Reference Profile The following is an example of the Profile Edit command: H3C #> admin start H3C (admin) #> callhome edit H3C (admin-callhome) #> profile edit profile_1 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Ps Ps Displays current system process information. Authority None Syntax ps Examples The following is an example of the Ps command: H3C #> ps PID 190 PPID %CPU %MEM TIME ELAPSED COMMAND 241 216 0.1 8.8 00:00:00 01:37 cns 242 216 0.2 8.8 00:00:00 01:37 ens 243 216 0.1 8.8 00:00:00 01:37 dlog 244 216 3.1 9.1 00:00:03 01:37 ds 245 216 2.0 11.8 00:00:02 01:37 mgmtApp 246 216 0.1 8.8 00:00:00 01:37 sys2swlog 254 216 2.5 9.
Command Reference Quit Quit Closes the Telnet session. Authority None Syntax quit Notes You can also enter Control-D to close the Telnet session.
Command Reference Reset Reset Resets the Switch Module configuration parameters. If you omit the keyword, the default is Reset Switch. Authority Admin session Syntax reset callhome config [config_name] factory ipsec port [port_list] radius services snmp switch (default) system Keywords callhome Resets the Call Home database configuration to its default values.
Command Reference Reset radius Resets the RADIUS configuration to the default values as described in Table 15. services Resets the Switch Module services configuration to the default values as described in Table 16. snmp Resets the SNMP configuration settings to the factory default values. Refer to Table 14 for SNMP configuration default values. switch Resets the Switch Module without a power-on self test. This is the default.
Command Reference Reset Notes The following tables specify the various factory default settings: Enter the Show Setup Callhome command to display the Call Home service configuration values. Table 10. Call Home Service Configuration Defaults Parameters Default PrimarySMTPServerAddr 0.0.0.0 PrimarySMTPServerPort 25 PrimarySMTPServerEnabled False SecondarySMTPServerAddr 0.0.0.0 SecondarySMTPServerPort 25 SecondarySMTPServerEnabled False ContactEmailAddress nobody@localhost.
Command Reference Reset Enter the Show Config Port command to display port configuration values. Table 12.
Command Reference Reset Enter Show Config Threshold command to display threshold alarm configuration values. Table 13.
Command Reference Reset Enter the Show Setup SNMP command to display SNMP configuration values. Table 14. SNMP Configuration Defaults Parameter 59272-00 C Default SNMPEnabled True Contact Location Description 4-port FC media card Trap [1-5] Address Trap 1: 10.0.0.254; Traps 2–5: 0.0.0.0 Trap [1-5] Port 162 Trap [1-5] Severity Warning Trap [1-5] Version 2 Trap [1-5] Enabled False ObjectID 1.3.6.1.4.1.3873.1.
Command Reference Reset Enter the Show Setup Radius command to display RADIUS configuration values. Table 15. RADIUS Configuration Defaults Parameter Default DeviceAuthOrder Not applicable UserAuthOrder Local TotalServers 1 DeviceAuthServer False UserAuthServer False AccountingServer False ServerIPAddress 10.0.0.1 ServerUDPPort 1812 Timeout 2 seconds Retries 0 SignPackets False Enter the Show Setup Services command to display Switch Module service configuration values. Table 16.
Command Reference Reset Enter the Show Setup System command to display system configuration values. Table 17. System Configuration Defaults Parameter 59272-00 C Default Ethernet Network Discovery Static Admin Timeout 30 minutes InactivityTimeout 0 (unlimited) LocalLogEnabled True RemotelogEnabled False RemoteLogHostAddress 10.0.0.254 NTPClientEnabled False NTPServerAddress 10.0.0.
Command Reference Set Alarm Set Alarm Controls the display of alarms in the session output stream or clears the alarm log. Authority Admin session for the Clear keyword. Otherwise, none. Syntax set alarm [option] Keywords [option] [option] can be one of the following: clear Clears the alarm log history. This value requires an Admin session. on Enables the display of alarms in the session output stream. off Disables the display of alarms in the session output stream.
Command Reference Set Beacon Set Beacon Illuminates the port LEDs for the purpose of locating a Switch Module or testing LEDs. When the beacon is on, the Logged-In LEDs flash, and the Activity LEDs are lit continuously. Authority None Syntax set beacon [state] Keywords [state] [state] can be one of the following: on Enables the beacon. off Disables the beacon.
Command Reference Set Config Port Set Config Port Sets the port configuration parameters for one or more ports. The changes you make with this command are not retained when you reset or power cycle the Switch Module unless you save them using the Config Save command. Authority Admin session and a Config Edit session Syntax set config port [port_number] Keywords port [port_number] Initiates an edit session in which to change configuration parameters for the port number given by [port_number].
Command Reference Set Config Port Table 18. Port Configuration Parameters (Continued) Parameter Description LinkSpeed Transmission speed: (external ports only) TF_Ports: 1-Gbps, 2-Gbps, 4-Gbps, 8-Gbps, or Auto. Auto acquires the speed of the connected device. The default is Auto. Setting a port to 1-Gbps that has an 8-Gbps SFP will down the port. TH_Ports: 10Gb/s PT_Ports: 10Gb/s SymPortName Descriptive name for the port.
Command Reference Set Config Port Examples The following is an example of the Set Config Port command for external port 0: H3C #> admin start H3C (admin) #> config edit H3C (admin-config) #> set config port 0 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Config Port The following is an example of the Set Config Port command for internal port 4: H3C #> admin start H3C (admin) #> config edit H3C (admin-config) #> set config port 4 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Config Switch Set Config Switch Sets the Switch Module configuration parameters. The changes you make with this command are not retained when you reset or power cycle the Switch Module unless you save them using the Config Save command. Authority Admin session and a Config Edit session Syntax set config switch This command initiates an editing session in which to change Switch Module configuration settings.
Command Reference Set Config Switch Examples The following is an example of the Set Config Switch command: H3C #> admin start H3C (admin) #> config edit H3C (admin-config) #> set config switch A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Config Threshold Set Config Threshold Sets the port alarm threshold parameters by which the Switch Module monitors port performance and generates alarms. The changes you make with this command are not retained when you reset or power cycle the Switch Module unless you save them using the Config Save command. Authority Admin session and a Config Edit session Syntax set config threshold Initiates a configuration session by which to generate and log alarms for selected events.
Command Reference Set Config Threshold Notes The Switch Module will down a port if an alarm condition is not cleared within three consecutive sampling windows (by default 30 seconds). Reset the port to bring it back online. An alarm is cleared when the threshold monitoring detects that the error rate has fallen below the falling trigger.
Command Reference Set Log Set Log Specifies the events to record in the event log and display on the screen. You determine what events to record in the Switch Module event log using the Component, Level, and Port keywords. You determine what events are automatically displayed on the screen using the Display keyword. Alarms are always displayed on the screen.
Command Reference Set Log Port Monitors all port events. SNMP Monitors all SNMP events. Switch Monitors Switch Module management events. display [filter] Specifies the log events to automatically display on the screen according to the event severity levels given by [filter]. [filter] can be one of the following values: Critical Critical severity level events. The critical level describes events that are generally disruptive to the administration or operation of the fabric, but require no action.
Command Reference Set Log Info Monitors informative, warning, and critical events. The informative level describes routine events associated with a normal fabric. NOTE: Logging events at the Info severity level can deplete Switch Module resources because of the high volume of events. None Monitors none of the severity levels. port [port_list] Specifies one or more ports to monitor for events. Choose one of the following values: [port_list] Specifies the port or ports to monitor.
Command Reference Set Log Notes In addition to critical, warn, and informative severity levels, the highest event severity level is alarm. The alarm level describes events that are disruptive to the administration or operation of a fabric and require administrator intervention. Alarms are always logged and always displayed on the screen.
Command Reference Set Pagebreak Set Pagebreak Specifies how much information is displayed on the screen at a time. This command is useful for disabling pagebreaks to allow command scripts to run without interruption. Authority None Syntax pagebreak [state] Keywords [state] [state] can be one of the following: on Limits the display of information to 20 lines at a time. off Allows continuous display of information without a break. This is the default.
Command Reference Set Pagebreak Examples The following is an example of the Set Pagebreak command: H3C #> set pagebreak on H3C #> help General Help -----------admin ADMIN_OPTIONS config CONFIG_OPTIONS create CREATE_OPTIONS date [MMDDhhmmCCYY] exit feature FEATURE_OPTIONS firmware install hardreset help HELP_OPTIONS history hotreset image IMAGE_OPTIONS logout passwd [USER_ACCT_NAME] ping IP_ADDR ps quit reset RESET_OPTIONS set SET_OPTIONS show SHOW_OPTIONS shutdown test TEST_OPTI
Command Reference Set Port Set Port Sets port state and speed for the specified port temporarily until the next Switch Module reset or new configuration activation. This command also clears port counters. Authority Admin session Syntax set port clear or set port [port_number] clear speed [transmission_speed] state [state] Keywords [port_number] Specifies the port. External ports are numbered 0–3; internal ports are numbered 4–7.
Command Reference Set Port state [state] Specifies one of the following administrative states for the specified port: Online Activates and prepares the port to send data. Offline Prevents the port from receiving signal and accepting a device login. Diagnostics Prepares the port for testing and prevents the port from accepting a device login. Down Disables the port by removing power from the port lasers.
Command Reference Set Setup Callhome Set Setup Callhome Configures the Call Home database for managing e-mail notifications of fabric problems. Authority Admin session Syntax set setup callhome Prompts you in a line-by-line fashion to configure the Call Home database. Table 22 describes the Call Home configuration fields. Table 21. Call Home Service Configuration Settings Entry 218 Description PrimarySMTPServerAddr IP address or DNS host name of the primary SMTP server. The default is 0.0.0.0.
Command Reference Set Setup Callhome Table 21. Call Home Service Configuration Settings (Continued) Entry Notes 59272-00 C Description FromEmailAddress E-mail address that is defined as the sending address in the From: field of the e-mail message. The format is account@domain. This field is required. Undeliverable messages are returned to this address unless overridden by the ReplayToEmailAddress parameter. ReplyToEmailAddress E-mail address that is to receive replies to the outbound e-mail message.
Command Reference Set Setup Callhome Examples The following is an example of the Set Setup Callhome command: H3C (admin) #> set setup callhome A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Setup Radius Set Setup Radius Configures RADIUS servers on the Switch Module. Authority Admin session Syntax set setup radius common server [server_number] Keywords common Prompts you in a line-by-line fashion to configure parameters that are common to all RADIUS servers. To configure common and specific RADIUS server parameters, omit the keyword. Table 22 describes the common RADIUS configuration parameters. Table 22.
Command Reference Set Setup Radius Table 22. Common RADIUS Configuration Parameters (Continued) Entry 222 Description AccountingServer Enable (True) or disable (False) this server for auditing of activity during a user session. When enabled, user activity is audited whether UserAuthServer is enabled or not.The default is False. The accounting server UDP port number is the ServerUDPPort value plus 1 (default 1813).
Command Reference Set Setup Radius server [server_number] Prompts you in a line-by-line fashion to configure parameters for the RADIUS server given by [server_number]. [server_number] is a positive integer. To configure common and specific RADIUS server parameters, omit the keyword. Table 23 describes the specific RADIUS server configuration parameters. Table 23.
Command Reference Set Setup Radius Examples The following is an example of the Set Setup RADIUS Common command: H3C (admin) #> set setup radius common A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the attributes for the server being processed, press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Setup Radius The following is an example of the Set Setup Radius Server command: H3C (admin) #> set setup radius server 1 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the attributes for the server being processed, press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Setup Services Set Setup Services Configures services on the Switch Module. Authority Admin session Syntax set setup services Prompts you in a line-by-line fashion to enable or disable Switch Module services. Table 24 describes the Switch Module service parameters. For each parameter, enter a new value or press the Enter key to accept the current value shown in brackets.
Command Reference Set Setup Services Table 24. Switch Module Services Settings (Continued) Entry SSLEnabled Description Enables (True) or disables (False) secure SSL connections for management applications including QuickTools and SMI-S. The default is False. To enable secure SSL connections, you must first synchronize the date and time on the Switch Module and workstation. This service must be enabled to authenticate users through a RADIUS server.
Command Reference Set Setup Services Table 24. Switch Module Services Settings (Continued) Entry CallHomeEnabled Examples Description Enables (True) or disables (False) the Call Home service which controls e-mail notification. The default is True. The following is an example of the Set Setup Services command: H3C #> admin start H3C (admin) #> set setup services A list of attributes with formatting and current values will follow.
Command Reference Set Setup SNMP Set Setup SNMP Configures SNMP on the Switch Module. Authority Admin session Syntax set setup snmp common trap [trap_number] Keywords common Prompts you in a line-by-line fashion to change SNMP configuration parameters that are common for all traps. For each parameter, enter a new value or press the Enter key to accept the current value. To configure common parameters and trap parameters, omit the Common keyword.
Command Reference Set Setup SNMP Table 25. SNMP Common Configuration Settings (Continued) Entry Description AuthFailureTrap Enables (True) or disables (False) the generation of traps in response to trap authentication failures. The default is False. ProxyEnabled Enables (True) or disables (False) SNMP communication with other switches in the fabric. The default is True. SNMPv3Enabled Enables (True) or disables (False) SNMP version 3. The default is False.
Command Reference Set Setup SNMP Examples The following is an example of the Set Setup SNMP Common command: H3C (admin) #> set setup snmp common A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Setup SNMP The following is an example of the Set Setup SNMP Trap command: H3C (admin) #> set setup snmp trap 1 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so. Current Values: Trap1Enabled True Trap1Address 10.20.33.
Command Reference Set Setup System Set Setup System Configures the network, logging, NTP server, and timer configurations on the Switch Module. Authority Admin session Syntax set setup system dns ipv4 ipv6 logging ntp timers Keywords dns Prompts you in a line-by-line fashion to DNS host name configuration settings described in Table 27. To configure all system parameters, omit the keyword. For each parameter, enter a new value or press the Enter key to accept the current value. Table 27.
Command Reference Set Setup System ipv4 Prompts you in a line-by-line fashion to change the switch IPv4 Ethernet configuration parameters described in Table 28. To configure all system parameters, omit the keyword. For each parameter, enter a new value or press the Enter key to accept the current value. NOTE: Changing the IP address will terminate all Ethernet management sessions. Table 28.
Command Reference Set Setup System Table 29. IP Version 6 Ethernet Configuration Parameters Entry Description EthIPv6NetworkEnable Enables (True) or disables (False) the IP version 6 interface. The default is True. EthIPv6Discovery Ethernet boot method: 1—Static, 2—DHCPv6, 3—Ndp. The default is 1—Static. EthIPv6NetworkAddress Ethernet IP address EthIPv6NetworkMask Ethernet IP subnet mask address. EthIPv6GatewayAddress Ethernet IP address gateway.
Command Reference Set Setup System ntp Prompts you in a line-by-line fashion to change the NTP server configuration parameters described in Table 31. To configure all system parameters, omit the keyword. For each parameter, enter a new value or press the Enter key to accept the current value. Table 31. NTP Server Configuration Parameters Parameter Description NTPClientEnabled Enables (True) or disables (False) the Network Time Protocol (NTP) client on the switch.
Command Reference Set Setup System Examples The following is an example of the Set Setup System Dns command: H3C (admin) #> set setup system dns A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Setup System The following is an example of the Set Setup System Ipv4 command: H3C (admin) #> set setup system ipv4 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so. Current Values: EthIPv4NetworkEnable True EthIPv4NetworkDiscovery Static EthIPv4NetworkAddress 10.20.116.
Command Reference Set Setup System The following is an example of the Set Setup System Ipv6 command: H3C (admin) #> set setup system ipv6 A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so.
Command Reference Set Setup System The following is an example of the Set Setup System Ntp command: H3C (admin) #> set setup system ntp A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate this process before reaching the end of the list press 'q' or 'Q' and the ENTER key to do so. Current Values: NTPClientEnabled False NTPServerDiscovery Static NTPServerAddress 10.20.10.
Command Reference Set Setup System The following is an example of the Set Setup System command: H3C (admin) #> set setup system A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the current value. If you wish to terminate the configuration process completely, press 'qq' or 'QQ' and the ENTER key to do so. DNS Network Configuration - may optionally use 'set setup system dns' command.
Command Reference Set Setup System NTPClientEnabled (True / False) : NTPServerDiscovery (1=Static, 2=Dhcp, 3=Dhcpv6) : NTPServerAddress (hostname, IPv4, or IPv6 Address) : Logging Network Configuration - may optionally use 'set setup system logging' command. Current Values: LocalLogEnabled True RemoteLogEnabled False RemoteLogHostAddress 10.0.0.
Command Reference Set Switch State Set Switch State Changes the administrative state for all ports on the Switch Module. The previous Set Config Switch settings are restored after a Switch Module reset or a reactivation of a Switch Module configuration. Authority Admin session Syntax set switch state [state] Keywords [state] [state] can be one of the following: online Activates and prepares the ports to send data. This is the default.
Command Reference Set Timezone Set Timezone Specifies the time zone for the Switch Module and the workstation. The default is Universal Time (UTC) also known as Greenwich Mean Time (GMT). This keyword prompts you to choose a region, then a subregion to specify the time zone.
Command Reference Set Timezone Enter selection (or 'q' to quit): america/north_dakota America/North_Dakota/Center Enter selection (or 'q' to quit): america/north_dakota/center 59272-00 C 245
Command Reference Show About Show About Displays an introductory set of information about operational attributes of the Switch Module. This command is equivalent to the Show Version command. Authority None Syntax show about Notes Table 33 describes the entries in the Show About command display. Table 33.
Command Reference Show About Examples The following is an example of the Show About command: H3C #> show about ***************************************************** * * * Command Line Interface SHell (CLISH) * * * ***************************************************** SystemDescription 4-port FC media card HostName EthIPv4NetworkAddr 10.20.125.
Command Reference Show Alarm Show Alarm Displays the alarm log and session output stream display setting. Authority None Syntax show alarm settings Keywords settings Displays the status of the parameter that controls the display of alarms in the session output stream. This parameter is set using the Set Alarm command. Notes The alarm log is cleared when the Switch Module is reset or power cycled.
Command Reference Show Chassis Show Chassis Displays chassis component status, and temperature. Authority None Syntax show chassis Examples The following is an example of the Show Chassis command.
Command Reference Show Config Port Show Config Port Displays configuration parameters for one or more ports. Authority None Syntax show config port [port_number] Keywords [port_number] The number of the port. External ports are numbered 0–3; internal ports are numbered 4–7. If you omit [port_number], all ports are specified.
Command Reference Show Config Switch Show Config Switch Displays the Switch Module configuration parameters.
Command Reference Show Config Threshold Show Config Threshold Displays alarm threshold parameters for the Switch Module.
Command Reference Show Env Show Env Displays temperature and voltage information for Switch Module.
Command Reference Show Faults Show Faults Displays current fault conditions.
Command Reference Show Fcf Virtual-Links Show Fcf Virtual-Links Displays hosts logged in through the virtual links into the Fibre Channel fabric. Authority None Syntax show fcf virtual-links [port_wwn] port [port_number] vlan [vlan_number] Keywords [port_wwn] Displays the host logged in through the specified port WWN. port [port_number] Displays all hosts logged in through the specified port. vlan [vlan_number] Displays all hosts logged in through the specified virtual LAN.
Command Reference Show Fcf Virtual-Links The following is an example of the Show Fcf Virtual-Links Port command: H3C #> show fcf virtual-links port 7 FCoE Server Port 7 Vlan 1002 CNA MACAddress 00:c0:dd:10:15:65 Virtual Host Port 7 Vlan 1002 FCoE MACAddress 0e:fc:00:01:07:00 Port ID 010700 Port WWN 21:00:00:c0:dd:10:15:65 Route To Port 1 Logged In For 3881 seconds State HOST_STATE_LOGGED_IN FCoE Server Port 7 Vlan 1002 CNA MACAddress 00:c0:dd:10:15:2d Virtual Host 256 Port 7
Command Reference Show Fcf Virtual-Links The following is an example of the Show Fcf Virtual-Links Vlan command: H3C #> show fcf virtual-links vlan 1002 FCoE Server Port 5 Vlan 1002 CNA MACAddress 00:c0:dd:10:14:f9 Virtual Host Port 5 Vlan 1002 FCoE MACAddress 0e:fc:00:01:06:00 Port ID 010500 Port WWN 21:00:00:c0:dd:10:14:f9 Route To Port 1 Logged In For 3902 seconds State HOST_STATE_LOGGED_IN FCoE Server Port 6 Vlan 1002 CNA MACAddress 00:c0:dd:10:15:09 Virtual Host 59272-00 C
Command Reference Show Interface Show Interface Displays the status of the active network interfaces. Authority None Syntax show interface Examples The following is an example of the Show Interface command: H3C #> show interface eth0 Link encap:Ethernet HWaddr 00:C0:DD:00:00:27 inet addr:10.20.116.131 Bcast:10.20.116.255 Mask:255.255.255.
Command Reference Show Log Show Log Displays the contents of the log or the parameters used to create and display entries in the log. The log contains a maximum of 1200 entries. When the log reaches its entry capacity, subsequent entries overwrite the existing entries, beginning with the oldest.
Command Reference Show Log Warning Displays all warning events. Critical Displays all critical events. Port [port_number] Displays all events related to the port given by [port_number]. SNMP Displays all events related to SNMP. Switch Displays all events related to Switch Module management. level Displays the event severity level logging setting and the display level setting. options Displays the options that are available for configuring event logging and automatic display to the screen.
Command Reference Show Log The following is an example of the Show Log Level command: H3C #> show log level Current settings for log -----------------------FilterLevel Info DisplayLevel Critical The following is an example of the Show Log Options command: H3C #> show log options Allowed options for log ----------------------FilterComponent Switch,Port,Snmp,CLI FilterLevel Critical,Warn,Info,None DisplayLevel Critical,Warn,Info,None The following is an example of the Show Log command: H3C #> show
Command Reference Show Mem Show Mem Displays information about memory activity. Authority None Syntax show mem [count] Keywords [count] The number of seconds for which to display memory information. If you omit [count], the value 1 is used. Displayed memory values are in 1K block units. NOTE: This keyword will display memory activity updates until [count] is reached–it cannot be interrupted. Therefore, avoid using large values for [count].
Command Reference Show Pagebreak Show Pagebreak Displays the current pagebreak setting. Authority None Syntax show pagebreak Notes The pagebreak setting limits the display of information to 20 lines or allows the continuous display of information without a break.
Command Reference Show Perf Show Perf Displays port performance in frames/second and bytes/second. If you omit the keyword, the command displays data transmitted (out), data received (in), and total data transmitted and received in frames/second and bytes per second. Transmission rates are expressed in thousands (K) and millions (M).
Command Reference Show Perf frame [port_list] Displays continuous performance data in total frames/second transmitted and received for the ports given by [port_list]. [port_list] can be a set of port numbers and ranges delimited by spaces. If you omit [port_list], the command displays performance data for all ports. Press any key to stop the display. inframe [port_list] Displays continuous performance data in frames/second received for the ports given by [port_list].
Command Reference Show Perf The following is an example of the Show Perf Byte command: H3C #> show perf byte Displaying bytes/sec (total)...
Command Reference Show Port Show Port Displays operational information for one or more ports. Authority None Syntax show port [port_list] Keywords [port_list] The number of the port for which to display information. External ports are numbered 0–3; internal ports are numbered 4–7. [port_list] can be a set of port numbers and ranges delimited by spaces. For example, [0 4-7] specifies ports 0, 4, 5, 6, and 7. Notes Table 35 describes the port parameters. Table 35.
Command Reference Show Port Table 35. Show Port Parameters (Continued) Entry 268 Description ClassXToss Number of times an SOFi3 or SOFn3 frame is tossed from TBUF.
Command Reference Show Port Table 35. Show Port Parameters (Continued) Entry 59272-00 C Description LIP_F8_AL_PS This LIP denotes a loop failure detected by the L_Port identified by AL_PS. LIP_F7_F7 A loop initialization primitive frame used to acquire a valid AL_PA. LIP_F8_F7 A loop initialization primitive frame used to indicate that a loop failure has been detected at the receiver.
Command Reference Show Port Table 35. Show Port Parameters (Continued) Entry 270 Description PortWWN World wide port name PrimSeqErrors Primitive sequence errors detected. RunningType Operational port type RxLinkResets Number of link reset primitives received from an attached device. RxOfflineSeq Number of offline sequences received. An OLS is issued for link initialization, a Receive & Recognize Not_Operational (NOS) state, or to enter the offline state.
Command Reference Show Port Examples The following is an example of the Show Port command: H3C #> show port Fibre Channel / Passthrough Ethernet Admin Operational Login Config Running Link Link Port State State Status Type State Speed ---- ----- ----------- ------ ------ ------- ----- ----- Ext1:0 Online Offline NotLoggedIn TF TF Inactive 2Gb/s Ext2:1 Online Offline NotLoggedIn TF TF Inactive 2Gb/s Ext3:2 Online Offline NotLoggedIn TF TF Inactive 2Gb/s Ext4:3 Online
Command Reference Show Port The following is an example of the Show Port command for external port 0: H3C #> show port 0 Port Number: 0 -----------ActiveTHPortList None AdminState Online AsicNumber 0 AsicPort 5 ConfigType TF DownstreamISL False EpConnState None EpIsoReason NotApplicable FabricWWN 00:00:00:00:00:00:00:00 LinkSpeed 2Gb/s LinkState Inactive LoginStatus NotLoggedIn MaxCredit 16 MediaPartNumber 74720-0508 MediaRevision D MediaSpeeds (FC) 1, 2Gb/s MediaSpeeds (Eth
Command Reference Show Port 59272-00 C Class2FramesOut 0 LossOfSync 0 Class2WordsIn 0 LostFrames 0 Class2WordsOut 0 LostRRDYs 0 Class3FramesIn 180482 PrimSeqErrors 0 Class3FramesOut 180482 RxLinkResets 1 Class3Toss 0 RxOfflineSeq 1 Class3WordsIn 6497352 ShortFramesIn 0 Class3WordsOut 6497352 TotalErrors 0 DecodeErrors 0 TotalLinkResets 2 EpConnects 0 TotalLIPsRecvd 0 FBusy 0 TotalLIPsXmitd 0 FlowErrors 0 TotalOfflineSeq 3 FReject 0 TotalRxFrames 180482 I
Command Reference Show Post Log Show Post Log Displays the Power On Self Test (POST) log which contains results from the most recently failed POST.
Command Reference Show Setup Callhome Show Setup Callhome Displays the Call Home database configuration. Authority None Syntax show setup callhome Examples The following is an example of the Show Setup Callhome command: H3C #> show setup callhome Callhome Information -------------------PrimarySMTPServerAddr 0.0.0.0 PrimarySMTPServerPort 25 PrimarySMTPServerEnabled False SecondarySMTPServerAddr 0.0.0.
Command Reference Show Setup Mfg Show Setup Mfg Displays manufacturing information about the Switch Module.
Command Reference Show Setup Radius Show Setup Radius Displays RADIUS server information. Authority None Syntax show setup radius common server [server_number] Keywords common Displays the configuration parameters that are common for all RADIUS servers. To display common and server-specific information, omit the keyword. Refer to Table 22 for a description of the common configuration parameters.
Command Reference Show Setup Services Show Setup Services Displays Switch Module service status information.
Command Reference Show Setup SNMP Show Setup SNMP Displays the current SNMP settings. Authority None Syntax show setup snmp common trap Keywords common Displays SNMP configuration parameters that are common to all traps. To display common and trap-specific parameters, omit the keyword. Refer to Table 25 for descriptions of the common configuration parameters. trap Displays trap-specific SNMP configuration parameters. To display common and trap-specific parameters, omit the keyword.
Command Reference Show Setup System Show Setup System Displays network, logging, NTP server, and timer parameters on the Switch Module. Authority None Syntax show setup system dns logging ntp timers Keywords dns Displays DNS host name configuration parameters. To display all system configuration parameters, omit the keyword. Refer to Table 27 for descriptions of the DNS host name configuration parameters. ipv4 Displays switch IPv4 Ethernet configuration parameters.
Command Reference Show Setup System Examples The following is an example of the Show Setup System command: H3C #> show setup system System Information ------------------ 59272-00 C EthIPv4NetworkEnable True EthIPv4NetworkDiscovery Static EthIPv4NetworkAddress 10.20.125.36 EthIPv4NetworkMask 255.255.255.0 EthIPv4GatewayAddress 10.20.125.
Command Reference Show Switch Show Switch Displays Switch Module operational information. Authority None Syntax show switch Notes Table 36 describes the Switch Module operational parameters. Table 36.
Command Reference Show Switch Table 36. Switch Module Operational Parameters (Continued) Parameter 59272-00 C Description POSTFaultCode Fault code from the most recent power-on self test POSTStatus Status from the most recent power-on self test TestFaultCode Fault code from the most recent switch test TestStatus Status from the most recent switch test BoardTemp (1) - Degrees Celsius Internal Switch Module temperature at circuit board sensor 1.
Command Reference Show Switch Examples The following is an example of the Show Switch command: H3C #> show switch Switch Information ------------------ 284 SymbolicName H3C SwitchWWN 10:00:00:c0:dd:13:a8:78 BootVersion V1.12.5.95.0 (Thu Feb 11 10:57:26 2010) CreditPool 0 FirstPortAddress 010000 FlashSize - MBytes 208 LogFilterLevel Info MaxPorts 8 NumberOfResets 822 ReasonForLastReset HardReset ActiveImageVersion - build date V9.0.7.x.
Command Reference Show System Show System Displays the operational status of the Ethernet and DNS host name configuration parameters. Authority None Syntax show system Examples The following is an example of the Show System command: H3C #> show system Assigned System Network Information ----------------------------------- 59272-00 C Hostname EthIPv4NetworkAddress 10.20.116.
Command Reference Show Testlog Show Testlog Displays the contents of the diagnostic field test log file.
Command Reference Show Temp Show Temp Displays temperature information in degrees Celsius from the Switch Module temperature sensors.
Command Reference Show Timezone Show Timezone Displays the current time zone setting.
Command Reference Show Users Show Users Displays a list of logged-in users. This is equivalent to the User List command. Authority None Syntax show users brief Keywords brief Displays just the account name and client.
Command Reference Show Version Show Version Displays an introductory set of information about operational attributes of the Switch Module. This command is equivalent to the Show About command. Authority None Syntax show version Notes Table 37 describes the Show Version command display entries. Table 37.
Command Reference Show Version Examples The following is an example of the Show Version command. H3C #> show version ***************************************************** * * * Command Line Interface SHell (CLISH) * * * ***************************************************** SystemDescription 4-port FC media card HostName EthIPv4NetworkAddr 10.20.125.
Command Reference Show Voltage Show Voltage Displays voltage information from the Switch Module voltage sensors. Authority None Syntax show voltage Examples The following is an example of the Show Voltage command: H3C #> show voltage Voltage Sensors: 292 Sensor Description Status Current Low Alarm High Alarm ------ ----------- ------ ------- --------- ---------- 0 1.5V Good 1.50 1.31 1.68 1 1.25V Good 1.24 1.00 1.50 2 2.5V Good 2.48 2.20 2.82 3 3.3V Good 3.28 2.
Command Reference Snmpv3user Snmpv3user Manages SNMP version 3 user accounts on the switch. Authority Admin session except for the List keyword Syntax snmpv3user add delete [account] edit list Keywords add Creates an SNMP version 3 user account, prompting you for the parameters that are described in Table 38. Table 38. SNMP Version 3 User Account Parameters Parameter Description Username Account user name Group Group type: Read-Only or Read-Write. The default is Read-Only.
Command Reference Snmpv3user list Displays SNMP version 3 user accounts, group, authentication type, and privacy type. This keyword does not require an Admin session. Examples The following is an example of the Snmpv3user Add command: H3C #> admin start H3C (admin) #> snmpv3user add A list of SNMPV3 user attributes with formatting and default values as applicable will follow. Enter a new value OR simply press the ENTER key where-ever allowed to accept the default value.
Command Reference Snmpv3user The following is an example of the Snmpv3user List command: H3C #> snmpv3user list 59272-00 C Username Group AuthType PrivType -------- ----- -------- -------- snmpuser1 ReadWrite MD5 DES 295
Command Reference Test Cancel Test Cancel Cancels a port or switch test that is in progress. Authority Admin session Syntax test cancel port [port_number] switch Keywords port [port_number] Cancel the test for the port given by [port_number]. [port_number] can be 0–7. switch Cancel a switch test that is in progress.
Command Reference Test Port Test Port Tests individual port performance. Authority Admin session Syntax test port [port_number] offline [loopback_type] Keywords [port_number] The port to be tested. [port_number] can be 0–7 depending on the type of test. External ports are numbered 0–3; internal ports are numbered 4–7. offline [loopback_type] Performs an offline test of the type given by [loopback_type] on the port given by [port_number].
Command Reference Test Port To display the status of the most recent port test or port test in progress, enter the Test Status Port command. Examples The following is an example of an internal test on port 1. H3C #> admin start H3C (admin) #> set port 1 state diagnostics H3C (admin) #> test port 1 offline internal A list of attributes with formatting and current values will follow. Enter a new value or simply press the ENTER key to accept the default value.
Command Reference Test Status Test Status Displays the status of a test in progress, or if there is no test in progress, the status of the test that was executed last. Authority None Syntax test status port [port_number] switch Keywords port [port_number] Display test status for the port given by [port_number]. [port_number] can be 0–7. switch Display test status for the switch: Passed, Failed, NeverRun.
Command Reference Test Switch Test Switch Tests all ports on the switch using a connectivity test, an offline test, or an online test. Authority Admin session Syntax test switch connectivity [loopback_type] offline [loopback_type] Keywords connectivity [loopback_type] Performs a connectivity test of the type given by [loopback_type] on all switch ports. You must place the switch in the diagnostics state using the Set Switch State command before starting the test.
Command Reference Test Switch Notes Table 40 describes the switch test parameters. Table 40. Switch Test Parameters Parameter Description LoopCount Number of frames sent: 1–4294967295. The default is 100. FrameSize Number of bytes in each test frame: 40–2148. The default is 256. DataPattern 32-bit hexadecimal test value, or default, which defines random data StopOnError Stops the test when an error occurs (True). Otherwise, the test continues to completion.
Command Reference Uptime Uptime Displays the elapsed up time since the Switch Module was last reset and reset method. A hot reset or non-disruptive firmware activation does not reset the elapsed up time reported by this command.
Command Reference User User Administers and displays user accounts. Authority Admin account name and an Admin session. The Accounts and List keywords are available to all account names without an Admin session. Syntax user accounts add delete [account_name] edit list brief Keywords accounts Displays all user accounts that exist on the Switch Module. This keyword is available to all account names without an Admin session. add Add a user account to the Switch Module.
Command Reference User Notes Authority level or password changes that you make to an account that is currently logged in do not take effect until that account logs in again.
Command Reference User The following is an example of the User Delete command: H3C (admin) #> user del user3 The user account will be deleted.
Command Reference Vlan Vlan Manages and displays virtual LAN configurations. Authority Admin session for the Vlan List command. All other commands require an Admin session and a Config Edit session. Syntax vlan list active configured edited or vlan [vlan_number] add port [port_list] create delete remove port [port_list] Keywords active Displays the active virtual LAN configuration. This is the Vlan List command default.
Command Reference Vlan create Creates a virtual LAN with the number given by [vlan_number]. delete Deletes the virtual LAN given by [vlan_number]. The vlan number 1002 is reserved as the default virtual LAN and cannot be deleted. remove port [port_list] Removes the internal ports given by [port_list] from the virtual LAN given by [vlan_number]. [port_list] can be a set of internal port numbers (4–7) and ranges delimited by spaces.
Command Reference Vlan The following is an example of the Vlan Add Port command: H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> vlan 1003 add port 4-6 Ports 4-6 have been added to VLAN 1003. This configuration must be saved (see 'config save' command) and activated (see 'config activate' command) before it can take effect. To discard this configuration use the 'config cancel' command. H3C (admin-config) #> config save The config named default has been saved.
Command Reference Vlan The following is an example of the Vlan Delete command: H3C (admin) #> vlan list Active VLAN Information VLAN 1002 Ports 5-7 VLAN 1003 Ports 4 H3C (admin) #> H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> vlan 1003 delete The VLAN will be deleted. Please confirm (y/n): [n] y The VLAN has been deleted. This configuration must be saved (see 'config save' command) and activated (see 'config activate' command) before it can take effect.
Command Reference Vlan The following is an example of the Vlan Remove Port command: H3C (admin) #> vlan list Active VLAN Information VLAN 1002 Ports 7 VLAN 1003 Ports 4-6 H3C (admin) #> config edit The config named default is being edited. H3C (admin-config) #> vlan 1003 remove port 4 Port 4 has been removed from VLAN 1003. This configuration must be saved (see 'config save' command) and activated (see 'config activate' command) before it can take effect.
Command Reference Whoami Whoami Displays the account name, session number, and Switch Module domain ID for the Telnet session.
Command Reference Whoami 312 59272-00 C
Index A account name admin 2 display 303, 311 factory 11 activation firmware 72 Switch Module configuration 65, 66 Admin authority 3 session 3 session timeout 236 Admin command 135 Admin session 78 administrative state port 217 Switch Module 243 alarm configuration 90, 208 configuration defaults 196 configuration display 83, 252 description 103, 213 log 200, 248 association 46 copy 54 create 52 delete 53 modify 53 rename 54 authentication authority 11, 133 beacon 69, 201 Boot Protocol 234, 235, 236 C Call
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide command entry 3 examples 134 listing 134 notes 134 reference 133 rules and conventions 134 syntax 134 command line interface (CLI) 1 command-line completion 3 Common Information Model service 227 Config command 145 Activate example 65 Backup example 68 Copy example 65 Delete example 66 Edit example 66 List example 65 Restore example 69 configuration activate 65, 145 backup 68, 145 copy 65, 145 delete 66, 146 display
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide event log clear 107 configuration 103, 106 configuration management 106 display 104 display configuration 106 filter 105 restore configuration 107 event logging by component 210, 259 by port 212, 260 by severity level 260 display 259 remote 107 restore defaults 212 save settings 212 settings 260 severity level 211 start and stop 104, 212 Exit command 153 expiration date 11 external test 92, 297, 300 F fabric configu
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide H hard reset 71 Hardreset command 162 hardware information 61 Heartbeat LED 61 Help command 4, 163 History command 164 hot reset 71 Hotreset command 165 Ipsec Policy command 179 Copy example 51 Create example 48 Delete example 49 Edit example 50 Rename example 51 K keywords 134 I idle session limits 78 Image command 166 Install example 72 inactivty limits 78 informative event 103 internal port 306 internal test 92
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide N network configuration 15 configuration reset 193 discovery 234, 235, 236 discovery method 15 enable 234, 235 gateway address 234, 235 interfaces 258 IP address 234, 235 mask 234, 235 Network Time Protocol client 236 description 70 interaction with Date command 152 server address 236 service 227 non-disruptive activation 72, 165 NTP - See Network Time Protocol O offline port test 92 offline test switch 76 operation
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Profile command 186 Copy example 122 Create example 119 Delete example 120 Edit example 121 Rename example 122 Ps command 59, 190 Q QuickTools 227 Quit command 191 R RADIUS - Remote Dial-In User Service RADIUS server configuration 95, 99, 101, 218, 221, 223 configuration defaults 198 configuration display 277 information 100 reset 193 Remote Dial-In User Service 99 remote host logging description 107 enable 235 hos
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Set Setup Services command 226 example 64 NTP service 71 SNMP service 126 SSH and SSL services 96 Set Setup SNMP command 229 Set Setup System command 233 NTP configuration 71 remote logging 108 Timers example 78 Set Switch State command 243 Set Timezone command 244 severity level 103 short-text format 113 Show About command 246 Show Alarm command 248 Show Chassis command 249 example 61 Show Config Port command 250 ex
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Switch Module administrative state 243 configuration 57, 65, 206 configuration defaults 194 configuration display 251 configuration parameters 60, 67 date and time 97 hard reset 162 information 57 login 2 management service 226 manufacturer information 276 operational information 58, 282 paging 69 reset 60, 71, 302 reset without POST 193 services 63, 193, 226, 278 user accounts 11 syntax 134 system configuration chan
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide V Virtual LAN add ports 20 create 18 delete 19 display information 17 remove port 21 virtual LAN 306 Vlan command 306 Add example 20 Create example 18 Delete example 19 List example 17 Remove example 21 voltage 292 W warning 103 web applet service 227 Whoami command 311 workstation date and time 97 settings 2 59272-00 C Index-9
H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Index-10 59272-00 C