07-12-2022 03:30 PM
how do I get this to stop.
2960
Jul 12 18:01:24.197 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Flooding the logs and I cant get it to stop lol
Solved! Go to Solution.
07-12-2022 09:10 PM
@joshhboss wrote:
Using severity instead of Facility. for some reason with facility drops it wouldnt work. I tried copying every part of the log and it just kept failing.. but wow thank you so much for guiding me through to learning something new .. Love it..
Hmmmm ... facility does not work, eh? Try this:
logging discriminator USB msg-body drops type.USB
(I propose this because dropping ALL type-6 logs is not ideal.)
07-12-2022 03:38 PM
What IOS version is the switch on?
07-12-2022 04:41 PM
* 1 52 WS-C2960S-48FPS-L 15.2(2)E7 C2960S-UNIVERSALK9-M
07-12-2022 04:26 PM
Do you see the line "media-type rj45" under "SW# show run | section line con 0" ? If you have that configured and you have a cable connected to the USB console port then you will see that message on the terminal / logs.
07-12-2022 04:42 PM
SiteOpsSw128# show run | section line con 0
line con 0
media-type rj45
usb-inactivity-timeout 1
07-12-2022 04:48 PM
There is nothing connected to the switch tho other then aps and small office routers
07-12-2022 05:10 PM
How often do you see those messages on the logs? every 1 minute?
07-12-2022 05:12 PM
Jul 12 20:03:40.002 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:04:23.625 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:04:40.152 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:05:40.380 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:06:37.384 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:06:40.409 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:07:27.394 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:07:28.636 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:07:40.638 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:08:07.640 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:08:11.641 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:08:38.643 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:08:40.662 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
Jul 12 20:08:49.890 EST: %USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45
More often then that
07-12-2022 05:20 PM
Interesting, yes, frequency is lower than 1 minute. And just to confirm, are you in front of the Switch and can say 100% there is no USB console cable connected to the USB console port?
Also, how do you get access to this Switch CLI? via SSH / Telnet ?
07-12-2022 05:22 PM - edited 07-12-2022 05:24 PM
I am not in front of it but I am the only one who configures switches out of our crew and I dont even own any other type of console cable then a usb c to rj45.. but now that they are on the network I access it using ssh
07-12-2022 05:38 PM
Get someone to visually inspect the switch. I think someone has left a generic USB cable dangling from the mini-USB port.
07-12-2022 06:09 PM
The office is locked ill go check tomorrow.. in the meantime.. check out my newest post :). Always appreciate your input.
Thank You !
07-12-2022 05:36 PM
I see, ok then to try to avoid that message. What if you do a "default usb-inactivity-timeout" followed by a "default media-type rj45" under the "line con 0" config mode?
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#line con 0
Switch(config-line)#
Switch(config-line)# default usb-inactivity-timeout
Switch(config-line)# default media-type rj45
Switch(config-line)# exit
Switch(config)#
07-12-2022 06:19 PM
Didn't help.. ill check the switch tomorrow
07-12-2022 07:03 PM
@joshhboss wrote:%USB_CONSOLE-6-CONFIG_DISALLOW: Console media-type USB is disallowed by system configuration, media-type remains RJ45.
SiteOpsSw128# show run | section line con 0
line con 0
media-type rj45
usb-inactivity-timeout 1
I think this is an IOS bug.
Either upgrade the IOS to 15.2(2)E9 or add a logging discriminator:
conf t
logging discriminator USB facility drops USB_CONSOLE-6-CONFIG_DISALLOW
logging buffered discriminator USB 40960
logging console discriminator USB
logging monitor discriminator USB
end
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide