System Management Commands

This chapter contains the following sections:

hostname

To modify the hostname of the switch, use the hostname Global Configuration mode command.

Syntax

hostname name

Parameters

name—The hostname of the switch.

Default Configuration

N/A

Command Mode

Global Configuration mode

Example

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

ping

To send ICMP echo request packets to another node on the network, use the ping Privileged EXEC mode command.

Syntax

ping ip {ipv4-address | hostname} [count packet_count]

ping ipv6 {ipv6-address | hostname} [count packet_count]

Parameters

ipv4-address—IPv4 address to ping.

ipv6-address—Unicast or multicast IPv6 address to ping.

hostname—Hostname to ping.

count packet_count—(Optional) Specifies the number of packets to send. The default is 4 packets. (Range: 1 to 65535)

Default Usage

N/A

Command Mode

Privileged EXEC mode

Examples

Example 1—The following example pings an IP address:

switchxxxxxx# ping ip 10.1.1.1
PING 10.1.1.1 (10.1.1.1): 56 data bytes
--- 10.1.1.1 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss

Example 2—The following example pings a site:

switchxxxxxx# ping ip yahoo.com
Pinging yahoo.com [66.218.71.198] with 64 bytes of data:
64 bytes from 10.1.1.1: icmp_seq=0. time=11 ms
64 bytes from 10.1.1.1: icmp_seq=1. time=8 ms
64 bytes from 10.1.1.1: icmp_seq=2. time=8 ms
64 bytes from 10.1.1.1: icmp_seq=3. time=7 ms
----10.1.1.1 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 7/8/11

Example 3—The following example pings an IPv6 address:

switchxxxxxx# ping ipv6 3003::11
Pinging 3003::11 with 64 bytes of data:
64 bytes from 3003::11: icmp_seq=1. time=0 ms
64 bytes from 3003::11: icmp_seq=2. time=50 ms
64 bytes from 3003::11: icmp_seq=3. time=0 ms
64 bytes from 3003::11: icmp_seq=4. time=0 ms
----3003::11 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/12/50

reload

To reload the operating system, use the reload Privileged EXEC mode command.

Syntax

reload

Parameters

N/A

Default Usage

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# reload
Proceed with reload? [confirm]

show cpu input rate

To show the current rate of input frames to CPU, use the show cpu input rate Privileged EXEC mode command.

Syntax

show cpu input rate

Parameters

N/A

Default Usage

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show cpu input rate
Input Rate to CPU is 5 pps

show cpu utilization

To show the current CPU utilization of the switch, use the show cpu utilization Privileged EXEC mode command.

Syntax

show cpu utilization

Parameters

N/A

Default Usage

N/A

Command Mode

Privileged EXEC mode

Example

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

show memory statistics

To show the current memory utilization of the switch, use the show memory statistics Privileged EXEC mode command.

Syntax

show memory statistics

Parameters

N/A

Default Usage

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show memory statistics
           total(KB)     used(KB)     free(KB)   shared(KB)   buffer(KB)    cache(KB)
--------------------+------------+------------+------------+------------+------------
Mem:          127392        40992        86400            0         1376        20344
-/+ buffers/cache:          19272       108120
Swap:              0            0            0

show services tcp-udp

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

Syntax

show services tcp-udp

Parameters

N/A

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show services tcp-udp
Type  Local IP address              Remote IP address             Service  State
----  ----------------------------- ----------------------------- -------- --------------
tcp   *:80                          *:*                           http     LISTEN
tcp6  *-80                          *-*                           http     LISTEN
tcp   *:443                         *:*                           https    LISTEN
tcp6  *-443                         *-*                           https    LISTEN
udp   *:546                         *:*
udp6  *-546                         *-*
udp   *:546                         *:*
udp6  *-546                         *-*
udp   *:5353                        *:*                           bonjour
udp6  *-5353                        *-*                           bonjour

The following table describes the significant fields shown in the example:

Field

Description

Type

Protocol type of the service.

Local IP Address

IP address and port number of the local end of the socket.

Remote IP Address

IP address and port number of the remote end of the socket.

Service

Name of the service.

State

State of the socket. Because there are no states in raw mode and usually no states are used in UDP, this column may be left blank.

show system languages

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

Syntax

show system languages

Parameters

N/A

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show system languages
   language Name     Unicode Name   Code    Version              MD5
------------------- -------------- ------- --------- ------------------------
 English             English        en_US             N/A

show tech-support

To automatically run the show commands to collect diagnostic information for technical support purposes, use the show tech-support Privileged EXEC mode command.

Syntax

show tech-support [modules]

Parameters

modules—Specify module to print tech-support report about it only. If no module is specified, all modules will be generated and it may take a long time to complete. Following modules are supported: [aaa | abn-reboot | acl | advdns | authmgr | ca-cert | cbd | cdp | config-analysis | cpu | crash | dai | debug-cache | detail | device | dhcp-snooping | dos | eee | env | err-disable | filesystem | gvrp | igmp-snooping | interfaces | interfaces-status | ip | isg | jumbo | l2 | lag | led | lldp | logging | mac-db | mac-db-cnt | mac-ucast | memory | mgmt-acl | mib | mirror | mld-snooping | mtd | mtdvar | optical | osapi | poe | port-isolation | port-security | process | qos | rate-limit | rldp | rma | rmon | running-cfg | sniffer-pkt | snmp | spanning-tree | ssh | startup-config | storm-control | system | time | time-schedule | user-defined-acl | users | vlan | voice-vlan]

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show tech-support
------------------ show version ------------------
Cisco Sx220 Series Switch Software, Version 1.0.0.16, RELEASE SOFTWARE
Copyright (c) 2014 by Cisco Systems, Inc.
Compiled Tue Mar 19 10:56:27 UTC 2014
ROM: Bootstrap program is Sx220 boot loader
BOOTLDR: Sx220 Boot Loader Version 1.0.0.6, RELEASE SOFTWARE
Compiled Mar 19 2014 - 10:44:25
Switchxxxxxx uptime is 2 days, 1 hours, 33 mins, 0 secs
system image is image-1
 Processor 700MHz , with 128M bytes of memory.
2 Gigabit Ethernet interfaces
48 Fast Ethernet interfaces
32M bytes of flash memory
Base MAC Address : 00:E0:4C:86:70:01
IP Address       : 192.168.1.52
Subnet Mask      : 255.255.255.0
Model Number     : SF220-48P
Serial Number    :
PID              : SF220-48P-K9-CN
VID              : V00
------------------ show flash ------------------
        File Name            File Size        Modified
------------------------ ---------------- ------------------------
 startup-config           1691             2000-01-01 08:02:16
 backup-config            1757             2000-01-01 08:04:16
 rsa2                     1679             2000-01-01 08:00:38
 dsa2                     668              2000-01-01 08:00:46
 ssl_cert                 891              2000-01-01 08:01:06
 image-1                  7075418          2013-11-19 10:56:27
 image-2                  7071043          2013-11-13 17:52:30
------------------ show username ------------------
 Priv  |  Type  |           User Name            |            Password
-------+--------+--------------------------------+----------------------------------
  15   | secret |                          cisco | ZGZlYWYxMDM5MGU1NjBhZWE3NDVjY2JhNTNlMDQ0ZWQ=
  01   | secret |                         cisco2 | ZGRhYWJmYTBhNDhkNTZmY2NhNDgyYWExZjZlNmIzNGI=
------------------ show users ------------------
   Username       Protocol          Location
--------------- ------------ -----------------------
       cisco       console      0.0.0.0
------------------ show running-config ------------------
config-file-header
switchxxxxxx
v1.0.0.16
CLI v1.0
@
!
!
!
!
username "cisco" secret encrypted ZGZlYWYxMDM5MGU1NjBhZWE3NDVjY2JhNTNlMDQ0ZWQ=
username "cisco2" privilege user secret encrypted ZGRhYWJmYTBhNDhkNTZmY2NhNDgyYWExZjZlNmIzNGI=
enable password 1234
!
!
!
voice vlan oui-table add 00:E0:BB 3COM
voice vlan oui-table add 00:03:6B Cisco
voice vlan oui-table add 00:E0:75 Veritel
voice vlan oui-table add 00:D0:1E Pingtel
voice vlan oui-table add 00:01:E3 Siemens
voice vlan oui-table add 00:60:B9 NEC/Philips
voice vlan oui-table add 00:0F:E2 H3C
voice vlan oui-table add 00:09:6E Avaya
!
!
!
!
spanning-tree mst configuration
 name "00:E0:4C:86:70:01"
!
!
!
!
!
!
!
!
aaa authentication enable default enable none
ip http timeout-policy 1 http-only
mac access-list extended mac1
 sequence 1 permit any any
qos advanced
qos map queue-cos 2 to 2
class-map c1 match-any
 match access-group mac1
class-map c2 match-any
 match access-group mac1
class-map c3 match-any
 match access-group mac1
!
!
!
!
!
!
!
interface gi1
!
interface gi2
!
interface gi3
!
interface gi4
!
interface gi5
!
interface gi6
!
interface gi7
!
interface gi8
!
interface gi9
!
interface gi10
!
interface gi11
!
interface gi12
!
interface gi13
!
interface gi14
!
interface gi15
!
interface gi16
!
interface gi17
!
interface gi18
!
interface gi19
!
interface gi20
!
interface gi21
!
interface gi22
!
interface gi23
!
interface gi24
!
!
!
!
------------------ show interfaces ------------------

show username

To show information about all administrative users, use the show username Privileged EXEC mode command.

Syntax

show username

Parameters

N/A

Default Usage

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show username
 Priv  |  Type  |           User Name            |            Password
------+--------+----------------------------+------------------------------
  15   | secret |                          cisco | Fz/1T6Qv98Ldo

The following table describes the significant fields shown in the example:

Field

Description

Priv

Privilege level of the user.

Type

Type of password set for the user.

User Name

Name of the user.

Password

Current password of the user.

show users

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

Syntax

show users

Parameters

N/A

Default Usage

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show users
Username       Protocol          Location
--------------- ------------ -----------------------
       cisco       console      0.0.0.0
       cisco        telnet      192.168.1.111

The following table describes the significant fields shown in the example:

Field

Description

Username

Name of the current active user.

Protocol

Interface protocol for the current active user.

Location

Location address of the current active user.

show version

To show the system version, use the show version Privileged EXEC mode command.

Syntax

show version

Parameters

N/A

Default Usage

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show version
Cisco Sx220 Series Switch Software, Version 1.0.0.16, RELEASE SOFTWARE
Copyright (c) 2014 by Cisco Systems, Inc.
Compiled Wed Feb 26 16:02:49 UTC 2014
ROM: Bootstrap program is Sx220 boot loader
BOOTLDR: Sx220 Boot Loader Version , RELEASE SOFTWARE
Compiled
switchxxxxxx uptime is 1 days, 1 hours, 31 mins, 26 secs
system image is image-2
 Processor 500MHz , with 128M bytes of memory.
28 Gigabit Ethernet interfaces
0 Fast Ethernet interfaces
32M bytes of flash memory
Base MAC Address : 00:E0:4C:86:70:01
IP Address       : 192.168.1.254
Subnet Mask      : 255.255.255.0
Model Number     : SG220-28MP
Serial Number    :
PID              :
VID              : V01

port leds enable

To turn off the LEDs on all ports on a device, use the no port leds enable 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 port leds enable command.

Syntax

port leds enable

no port leds enable

Parameters

N/A

Default Configuration

The default is port leds enable; that is, the LEDs of all the ports reflect their current statuses .

Command Mode

Global Configuration mode

User Guidelines

To turn off all ports LEDs on device, use the no port leds enable Global Configuration mode command. Use port leds enable to restore LEDs to current status

Example

The following example shows how to disable and enable port leds statuses:

switchxxxxxx(config)# no port leds enable
switchxxxxxx(config)# show port leds configuration
Port LEDs: Disabled
switchxxxxxx(config)# port leds enable
switchxxxxxx(config)# show port leds configuration
Port LEDs: Enabled

show port 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 port leds configuration

Parameters

N/A

Default Configuration

None

Command Mode

Privileged EXEC mode

Example

This example shows how to show port leds configuration:

SwitchXXXXXX# show port leds configuration
Port LEDs: Enabled

traceroute

To show the routes that the packets will take when traveling to their destination, use the traceroute Privileged EXEC mode command.

Syntax

traceroute {ipv4-address | hostname} [max-hop hop-count]

Parameters

ipv4-address—IPv4 address of the destination host.

hostname—Hostname of the destination host.

max_hop hop-count—(Optional) Specifies the number of maximum hops in a region before the BPDU is discarded. (Range: 2 to 255, default : 30)

Default Usage

The default value of hop-count is 30.

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# traceroute 192.168.1.55
traceroute to 192.168.1.55 (192.168.1.55), 30 hops max, 40 byte packets
 1  192.168.1.254 (192.168.1.254)  3010 ms !H  3010 ms !H  3010 ms !H

The following table describes the significant fields shown in the example:

Field

Description

1

Sequence number of the router in the path to the host.

192.168.1.55

IP address of the destination host.

3010 ms 3010 ms 3010 ms

Round-trip time for the probes that are sent.

The following are characters that can appear in the traceroute command output:

Field

Description

*

The probe timed out.

?

Unknown packet type.

A

Administratively unreachable. Usually, this is output.

F

Fragmentation required and DF is set.

H

Host unreachable.

N

Network unreachable.

P

Protocol unreachable.

Q

Source quench.

R

Fragment reassembly time exceeded.

S

Source route failed.

U

U Port unreachable.