cc/td/doc/product/10_100hb/1538m_mh
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Command Descriptions

Command Descriptions

This chapter is a command-by-command description of the Cisco CLI commands for the
Cisco 1538 Micro Hub 10/100.

cdp holdtime

Use the cdp holdtime global configuration command to set the Cisco Discovery Protocol (CDP) hold time. Use the no cdp holdtime command to reset the hold time to its default value.

cdp holdtime holdtime
no cdp holdtime

Syntax Description

holdtime

Number of seconds receiver keeps packet (10 to 255).

Default

180 seconds

Command Mode

Global configuration

Example

This example shows how to set the CDP holdtime to 15 seconds.

hostname(config)# cdp holdtime 15
Related Commands

cdp timer
cdp run
show cdp
show cdp neighbors

cdp run

Use the cdp run interface configuration command to globally enable Cisco Discovery Protocol (CDP) for a hub. Use the no cdp run command to disable CDP on a hub.

cdp run
no cdp run

Syntax Description

This command has no arguments or keywords.

Default

CDP is enabled.

Command Mode

Global configuration

Example

The following example shows how to disable CDP on a hub.

hostname(config)# no cdp run
Related Commands

cdp holdtime
cdp timer
show cdp
show cdp neighbors

cdp timer

Use the cdp timer global configuration command to specify the rate at which Cisco Discovery Protocol (CDP) packets are sent. Use the no cdp timer command to reset the CDP rate to its default value.

cdp timer timer
no cdp timer

Syntax Description

timer

Number between 5 and 900 (seconds).

Default

60 seconds

Command Mode

Global configuration

Example

This example shows how to set the CDP packet rate to once every 5 seconds.

hostname(config)# cdp timer 5
Related Commands

cdp holdtime
cdp run
show cdp
show cdp neighbors

clear counters

Use the clear counters privileged EXEC command to clear the interface counter for a selected port.

clear counters [type hub/module/port]

Syntax Description

type

Interface type. The valid value is fastethernet.

hub

Hub number within a stack. Valid range is 1 to 4.

module

Module interface number (not for use with this hub). Valid range for this value is 0.

port

Port number on hub. Valid range is 0 to 8.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

If both module and port are set to zero or are not specified, the command prompts you to confirm clearing all the counters for the specified hub.

Example

This example shows how to clear counters for the Fast Ethernet hub 1, port 1.

hostname# clear counters fastethernet 1/0/1
 

This example shows how to clear all counters for hub 2.

hostname# clear counters fastethernet 2/0/0
Related Commands

show interfaces

clear counters hub

Use the clear counters hub privileged EXEC command to clear the hub counter.

clear counters hub [hub_id]

Syntax Description

hub_id

An integer between 1 and 4 to identify the hub in a stack. If the hub_id is not specified, the counters of the whole stack are cleared.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to clear the hub statistics from hub 2.

hostname# clear counters hub 2

Related Commands

clear counters
clear counters segment

clear counters segment

Use the clear counters segment command to clear a segment counter of the hub backplane. Other hubs connected to the backplane of the cleared device also clears the relative counter of the same segment.

clear counters segment {10M | 100M}

Syntax Description

10M

A backplane segment of 10-Mbps line speed.

100M

A backplane segment of 100-Mbps line speed.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to clear the segment counters for ports in a stack operating at 100-Mbps.

hostname# clear counters segment 100M
Related Commands

clear counters
clear counters hub

configure

Use the configure privileged EXEC command to enter the global configuration mode.

configure [terminal]

Syntax Description

terminal

Configure terminal attached at console port.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to enter global configuration mode.

hostname# configure
hostname(config)#
Related Commands

disable
enable
end
exit

copy tftp

Use the copy tftp privileged EXEC command to download an operation code file from the Trivial File Transport Protocol (TFTP) server.

copy tftp://[host/src_file] opcode [temporary | permanent]

Syntax Description

host

IP address of the TFTP server. If host is omitted, system attemps to use the host information set by the command tftp server.

src_file

Operational firmware filename. Filename can be up to 80 characters long. If src_file is omitted, system attempts to use the host information set by command tftp filename.

temporary

Download the operational firmware to RAM.

permanent

Download the operational firmware to nonvolatile RAM.

Default

Permanent mode.

Command Mode

Privileged EXEC

Usage Guidelines

If users do not specify host, src_file name, or download mode, the default host IP, src_file name, and download mode are the same as those specified in the tftp server, tftp filename, and upgrade mode commands.

When downloading an operation code file, the entire system (including other CLI sessions) is inactive for about 30 seconds after the file is retrieved.

Examples

This example shows how to download the new system operational code op.bin from host IP address 210.68.150.15 by using the mode specified by the upgrade mode command.

hostname# copy tftp://210.68.150.15/op.bin opcode
 

This example shows how to download the new system operational code op.bin from host IP address 210.68.150.15 by using the permanent mode.

hostname# copy tftp://210.68.150.15/op.bin opcode permanent
 

This example shows how to download the new system operational code op.bin from host IP address 210.68.150.15 by using the temporary mode (RAM).

hostname# copy tftp://210.68.150.15/op.bin opcode temporary

TFTP successfully downloaded configuration file
 

This example shows how to download the new system operational code op.bin from the host IP address specified by the upgrade mode command.

hostname# copy tftp:///op.bin opcode
 

This example shows how to download the new system operational code as specified by the tftp server (host_ip), tftp filename (filename), and upgrade mode commands.

hostname# copy tftp:/// opcode
Related Commands

copy xmodem
show running-config
show tftp
show version
tftp filename
tftp server
upgrade mode

copy xmodem

Use the copy xmodem privileged EXEC command to download an operation code or firmware file by using the XMODEM protocol.

copy xmodem: [src_file] opcode [temporary | permanent]

Syntax Description

src_file

Name of operational firmware file.

temporary

Download the operational firmware to RAM.

permanent

Download the operational firmware to nonvolatile RAM.

Default

Permanent mode.

Command Mode

Privileged EXEC

Usage Guidelines

If users do not specify the src_file name or the download mode, the src_file name, and download mode are the same as those specified in the tftp filename and upgrade mode commands.

The downloaded file executes immediately. You cannot enter any new information or commands until the download is completed. After downloading operation code file, the entire system (including other CLI sessions) is inactive for about 30 seconds.

Example

This example shows how to download new system operational code by using the upgrade mode set by the upgrade mode command. The file name is assigned by the tftp filename command.

hostname# copy xmodem: opcode
 

This example shows how to download new system operational code into NVRAM by using the file name assigned by the tftp filename command.

hostname# copy xmodem: opcode permanent
 

This example shows how to download new system operational code op.bin into RAM.

hostname# copy xmodem: op.bin opcode temporary
Related Commands

copy tftp
show version
show running-config

databits

Use the databits line-configuration command to set the data bits per character for the console port.

databits {7 | 8}

Syntax Description

7 or 8

Number of data bits per character.

Default

8 data bits per character.

Command Mode

Line configuration

Example

This example shows how to set the number of data bits per character for the console port to 7.

hostname(config)# line console
hostname(config-line)# databits 7
Related Commands

parity
speed
stopbits
terminal

debug memory read

Use the debug memory read privileged EXEC command to display the memory addresses of the hub.

debug memory read address_begin length

Syntax Description

address_begin

First memory address in display.

length

Number of addresses in display.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display three memory addresses, starting with 0x10000.

hostname# debug memory read 0x10000 0x30
 
Address  00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F
-------  -------------------------------------------------
0x10000  00 10 23 22 32 22 22 7c - 12 33 22 33 44 2f 11 22
0x10010  02 20 23 25 32 22 22 7d - ff ff ff 33 4d 22 10 22
0x10020  04 30 29 22 32 22 22 7c - cc 3f 22 3e 44 22 11 d2
Related Commands

debug memory write

debug memory write

Use the debug memory write privileged EXEC command to write address data to the hub.

debug memory write address_begin length

Syntax Description

address_begin

First memory address in display.

length

Number of addresses in display.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to write address 0x123456 to the hub memory for debugging.


Note The debug memory read command is used here to display the results of the debug memory write command.
hostname# debug memory write word 0x10000 0x123456
hostname# debug memory read byte 0x10000 0x30
 
Address  00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F
-------  -------------------------------------------------
0x10000  00 12 34 56 32 22 22 7c - 12 33 22 33 44 2f 11 22
0x10010  02 20 23 25 32 22 22 7d - ff ff ff 33 4d 22 10 22
0x10020  04 30 29 22 32 22 22 7c - cc 3f 22 3e 44 22 11 d2
Related Commands

debug memory read

delete nvram

Use the delete nvram privileged EXEC command to reset the hub configuration to factory defaults.

delete nvram

Syntax Description

This command has no arguments or keywords.

Default

Factory defaults

Command Mode

Privileged EXEC

Usage Guidelines

Note Resetting the system configuration to factory defaults also restarts the hub.
Examples

This example shows how to reset the system configuration to factory defaults.

hostname(config)# delete nvram

This command resets the hub with factory defaults. All parameters will revert to their default factory settings. All static system and dynamic addresses will be removed.
Reset system configuration to factory defaults, [Y]es or [N]o?
 

Press Y or N to proceed and any other character to abort.

Related Commands

reload

description

Use the description interface configuration command to describe or name an interface. Use the no description command to remove a description from an interface.

description name-string
no description

Syntax Description

name-string

A text description between 1 and 20 alphanumeric characters.

Default

This command has no default value.

Command Mode

Interface configuration

Usage Guidelines

If you want to enter a description with spaces between characters, you must enclose the string in quotation marks (see "Paul's machine" example.)

Example

This example shows how to give the name Hal to Fast Ethernet port 1 of the second hub in the stack.

hostname(config)# hub 2
hostname(config-hub)# interface fastethernet 0/1
hostname(config-hub-if)# description Hal

This example shows how to give the name Paul's machine to Fast Ethernet port 8 of the bottom hub in a 4-hub stack.

hostname(config)# hub 4
hostname(config-hub)# interface fastethernet 0/8
hostname(config-hub-if)# description "Paul's machine"
Related Commands

interface
show interface hub
show interfaces

disable

Use the disable privileged EXEC command to exit the privileged access mode and enter user EXEC mode.

disable

Syntax Description

This command has no arguments or keywords.

Command Mode

Privileged EXEC

Example

This example shows how to exit the privileged EXEC mode and change to user EXEC mode.

hostname# disable
hostname>
Related Command

enable
end
exit

enable

Use the enable privileged EXEC command to set the EXEC mode access level.

enable [access-level]

Syntax Description

access-level

Either 1 (user EXEC level) or 15 (privileged EXEC level).

Default

The access-level default for initial login is 1. The default access level after login is 15.

Command Mode

Privileged EXEC

Usage Guidelines

If a password is configured, you are prompted for the password:

Password:
 

You are allowed three attempts to provide the correct password. If you exceed the maximum number of attempts, you are automatically logged out.

Example

This example shows you how to move from the initial login prompt to the privileged EXEC mode access where the password is cisco.

Cisco console system
$ enable 15
password: <cisco>
hostname#
Related Command

disable

enable password

Use the enable password privileged EXEC command to set the password for an access level. Use the no enable password command to clear the password.

enable password [level level] password
no enable password [level level]

Syntax Description

level

Level for which the password applies:

1 User EXEC privileges.
15 Privileged EXEC privileges.

password

A string of between 4 and 12 alphanumeric characters (case sensitive).

Default

No passwords are set. Privilege level defaults to level 15.

Command Mode

Global configuration

Usage Guidelines

Use the level-1 or level-15 password to log into the CLI. The level-15 password can also be used with the enable command.

If you enter a password that is shorter than 4 characters or longer than 8 characters, the following message appears:

Password must be between 4 and 8 characters long.
Examples

Both of these examples show how to set the privileged EXEC password to willow.

hostname(config)# enable password willow
hostname(config)# enable password level 15 willow
 

This example shows how to set the user EXEC password to minnow.

hostname(config)# enable password level 1 minnow
Related Command

enable

end

Use the end configuration command to exit any configuration mode and enter privileged EXEC mode.

end

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

All configuration modes

Example

This example shows how to exit the global configuration mode and enter privileged EXEC mode.

hostname(config)# end
hostname#
Related Commands

enable
exit

exit

Use the exit configuration command to exit the system or current configuration mode.

exit

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

All configuration modes.

Usage Guidelines

If the current mode is Privileged or user EXEC, this command exits the system and terminates the console or Telnet session. If the current mode is global configuration, this command sets the mode to Privileged EXEC. If the current mode is any other configuration mode, this command sets the mode to global configuration.

Examples

This example shows how to exit from global configuration mode and enter privileged EXEC mode:

hostname(config)# exit
hostname#
 

This example shows how to exit from interface configuration mode and enter global configuration mode:

hostname(config-hub-if)# exit
hostname(config)#
Related Commands

enable
end

help

Use the help user EXEC command to display an overview of the CLI help system or to get help for specific command syntax, arguments, and keywords.

help

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

All modes

Example

This example shows how to display the summary of command-line entries.

hostname> help
 
Help may be requested at any point in a command by entering a question mark `?'. If nothing matches, the help list will be empty and you must backup until entering a `?' shows the available options. Two styles of help are provided:
1. Full help is available when you are ready to enter a command argument (e.g. `show ?') and describes each possible argument.
2. Partial help is provided when an abbreviated argument is entered and you want to know what arguments match the input. (e.g. `show pr?')
 

This example shows how to display all the commands available from the configuration mode:

hostname(config)# ?
 
Configure commands:
cdp          Global CDP configuration subcommands
enable       Modify enable password parameters
end          Exit from configure mode
exit         Exit from configure mode
help         Description of the interactive help system
hostname     Set system's network name
hub          Select a hub to configure
ip           Global IP configuration subcommands
line         Configure a terminal line
no           Negate a command or set its defaults
snmp-server  Modify SNMP parameters
tftp         Configure TFTP
upgrade      Configure firmware upgrade
 

This example shows how to display arguments for the command clear counters.

hostname# clear counters ?
 
fastethernet  FastEthernet IEEE 802.3
hub           Clear hub's counters
segment       Clear segment's counters
Related Commands

None

hostname

Use the hostname global configuration command to set the system name. Use the no hostname command to clear the name.

hostname name
no hostname

Syntax Description

name

System name between 1 and 255 alphanumeric characters.

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to set the system name to the string Zorro.

(config)# hostname Zorro
Zorro(config)#
Related Commands

None

hub

Use the hub global configuration command to enter hub configuration mode

hub hub_no

Syntax Description

hub_no

A number from 1 to 4.

Default

This command has no default value.

Command Mode

Global configuration

Examples

This example shows how to select hub configuration mode for the top hub in a stack.

hostname(config)# hub 1
Related Commands

line console

interface

Use the interface hub configuration command to enter interface configuration mode for a designated port.

interface type module/port

Syntax Description

type

Interface type. The valid value is fastethernet.

module

Module interface number (not for use with this hub). Valid range for this value is 0.

port

Port number. Valid range is 1 to 8.

Default

This command has no default value.

Command Mode

Hub configuration

Example

This example shows how to enter interface configuration mode on Fast Ethernet port 5 for a stand alone hub.

hostname(config)# hub 1
hostname(config-hub)# interface fastethernet 0/5
hostname(config-hub-if)#
Related Commands

clear counters
description
show interface hub
show interfaces
shutdown
port-speed

ip address

Use the ip address global configuration command to configure hub IP address and subnet mask. Use the no ip address command to clear the IP address and subnet mask values.

ip address ipaddress mask
no ip address

Syntax Description

ipaddress

IP address in dotted decimal notation.

mask

Subnet mask in dotted decimal notation.

Default

This command has no default value.

Command Mode

Global configuration

Usage Guidelines

If the IP address you enter is not in the same subnet as the default gateway you enter with the command ip default-gateway, this command substitutes a default value of 0.0.0.0.

Example

This example shows how to set the hub IP address to 172.20.128.126 and the subnet mask to 255.255.255.0.

hostname(config)# ip address 172.20.128.126 255.255.255.0
Related Commands

ip state
ip default-gateway
show ip

ip default-gateway

Use the ip default-gateway global configuration command to configure the default gateway. Use the no ip default-gateway command to delete a configured default gateway and set the gateway address to the default value (0.0.0.0).

ip default-gateway ip-address
no ip default-gateway

Syntax Description

ip-address

Gateway IP address.

Default

This command has no default value.

Command Mode

Global configuration

Usage Guidelines

The default gateway IP address must be in the same subnet as the IP address entered for the command ip address, or the system shows the following error message:

The setting default-gateway IP address must be in the same subnet as the IP address.
Example

This example shows how to set the default gateway address to 172.20.128.126.

hostname(config)# ip default-gateway 172.20.128.126
Related Commands

ip address
ip state
show ip

ip http port

Use the ip http port global configuration command to select a Transmmission Control Protocol (TCP) port on which the Hypertext Transfer Protocol (HTTP) server accepts connections. Use the no ip http port command to select the default TCP port.

ip http port port-number
no ip http port

Syntax Description

port-number

TCP port number between 0 and 65535.

Note Port 23 is reserved as the Telnet port.
Default

TCP port 80.

Command Mode

Global configuration

Example

This example shows how to set the server to listen on TCP port 8080 for HTTP connections. Using this (nondefault) setting, you must instruct your browser to connect to port 8080 rather than 80.

hostname(config)# ip http port 8080
Related Commands

ip http server

ip http server

Use the ip http server global configuration command to enable Hypertext Transfer Protocol (HTTP) server functions. Use the no ip http server command to disable HTTP server functions.

ip http server
no ip http server

Syntax Description

This command has no arguments or keywords.

Default

HTTP server functions are enabled.

Command Mode

Global configuration

Example

This example shows how to disable HTTP server functions.

hostname(config)# no ip http server
Related Command

ip http port

ip state

Use the ip state global configuration command to select the method used for discovering the hub IP address.

ip state {user | bootp}

Syntax Description

user

User supplies IP address in response to a system prompt.

bootp

BootProtocol provides the IP address.

Default

Global configuration mode

Command Mode

Global configuration

Example

This example shows how to select BootP as the method of finding the system IP address.

hostname(config)# ip state bootp
 

This example shows how to select user as the method of finding the system IP address.

hostname(config)# ip state user
Related Commands

ip address
ip default-gateway

line console

Use the line console global configuration command to change to line-configuration mode.

line console

Syntax Description

This command has no additional arguments or keywords.

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to change the command mode from global configuration to line configuration.

hostname(config)# line console
hostname(config-line)#
Related Commands

databits
parity
password-thresh
silent-time
speed
stopbits
time-out

parity

Use the parity line-configuration command to set the parity of the port. Use the no parity command to disable parity for the port.

parity {none | odd | even | mark | space}
no parity

Syntax Description

none

No parity.

odd

Odd parity.

even

Even parity.

mark

Mark parity.

space

Space parity.

Default

No parity.

Command Mode

Line configuration

Example

The following example shows how to set the console port parity to odd:

hostname(config-line)# parity odd
Related Commands

databits
speed
stopbits
terminal

password-thresh

Use the password-thresh line configuration command to set the password intrusion threshold, which limits the number of failed logon attempts allowed.

password-thresh threshold

Syntax Description

threshold

A value between zero and 65500 password attempts.

Default

The default value is three attempts.

Command Mode

Line configuration

Usage Guidelines

When the logon attempt threshold is reached, the hub interface becomes silent for a user-defined amount of time before allowing the next logon attempt. See silent-time command to set this time interval.

Example

This example shows how to set the password attempt threshold to 5.

hostname# line console
hostname(line-config)# password_thresh 5
Related Commands

silent-time
time-out

ping

Use the ping user EXEC command to test the connectivity between the hub and a connected host. The ping command sends an ICMP echo message (ping) to the specified IP address.

ping {ip-address}

Syntax Description

ip-address

Target IP address.

Default

This command has no default value.

Command Mode

User EXEC

Example

The following example shows how to ping the host at IP address 172.20.128.10.

hostname> ping 172.20.128.10
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.128.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/6/ ms
Related Commands

ip address
ip default-gateway
show ip

port-speed

Use the port-speed hub-interface-configuration command to select the way in which a selected port adjusts its port speed to that of its neighbor.

port-speed {auto | 100M | 10M}

Syntax Description

auto

Auto-negotiation mode.

100M

100-Mbps mode only.

10M

10-Mbps mode only.

Default

The default setting is auto.

Command Mode

Interface configuration

Usage Guidelines

Use auto mode when you want the port to automatically adjust to more than one connecting device. This mode first attempts to connect at 100-Mbps. If that attempt fails, the port operates at 10-Mbps. This process repeats at each change in link status.

Example

This example shows how to set port 4 of hub 1 to operate exclusively at 100-Mbps.

hostname(config)# hub 1
hostname(config-hub)# interface fastethernet 0/4
hostname(config-hub-if)# port-speed 100M
Related Commands

configure

reload

Use the reload privileged EXEC command to reset the hub. This command prompts the user to confirm the reset. This command retains configured system parameters and static addresses and deletes dynamic addresses.

reload

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

The following example shows how to reset the hub.

hostname# reload
 
This command resets the hub. All configured system parameters and static addresses will be retained. All dynamic addresses will be removed.
Reset system, [Y]es or [N]o?
 

Press Y or N to proceed or any other character to abort.

Related Command

delete nvram

show cdp

Use the show cdp user EXEC command to display Cisco Discovery Protocol (CDP) status and configuration information for all hubs in a stack.

show cdp

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Example

The following example shows how to display the CDP configuration for all hubs.

hostname> show cdp
 
Global CDP information:
Sending CDP packets every 60 seconds
Sending a holdtime value of 180
Related Commands

cdp holdtime
cdp timer
cdp run
show cdp neighbors

show cdp neighbors

Use the show cdp neighbors user EXEC command to display Cisco Discovery Protocol (CDP) information about other devices directly connected to a hub (neighbors).

show cdp neighbors [type module/port] [detail]

Syntax Description

type

Interface type. Valid value is fastethernet.

module

Module interface number (not for use with this hub). Valid range for this value is 0.

port

Port number between 1 and 8.

detail

Optional command to show detail information for the port.

Default

This command has no default value.

Command Mode

User EXEC

Example

This example shows how to use CDP to display all discovered hub neighbors.

hostname> show cdp neighbors
 
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, P - Repeater,     H - Host,  I - IGMP
 
DeviceID      IP Addr          Capability Platform    Remote Port
Internal-Rou  210.68.150.254  R          Cisco 2500  Ethernet1
 

This example shows how to display detail information about port 6 neighbors using CDP.

hostname> show cdp neighbors detail
 
Device ID: Internal-Router
Entry Address: 210.68.150.254
Platform: Cisco 2500
Capabilities: Router
Remote Interface: Ethernet 1
Related Commands

cdp holdtime
cdp run
cdp timer
show cdp

show history

Use the show history user EXEC command to display the EXEC commands used that session. Configuration commands are not included.

show history

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Usage Guidelines

Configuration commands are not included in the command list.

Examples

This example shows how to list the nonconfiguration EXEC commands used during a session.

hostname> show history
 
enable
config
end
disable
show history
Related Commands

show running-config

show interface hub

Use the show interface hub Privileged EXEC command to display statistics and status for a specified hub.

show interface hub [hub_no]

Syntax Description

hub_no

Hub number. Valid range is 1 to 4, with 1 being the hub at the top of the stack. If no hub number is specified, statistics and status for all hubs are displayed.

Default

This command has no default value.

Command Mode

Privileged EXEC

Examples

This example shows how to display statistics and status information for hub 1.

hostname> show interface hub 1
 
Hub id: 1
Hub type: Cisco 1538M
Hub H/W Version: 1
Serial Number: ACT0248002Q
Agent Status: Master
Agent POST Version: V1.03
Agent System Version: V1.05
Hub 1 is attached to back plane
 
Statistics             10 Mb/s Segment   100 Mb/s Segment
-------------------    ---------------   ----------------
Readable Frames                  74191            3824175
Readable Bytes                59353442         3059353442
CRC Errors                         145               3089
Alignment Errors                     3                  9
Frames Too Long                      0                  0
Short Events                       890               7890
Runts                               90               1345
Collisions                         789               3482
Late Events                          9                 82
Very Long Events                     0                  0
Data Rate Mismatches                 0                  0
Auto Partitions                      0                  2
Total Errors                      2964              31198
Related Commands

description
interface
port-speed
show interfaces

show interfaces

Use the show interfaces privileged EXEC command to display statistics and status for all or specified hub interfaces.

show interfaces [type hub/module/port]

Syntax Description

type

Interface type. The valid value is fastethernet.

hub

Hub number. Valid range is 1 to 4, with 1 being the hub at the top of the stack.

module

Module number. Not for use with the Cisco 1538 hub. Valid range for this value is 0.

port

Port number. Valid range is 1 to 8.

Default

If you do not specify a type or a hub/module/port, statistics and status for all interfaces appear.

Command Mode

Privileged EXEC

Usage Guidelines

The output to this command varies depending on the network for which an interface has been configured.

Examples

This example shows how to display all current Fast Ethernet settings for the top hub in a stack.

hostname# show interfaces fastethernet 1
 
Hub ID: 1
Hub Type: 8 port/Managed
Hub H/W Version: 01
Agent Status: Master
Agent POST Version: 1.07 System Version: 1.04
10 Mbps Segment:
Bytes: 342256
Frame: 324
Collision: 
 
100Mbps Segment
Byte: 722439
Frame: 712
Collision: 
 

This example shows how to display statistics and status information for the Fast Ethernet port 1 of the top hub in the stack.

hostname# show interfaces fastethernet 1/0/1
 
FastEthernet 1/0/1 is link-up
Hardware is built-in 100Base-Tx
Description: port-1
Speed admin: Auto Negotiation
Speed status: 100M.
Duplex admin: half
Duplex status: half
 
Counters
---------------------------------------------------------
Bytes Received		4	Bytes Sentes		 272
Frames Received		980	Frames Sents		 64137
Total Bytes Received		0	Total Frames Received	0
CRC Error		0	Oversize Frames	0
Fragments		0	Frame Too Long Events	0
Collision		0	Late Collision	 0
64 Byte Frames		0	65-127 Bytes Frames	 0
128-255 Byte Frames		0	256-511 Bytes Frames	 0
512-1023 Byte Frames		0	1024-1522 Bytes Frames	0
MAC Rx Error		0	Dropped Frames	0
 
FastEthernet 1/0/1 is link-up
Hardware is built-in 100Base-Tx
Description: port-1
Port Admin: Enabled
Port Partition: not Auto Partitioned
Port Operation: Operational
Speed admin: Auto Negotiation
Speed status: 100M.
Last Source MAC Address: 00-00-E8-C0-1E-21
 
Counters
---------------------------------------------------------
Bytes Received		4	Frames Received	 980
CRC Errors		0	Alignment Errors	 0
Frames Too Long		0	Short Events	 0
Port Runts		0	Collisions	 0
Late Events		0	Data Rate Mismatches	 0
Auto Partitions		0	Total Errors	 0
 

This command displays statistics and status information on the Fast Ethernet hub 1, extension module 1, port 1.

hostname# show interfaces fastethernet 1/1/1
 
FastEthernet 1/1/1 is link-up
Hardware is built-in 100Base-Tx
Description: Tx-1
Port State: Enabled
Speed admin: Auto Negotiation
Speed status: 100M.
Duplex admin: Auto Negotiation
Duplex status: half
 
Counters
---------------------------------------------------------
Bytes Received		4	Frames Received	 980
Broadcast Pkt Rcvd		980	Multicast Pkt Rcvd	 64137
CRC Errors		0	Collision	 0
Under Size Frames		0	Over Size Frames	 0
Fragment		0	Jabber	 0
64 Byte Frames		0	65-127 Bytes Frames	 0
128-255 Bytes Frames		0	256-511 Bytes Frames	 0
512-1023 Bytes Frames		0	1024-1522 Bytes Frames	 0
Forward Packets		0	Filter Packets	 0
Related Commands

interface
description
port-speed
show interface hub

show ip

Use the show ip privileged EXEC command to display global IP configuration information, including the hub IP address, subnet mask, Hypertext Transfer Protocol (HTTP) server and port, and default gateway.

show ip

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display global IP configuration information.

hostname# show ip
 
IP State: user
IP Address : 172.20.128.164
Subnet Mask : 255.255.255.0
Default Gateway : 172.20.128.1
HTTP server: Enabled
HTTP port: 80
Related Commands

ip address
ip default-gateway
ip state

show line

Use the show line privileged EXEC command to display line-configuration information for the console port, including baud rate, data bits, stop bits, and parity setting.

show line

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display line-configuration information for the console port:

hostname# show line
 
Baud rate                             9600 baud
Data bits                             8 bit(s)
Stop bits                             1 bit(s)
Parity setting                        None
Password Threshold                    5 times
Silent Time                           180 second(s)
Time-out                              60 second(s)
Related Commands

databits
parity
password-thresh
silent-time
speed
stopbits
time-out

show running-config

Use the show running-config privileged EXEC command to display the list of configuration commands that modify the system's default configuration.

show running-config

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example
hostname# show running-config
 
Building configuration...
Current configuration:
!
version 2.2
!
hostname 1538M
!
!
end
Related Commands

show history

show snmp

Use the show snmp privileged EXEC command to display Simple Network Management Protocol (SNMP) configuration information.

show snmp

Syntax Description

This command has no additional arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display SNMP configuration information:

hostname# show snmp
 
Read community string : public
Write community string : private
Contact : John Smith
Location : Building M
Trap manager	Community string
---------------------------------------
172.20.128.165	public
172.20.128.166	private
172.20.128.167	public
172.20.128.168	private
Set Hosts
------------------
172.20.128.170
172.20.128.171
172.20.128.172
172.20.128.173
SNMP Trap Status
---------------------------------
Authentication Trap : Enabled
Link up/down Traps : Enabled
Related Commands

snmp-server community
snmp-server enable-trap
snmp-server host
snmp-server set-host

show snmp contact

Use the show snmp contact user EXEC command to display the Simple Network Management Protocol (SNMP) contact.

show snmp contact

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the SNMP contact:

hostname# show snmp contact
John Smith
Related Commands

snmp-server contact

show snmp hostname

Use the show snmp hostname user EXEC command to display the name of the Simple Network Management Protocol (SNMP) host server as set by the command hostname.

show snmp hostname

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

To set the name of a host, use the hostname command.

Example

This example shows how to display the name of the SNMP host server:

hostname# show snmp hostname
 
MegaHostServer
Related Commands

show snmp
show snmp contact
show snmp location
show snmp set-hosts
show snmp traps

show snmp location

Use the show snmp location privileged EXEC command to display the Simple Network Management Protocol (SNMP) server location string.

show snmp location

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the SNMP server location:

hostname# show snmp location
 
Building 14A
Related Commands

show snmp contact
snmp-server location

show snmp set-hosts

Use the show snmp set-hosts privileged EXEC command to display the read and write settings and IP address for the Simple Network Management Protocol (SNMP) set hosts.

show snmp set-hosts

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display SNMP set host information:

hostname# show snmp set-hosts
 
Read community string: public
Write community string: private
 
Set hosts configured:
172.20.128.126
Related Commands

snmp-server set-host

show snmp traps

Use the show snmp traps privileged EXEC command to display the Simple Network Management Protocol (SNMP) trap status.

show snmp traps

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display trap status for the stack.

hostname# show snmp traps
 
Authentication trap: Enabled
Linkup/link down trap: Enabled
 
Host                       Community String
----------------------------------------------
172.20.128.126
172.20.127.123             private
Related Commands

snmp-server host
snmp-server enable-trap

show terminal

Use the show terminal user EXEC command to display the terminal settings for the console port.

show terminal

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Examples

This example shows how to display the terminal settings for the console port.

hostname# show terminal
 
RS-232 configuration:
38400 baud, 8 data bits, 1 stop bits, None parity
Related Commands

databits
parity
speed
stopbits
terminal

show tftp

Use the show tftp privileged EXEC command to display the IP address of the default TFTP server and provide the file name of any firmware upgrade files and their status.

show tftp

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Examples

This example shows how to display the IP address of the default TFTP server and name and status of firmware update files:

hostname# show tftp
 
TFTP Server: 203.10.234.23
TFTP Firmware Upgrade File: op.bin
TFTP Upgrade Mode: permanent
Upgrade Status: No upgrade currently in progress.
Related Commands

copy tftp
tftp filename
tftp server
upgrade mode

show version

Use the show version user EXEC command to display basic hardware and firmware version information.

show version

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Example

This example shows how to display the basic hub hardware and firmware:

> show version
 
Cisco 1538M series Enterprise Edition Software
Version V2.03
Copyright (c) Cisco Systems, Inc.  1993-19998
ROM: System Bootstrap, Version 2.03
Hhost uptime is 1day(s) 06hour(s) 46minute(s) 49second(s)
MPC860EN processor with 4096K/1024K bytes of memory.
Hardware board revision is 1
Upgrade Status: No upgrade currently in progress
Base Ethernet Address: 00-10-29-EA-19-40
Serial Number: ACT0249002X
Related Commands

None

shutdown

Use the shutdown interface configuration command to disable an interface. Use the no shutdown command to restart a disabled interface.

shutdown
no shutdown

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Interface configuration

Usage Guidelines

To disable an interface, you must first select that interface from the global configuration mode using the interface command.

Examples

This example shows how to disable Fast Ethernet port 7 for hub 2:

hostname(config)# hub 2
hostname(config-hub)# interface fastethernet 0/7
hostname(config-hub-if)# shutdown
Related Command

configure

silent-time

Use the silent-time line configuration command to set the amount of time the management console is inaccessible after the number of unsuccessful logon attempts exceeds the threshold set by the password-thresh command.

silent-time time
no silent-time

Syntax Description

time

A value in seconds between 0 and 65500. 0 seconds means no silent-time.

Default

The default value is no silent-time.

Command Mode

Line configuration

Usage Guidelines

If the password threshold was not set with the password-thresh command, silent-time begins after the default value three attempts to logon.

Example

This example shows how to set the silent-time value for the console port to 60 seconds.

hostname(config)# line console
hostname(line-config)# silent-time 60
Related Commands

password-thresh
time-out

snmp-server community

Use the snmp-server community global configuration command to configure read-only or read-write Simple Network Management Protocol (SNMP) community strings. Use the no snmp-server community command to change the community string to its default value.

snmp-server community string [ro | rw]
no snmp-server community string

Syntax Description

string

Community string of 1 to 32 alphanumeric characters. No blank character spaces are allowed.

ro

Configures read-only access.

rw

Configures read-write access.

Default

Read-only (ro)

The default value of the read-only community string is public, and the default value of the read-write community string is private.

Command Mode

Global configuration

Example

This example shows how to set the read-write community string to newstring:

hostname(config)# snmp-server community newstring rw
Related Commands

snmp-server host
snmp-server set-host
snmp-server enable-trap

snmp-server contact

Use the snmp-server contact global configuration command to enter the name of a Simple Network Management Protocol (SNMP) contact person. Use the no snmp-server contact command to delete the existing SNMP contact name.

snmp-server contact contact-string
no snmp-server contact

Syntax Description

contact-string

Character string of 1 to 255 alphanumeric characters.

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to set the SNMP contact name to system_admin:

hostname(config)# snmp-server contact system_admin
Related Commands

show snmp contact
show snmp location

snmp-server enable-trap

Use the snmp-server enable-trap global configuration command to enable one or all available Simple Network Management Protocol (SNMP) trap operations. Use the no snmp-server enable-trap command to disable one or all traps.

snmp-server enable-trap {all | authentication | link-up-down}
no snmp-server enable-trap {all | authentication | link-up-down}

Syntax Description

all

All traps.

authentication

Authentication failure trap.

link-up-down

Link-up and link-down traps.

Default

Authentication failure and link-up and link-down traps are enabled.

Command Mode

Global configuration

Example

This example shows how to disable the generation of link-up and link-down traps:

hostname(config)# no snmp-server enable-trap link-up-down
Related Commands

show snmp traps
snmp-server community
snmp-server host
snmp-server set-host

snmp-server host

Use the snmp-server host global configuration command to add a Simple Network Management Protocol (SNMP) trap host and its corresponding community string to the list of hosts that are allowed to perform trap operations on the hub. Use the no snmp-server host command to delete an existing trap host.

snmp-server host host_ip community-string
no snmp-server host host_ip

Syntax Description

host_ip

IP address of trap host.

community-string

Community string value between 1 and 32 alphanumeric characters.

Default

This command has no default value.

Command Mode

Global configuration

Usage Guidelines

You can keep up to four trap hosts in your trap host list. If you need to add another trap host and four trap hosts have already been entered, you must remove one from the list using the no form of this command.

Example

This example shows how to specify 172.20.128.126 as the recipient of SNMP traps and trap-string as the community string:

hostname(config)# snmp-server host 172.20.128.126 trap-string
Related Commands

snmp-server community
snmp-server enable-trap
snmp-server set-host

snmp-server location

Use the snmp-server location global configuration command to specify the physical location of a Simple Network Management Protocol (SNMP) server. Use the no snmp-server location command to delete the existing SNMP server location.

snmp-server location location-string
no snmp-server location

Syntax Description

location-string

String between 1 and 255 alphanumeric characters (no spaces).

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to specify the SNMP location string as sysadmin-office:

hostname(config)# snmp-server location sysadmin-office
Related Commands

show snmp location
snmp-server contact

snmp-server set-host

Use the snmp-server set-host global configuration command to add a Simple Network Management Protocol (SNMP) set host to the list of hosts that are allowed to perform set operations on the hub. Use the no snmp-server set-host command to delete an existing set host.

snmp-server set-host host_ip
no snmp-server set-host host_ip

Syntax Description

host_ip

IP address of set host.

Default

This command has no default value.

Command Mode

Global configuration

Usage Guidelines

You can keep up to four set hosts in your set host list. If you need to add another set host and four have already been entered, you must remove one from the list using the no form of this command.

Example

This example shows how to specify 172.20.128.126 as the recipient of SNMP set operations.

hostname(config)# snmp-server set-host 172.20.128.126
Related Commands

snmp-server community
snmp-server enable-trap
snmp-server host

speed

Use the speed line configuration command to set the console port baud rate.

speed {2400 | 9600 | 19200 | 38400 | 57600}

Default

The default speed is 9600.

Command Mode

Line configuration

Example

This example shows how to set the console port baud rate to 19200.

hostname(config)# line console
hostname(config-line)# speed 19200
Related Commands

databits
parity
stopbits
terminal

stopbits

Use the stopbits line configuration command to set the number of stop bits for the console port.

stopbits {1 | 2}

Syntax Description

1 | 2

1 or 2 stop bits.

Default

1 stop bit.

Command Mode

Line configuration

Example

This example shows how to set the number of stop bits for the console port to 2.

hostname(config)# line console
hostname(config-line)# stopbits 2
Related Commands

databits
parity
speed
terminal

terminal

Use the terminal user EXEC command to set the attributes of the console port.

terminal [speed {2400 | 9600 | 19200 | 38400 | 56000}] [{7 | 8}] [stopbits {1 | 2}]
[parity {even | mark | none | odd | space}]

Syntax Description

speed

Transmit and receive speeds: 2400, 9600, 19200, 38400, or 56000.

databits

Number of data bits per character: 7 or 8.

stopbits

Asynchronous line stop bits: 1 or 2.

parity

Terminal parity: even, mark, none, odd, or space.

Default

The default settings for the port are 9600 baud, 8 data bits, 1 stop bit, and no parity.

Command Mode

User EXEC

Example

This example shows how to set the baud rate for the console port to 19200.

> terminal speed 19200
 

This example shows how to set the baud rate to 19200, the data bits to 7, and the stop bits to 1:

> terminal speed 19200 databits 7 stopbits 1
Related Commands

databits
parity
speed
stopbits

tftp filename

Use the tftp filename global configuration command to specify a file name for the firmware information downloading from the TFTP server. Use the no tftp filename command to clear the existing file name.

tftp filename filename
no tftp filename

Syntax Description

filename

Filename between 1 and 80 alphanumeric characters.

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to specify the filename as 1538.bin. The location of this file is c:\bin\.

hostname(config)# tftp filename c:\bin\1538.bin
Related Commands

copy tftp
show tftp
tftp server
upgrade mode

tftp server

Use the tftp server global configuration command to specify the IP address of the TFTP server. Use the no tftp server command to clear the IP address of the TFTP server.

tftp server host_ip
no tftp server

Syntax Description

host_ip

IP address of TFTP server.

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to specify the IP address of the TFTP server as 192.168.1.20:

hostname(config)# tftp server 192.168.1.20
Related Commands

copy tftp
show tftp
tftp filename
upgrade mode

time-out

Use the time-out line configuration command to specify how long the management console remains logged in but inactive before the console times out and requires a new login. Use the no time-out command to set the timeout value to its default value.

time-out time
no time-out

Syntax Description

time

A value of 0, or a time in seconds from 30 to 65500.

Default

The default value is 0 seconds.

Command Mode

Line configuration

Usage Guidelines

It is a good idea to set a non-zero timeout for security reasons.

Example

This example shows how to set the timeout value to 90 seconds.

hostname (config)# line console
hostname(line-config)# time-out 90
Related Commands

password-thresh
silent-time

upgrade mode

Use the upgrade mode global configuration command to set the download mode when downloading upgrade files from the TFTP server.

upgrade mode {permanent | temporary}

Syntax Description

permanent

Download the operational firmware to nonvolatile RAM.

temporary

Download the operational firmware to RAM.

Default

Permanent

Command Mode

Global configuration

Example

This example shows how to select the temporary TFTP download mode.

hostname (config)# tftp upgrade temporary
Related Commands

copy tftp
show tftp
tftp filename
tftp server


hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Jan 13 16:26:58 PST 2000
Copyright 1989 - 2000©Cisco Systems Inc.