Management – System Management

clear cpu counters

To clear traffic counters to and from the CPU, use the clear cpu counters EXEC mode command.

Syntax

clear cpu counters

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

User EXEC mode

Example

The following example clears the CPU traffic counters.

switchxxxxxx> clear cpu counters

disable ports leds

To turn off the LEDs on all ports on a device, use the disable ports leds Global Configuration mode command.

To set the LEDs of all the ports on the device to their current operational status of the port, use the no disable ports leds command.

Syntax

disable ports leds no disable ports leds

Parameters

This command has no arguments or keywords.

Default Configuration

The default is no disable port leds; that is the LEDs of all the ports reflect their current status.

Command Mode

Global Configuration mode

Examples

The following example turns off the port LEDs.

switchxxxxxx(config)# disable ports leds

hostname

To specify or modify the device host name, use the hostname Global

Configuration mode command. To remove the existing host name, use the no form of the command.

Syntax hostname name no hostname

Parameters

Name—Specifies the device host name. (Length: 1-160 characters).

Default Configuration

No host name is defined.

Command Mode

Global Configuration mode

Example

The following example specifies the device host name as ‘enterprise’.

switchxxxxxx(config)# hostname enterprise enterprise(config)#

reload (System Management Commands)

To reload the operating system at a user-specified time, use the reload Privileged EXEC mode command.

Syntax

reload [in [hhh:mm | mmm] | at hh:mm [day month]] | cancel]

Parameters

  • in hhh:mm | mmm—(Optional) Schedules a reload of the software to take effect in the specified minutes or hours and minutes. The reload must take place within approximately 24 days.
  • at hh:mm—(Optional) Schedules a reload of the software to take place at the specified time (using a 24-hour clock). If you specify the month and day, the reload is scheduled to take place at the specified time and date. If you do not specify the month and day, the reload takes place at the specified time on the current day (if the specified time is later than the current time) or on the next day (if the specified time is earlier than the current time). Specifying 00:00 schedules the reload for midnight. The reload must take place within 24 days.
  • day—(Optional) Number of the day in the range from 1 to 31.
  • month—(Optional) Month of the year.
  • cancel—(Optional) Cancels a scheduled reload.

Default Usage

None

Command Mode

Privileged EXEC mode

User Guidelines

The at keyword can be used only if the system clock has been set on the device. To schedule reloads across several devices to occur simultaneously, synchronize the time on each device with SNTP.

When you specify the reload time using the at keyword, if you specify the month and day, the reload takes place at the specified time and date. If you do not specify the month and day, the reload takes place at the specified time on the current day (if the specified time is later than the current time), or on the next day (if the specified time is earlier than the current time). Specifying 00:00 schedules the reload for midnight. The reload must take place within 24 days.

To display information about a scheduled reload, use the show reload command.

Examples

Example 1: The following example reloads the operating system.

switchxxxxxx> reload
 
This command will reset the whole system and disconnect your current session.
 
Do you want to continue? (y/n) [Y]

Example 2: The following example reloads the operating system in 10 minutes.

switchxxxxxx> reload in 10
 
This command will reset the whole system and disconnect your current session. Reload is scheduled for 11:57:08 UTC Fri Apr 21 2012 (in 10 minutes). Do you want to continue? (y/n) [Y]

Example 3: The following example reloads the operating system at 13:00.

switchxxxxxx> reload at 13:00
 
This command will reset the whole system and disconnect your current session. Reload is scheduled for 13:00:00 UTC Fri Apr 21 2012 (in 1 hour and 3 minutes). Do you want to continue? (y/n) [Y]

Example 4: The following example cancels a reload.

switchxxxxxx> reload cancel Reload cancelled.

resume

To enable switching to another open Telnet session, use the resume EXEC mode command.

Syntax

resume [connection]

Parameters

connection—(Optional) Specifies the connection number. (Range: 1-4 connections.)

Default Configuration

The default connection number is that of the most recent connection.

Command Mode

Privileged EXEC mode

Example

The following command switches to open Telnet session number 1.

switchxxxxxx> resume 1

service cpu-counters

To enable traffic counting to and from the CPU, use the service cpu-counters Global Configuration mode command. To disable counting, use the no form of this command.

Syntax

service cpu-counters no service cpu-counters

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

Global Configuration mode

User Guidelines

Use the show cpu counters command to display the CPU traffic counters.

Example

The following example enables counting CPU traffic.

switchxxxxxx(config)# service cpu-counters

service cpu-utilization

To enable measuring CPU utilization, use the service cpu-utilization Global Configuration mode command. To restore the default configuration, use the no form of this command.

Syntax

service cpu-utilization

no service cpu-utilization

Parameters

This command has no arguments or keywords.

Default Configuration

Measuring CPU utilization is enabled.

Command Mode

Global Configuration mode

User Guidelines

Use the service cpu utilization command to measure information on CPU utilization.

Example

The following example enables measuring CPU utilization.

switchxxxxxx(config)# service cpu-utilization

show cpu input rate

To display the rate of input frames to the CPU in packets per seconds (pps), use the show cpu input rate EXEC mode command.

Syntax

show cpu input rate

Parameters

This command has no arguments or keywords.

Command Mode User EXEC mode Example

The following example displays CPU input rate information.

switchxxxxxx> show cpu input rate
 
Input Rate to CPU is 1030 pps.

show cpu utilization

To display information about CPU utilization, use the show cpu utilization Privileged EXEC mode command.

Syntax

show cpu utilization

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

Privileged EXEC mode

User Guidelines

Use the show cpu-utilization command to enable measuring CPU utilization.

Example

The following example displays CPU utilization information.

switchxxxxxx> show cpu utilization CPU utilization service is on.
 
CPU utilization
 
-------------------------------------------------five seconds: 5%; one minute: 3%; five minutes: 3%

show cpu counters

To display traffic counter information to and from the CPU, use the show cpu counters EXEC mode command.

Syntax show cpu counters

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

User EXEC mode

User Guidelines

Use the service cpu-counters command to enable traffic counting to and from the CPU.

Example

The following example displays the CPU traffic counters.

switchxxxxxx> show cpu counters CPU counters are active.
 
In Octets: 987891
 
In Unicast Packets: 3589
 
In Multicast Packets: 29
 
In Broadcast Packets: 8
 
Out Octets: 972181
 
Out Unicast Packets: 3322
 
Out Multicast Packets: 22
 
Out Broadcast Packets: 8

show environment

To display environment information, use the show environment EXEC mode command.

Syntax

show environment {all | fan | temperature {status} }

Parameters

  • all—Displays the fan and temperature general status
  • fan—Displays the fan status
  • temperature status—Displays the temperature status

Command Mode

User EXEC mode

User Guidelines

The power parameters displays power supply information.

Main Power supply statuses:

  • Active – power supply is used.
  • Failure – Main power has failed.

The fan and temperature status parameters are available only on devices on which FAN and/or temperature sensor are installed.

Fan status can be one of:

  • OK – The fan/s functions correctly.
  • Failure – The fan failed.
  • NA – No fan is installed.

Sensor status can be one of:

  • OK – The sensor/s functions correctly.
  • Failure – The sensor/s failed.
  • NA – No sensor is installed.

Temperature can be one of:

  • OK – The temperature is below the warning threshold.
  • Warning- The temperature is between the warning threshold to the critical threshold.
  • Critical – the temperature is above the critical threshold.

Examples

Example 1 – The following example displays the general environment status of a device.

switchxxxxxx> show environment all
 
Internal power supply Active.
 
.FAN is OK
 
TEMPERATURE is OK
 
Example 2 - The following example displays the power status of a device.
 
Internal power supply Active.
 
.

Example 2 – The following example displays the general FAN status of a device.

switchxxxxxx> show environment fan
 
FAN is OK
 
Example 3 - The following example displays the detailed temperature status of a device. switchxxxxxx> show environment temperature status
 
TEMPERATURE is Warning

show inventory

To display system information, use the show inventory EXEC mode command.

Syntax

show inventory [entity]

Parameters

entity—Specifies the entity to be displayed. It can be a number (1 – 1 ) for a specific unit number, or an interface (Ethernet) name.

Command Mode

User EXEC mode

Examples

Example 1 – The following example displays all the entities in a standalone system.

switchxxxxxx> show inventory
 
NAME: "1", DESCR: "52-Port Gigabit PoE Stackable Managed Switch"
 
PID: SRW224G4P-K9, VID: V01, SN: 123456789

Example 2 – The following example displays a specific entity in a standalone system.

switchxxxxxx> show inventory gigabitethernet2/1/49
 
NAME: "GigabitEthernet2/1/49", DESCR: "1000M base-LX Mini-GBIC SFP Transceiver"
 
PID: MGBLX1,VID: V01, SN: AGC1525UR7G

show reload (System Management Commands)

To display whether there is a pending reload for status of the device, use the show reload Privileged EXEC mode command.

Syntax show reload Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

Privileged EXEC mode

User Guidelines

You can use this command to display a pending software reload. To cancel a pending reload, use this command with the cancel parameter.

Example

The following example displays that reboot is scheduled for 00:00 on Saturday, April-20.

switchxxxxxx> show reload
 
Reload scheduled for 00:00:00 UTC Sat April 20 (in 3 hours and 12 minutes)

show sessions

To display open Telnet sessions, use the show sessions EXEC mode command.

Syntax show sessions

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode User EXEC mode User Guidelines

The show sessions command displays Telnet sessions to remote hosts opened by the current Telnet session to the local device. It does not display Telnet sessions to remote hosts opened by other Telnet sessions to the local device.

Example

The following example displays open Telnet sessions.

switchxxxxxx> show sessions Connection   Host           Address     Port   Byte ----------   -------------    ---------- ----- ---- Remote router 16.1.1 23      8916.1.2 172.16.1.2 23      8

The following table describes significant fields shown above.

FieldDescription
ConnectionThe connection number.
HostThe remote host to which the device is connected through a Telnet session.
AddressThe remote host IP address.
PortThe Telnet TCP port number.
ByteThe number of unread bytes for the user to see on the connection.

show system

The show system EXEC mode command displays system information.

Syntax show system

Command Mode User EXEC mode

Example

switchxxxxxx> show system
 
System Description:                    MTS_5 System Up Time (days,hour:min:sec):    03,02:27:46 System Contact:
 
System Name:                           switch151400
 
System Location:
 
System MAC Address:                    00:24:ab:15:14:00
 
System Object ID:                         1.3.6.1.4.1
 
Unit        Type  
 
---- -----------------
 
1          MTS_5
 
Unit Main Power Supply  
 
---- -----------------
 
1          OK
 
Fan 1 Status:                          OK
 
Fan 2 Status:                          NOT PRESENT
 
Fan 3 Status:                          FAILURE
 
Fan 4 Status:                          IDLE
 
Fan 5 Status:                          OK
 
Unit Temperature (Celsius) Temperature Sensor Status ---- --------------------- ------------------------1             42                    OK

show system languages

To display the list of supported languages, use the show system languages EXEC mode command.

Syntax show system languages

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

User EXEC mode

Example

The following example displays the languages configured on the device. Number of Sections indicates the number of languages permitted on the device.

switchxxxxxx> show system languages
 
Language Name   Unicode Name   Code  Num of Sections
 
--------------- -------------- ------ -------------
 
English        English     en-US        2
 
Japanese       µùѵ£¼F¬P    ja-JP        2

show system tcam utilization

To display the Ternary Content Addressable Memory (TCAM) utilization, use the show system tcam utilization EXEC mode command.

Syntax

show system tcam utilization

Parameters

unit-id—(Optional) Specifies the unit number. (Range: 1–1)

Default Usage

None

Command Mode

User EXEC mode

Example

The following example displays TCAM utilization information.

switchxxxxxx> show system tcam utilization TCAM utilization: 58%

show services tcp-udp

To display information about the active TCP and UDP services, use the show services tcp-udp Privileged EXEC mode command.

Syntax show services tcp-udp

Parameters

This command has no arguments or keywords.

Command Mode

Privileged EXEC mode

User Guidelines

The output does not show sessions where the device is a TCP/UDP client.

Examples

switchxxxxxx> show services tcp-udp
 
Type  Local IP Address Remote IP address   Service Name  State
 
---------------------- ------------------- ------------- -----------
TCPAll:22   SSH    LISTEN
TCPAll:23   Telnet    LISTEN
TCPAll:80   HTTP    LISTEN
TCPAll:443   HTTPS    LISTEN
TCP172.16.1.1:23 172.16.1.18:8789   Telnet    ESTABLISHED
TCP6All-23   Telnet    LISTEN
TCP6fe80::200:b0ff:fe00:0-23    Telnet 
 fe80::200:b0ff:fe00:0-8999     ESTABLISHED
UDPAll:161   SNMP 
UDP6A ll-161   SNMP 

show tech-support

To display system and configuration information that can be provided to the Technical Assistance Center when reporting a problem, use the show tech-support EXEC mode command.

Syntax show tech-support [config | memory ]

Parameters

  • memory—(Optional) Displays memory and processor state data.
  • config—(Optional) Displays switch configuration within the CLI commands supported on the device.

Default Configuration

By default, this command displays the output of technical-support-related show commands. Use keywords to specify the type of information to be displayed. If you do not specify any parameters, the system displays all configuration and memory data.

Command Types

Switch command.

Command Mode

User EXEC mode

User Guidelines

Caution: Avoid running multiple show tech-support commands on a switch or multiple switches on the network segment. Doing so may cause starvation of some time sensitive protocols, like STP.

The show tech-support command may time out if the configuration file output takes longer to display than the configured session time out time. If this happens, enter a set logout timeout value of 0 to disable automatic disconnection of idle sessions or enter a longer timeout value.

The show tech-support command output is continuous, meaning that it does not display one screen at a time. To interrupt the output, press Esc.

If the user specifies the memory keyword, the show tech-support command displays the following output:

  • Flash info (dir if exists, or flash mapping)
  • Output of command show bootvar
  • Buffers info (like print os buff)
  • Memory info (like print os mem)
  • Proc info (like print OS tasks)
  • Versions of software components
  • Output of command show cpu utilization

show system fans

To view the status of the fans on the device, use the show system fans EXEC mode command.

Syntax show system fans

Command Mode User EXEC mode

Examples

Example 1: For devices whose hardware supports variable fan speed.

switchxxxxxx> show system fans
 
Unit Speed      State
 
(RPM)
 
--- --------- ------------------
 
1    8000      Fans OK

show system sensors

To view the temperature sensor status, use the show system sensors EXEC mode command.

Syntax show system sensors

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

User EXEC mode

Examples

Example: The example displays device temperature information.

switchxxxxxx> show system sensor
 
Temperature Sensor Type   Current Temperature (C)  Target Temperature (C) ------------------------  -----------------------  ----------------------
Ambient14760
Component 15160
Component 25260
Component 35160
Component 45160

show system id

To display the system identity information, use the show system id EXEC mode command.

Syntax show system id

Command Mode

User EXEC mode

Example

The following example displays the system identity information.

switchxxxxxx> show system id serial number 114

show ports leds configuration

To display whether the LEDs of the ports are enabled or disabled, use the show port leds configuration EXEC mode command.

Syntax

show ports leds configuration

Parameters

This command has no arguments or keywords.

Command Mode

User EXEC mode

Examples

Example 1: The following example displays the status of the port’s LEDs when they are turned on.

switchxxxxxx> show ports leds configuration Port leds are not disabled
 
x

Example 2: The following example displays the status of the port LEDs when they are turned off.

switchxxxxxx> show port leds configuration
 
Port leds are disabled

show users

To display information about the active users, use the show users EXEC mode command.

Syntax show users

Parameters

This command has no arguments or keywords.

Default Usage

None

Command Mode

User EXEC mode

Example

The following example displays information about the active users.

switchxxxxxx> show users
Username———-BobJohnRobertBettySamProtocol———–SerialSSHHTTPTelnetLocation————172.16.0.1172.16.0.8 172.16.1.7 172.16.1.6

show version

To display system version information, use the show version EXEC mode command.

Syntax show version

Command Mode

User EXEC mode

Example

The following example displays system version information.

switchxxxxxx> show version SW Version      1.1.0.5 ( date  15-Sep-2010 time  10:31:33 ) Boot Version    1.1.0.2 ( date  04-Sep-2010 time  21:51:53 ) HW Version

show hardware version

To display hardware version information, use the show hardware version EXEC mode command.

Syntax show hardware version

Command Mode

User EXEC mode

Example

The following example displays hardware version information.

switchxxxxxx> show hardware version Hardware Version    1.0.0

system recovery

To set the system to automatically recover from temperature that reached the critical threshold, use the system recovery Global Configuration command.

To return to disable automatic recovery, use the no form of the command.

Syntax system recovery no system recovery

Parameters

This command has no arguments or keywords.

Default Configuration

System recovery is enabled by default.

Command Mode

Global Configuration mode

Example

c

switchxxxxxx(config)# no system recovery

Was this article helpful?

Related Articles

Leave A Comment?