10-13-2022 02:24 PM
Good evening,
I am trying to find the command for viewing the Line Protocol State for a Cisco Nexus C93180YC-EX Switch. I have included an example below. The example below was created on a Catalyst 3850. I wish to view the port states similarly on my Nexus 9000. I tried the same command I would use on the 3850, but the command (if applicable) appears to be different for a Nexus switch. Can anyone let me know how to perform this now?
Switch(config)#interface Gi1/0/48
Switch(config-if)#shut
Switch(config-if)#
*Mar 17 10:27:12.383: %SYS-5-CONFIG_I: Configured from console by console
Switch(config-if)#
*Mar 17 10:27:13.214: %LINK-5-CHANGED: Interface GigabitEthernet1/0/47, changed state to administratively down
*Mar 17 10:27:14.215: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/47, changed state to down
Switch(config-if)#no shut
Switch(config-if)#
*Mar 17 10:27:20.759: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/48, changed state to up
*Mar 17 10:27:21.760: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/48, changed state to up
10-14-2022 07:18 AM
Hi,
Nexus OS does not have a command equivalent to "sh ip in brie". The closest you can come to that is
"sh int vlan x" which tells you if the protocol is up or down see the example below:
Vlan1 is down (Administratively down), line protocol is down, autostate enabled
HTH
10-14-2022 07:26 AM
On the 3850 switch, we used the command "terminal monitor" which allowed us to see the interface states as our Network Tests progressed. It also was good for troubleshooting if when a particular troubled interfaced finally did start working we could tell right away instead of always having to do a "sh ip in brie"
10-14-2022 04:13 PM
Through more searching I found the command "show logging logfiles" does show me the Line Protocol State but it shows you the line protocol for everything in the switch and the times the interface(s) were changed. If there was just a way to make that persistent to the interfaces when I change their states from up or down.
10-14-2022 05:10 PM
terminal monitor also use in NSK 9000
check link below
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/6-x/system_management/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_System_Management_Configuration_Guide/sm_5syslog.html
10-17-2022 11:30 AM
When I enter "terminal monitor" in as a command it only says that 'The terminal is being monitored'. I've tried the other commands to see if any of those would do what I am looking for, but unfortunately no luck so far. There has to be a way to make it so a persistent line protocol state message appear for an interface whenever the interface is shut or no shut like in my example above. For work purposes, we use that as a visual tool to verify that an interface in question did change its state from one to the other.
10-17-2022 11:49 AM - edited 10-17-2022 11:50 AM
if you access via console then you need
log console
if you access via vty/ssh you need
terminal monitor
the log level is 3
10-22-2022 01:06 PM
I am communicating with the switch through the console port. I am sorry for the delayed response and really do appreciate you taking the time to respond. I will resume my efforts using the 'log console' command and see where it gets me. I tried these commands before, but I may have been a been hasty in my attempts so it is worth another try.
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