Configuring the Console Media Type: Example
This example disables the USB console media type and enables the RJ-45 console media type.
Switch#
configure terminal
Switch(config)#
line console 0
Switch(config-line)#
media-type rj45
This configuration terminates any active USB console media type in the stack. A log shows that this termination
has occurred. This example shows that the console on switch 1 reverted to RJ-45.
*Mar
1 00:25:36.860: %USB_CONSOLE-6-CONFIG_DISABLE: Console media-type USB disabled by
system configuration, media-type reverted to RJ45.
At this point no switches in the stack allow a USB console to have input. A log entry shows when a console
cable is attached. If a USB console cable is connected to switch 2, it is prevented from providing input.
*Mar
1 00:34:27.498: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed
by system configuration, media-type remains RJ45. (switch-stk-2)
This example reverses the previous configuration and immediately activates any USB console that is connected.
Switch#
configure terminal
Switch(config)#
line console 0
Switch(config-line)#
no media-type rj45
Configuring the USB Inactivity Timeout: Example
This example configures the inactivity timeout to 30 minutes:
Switch#
configure terminal
Switch(config)#
line console 0
Switch(config-line)#
usb-inactivity-timeout 30
To disable the configuration, use these commands:
Switch#
configure terminal
Switch(config)#
line console 0
Switch(config-line)#
no usb-inactivity-timeout
If there is no (input) activity on a USB console port for the configured number of minutes, the inactivity
timeout setting applies to the RJ-45 port, and a log shows this occurrence:
*Mar
1 00:47:25.625: %USB_CONSOLE-6-INACTIVITY_DISABLE: Console media-type USB disabled
due to inactivity, media-type reverted to RJ45.
At this point, the only way to reactivate the USB console port is to disconnect and reconnect the cable.
When the USB cable on the switch has been disconnected and reconnected, a log similar to this appears:
*Mar
1 00:48:28.640: %USB_CONSOLE-6-MEDIA_USB: Console media-type is USB.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
41
Configuration Examples for Interface Characteristics
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......