cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1198
Views
10
Helpful
7
Replies

Cisco Nexus 9000 Series Line Protocol State Command

vondoom2
Level 1
Level 1

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 

7 Replies 7

Reza Sharifi
Hall of Fame
Hall of Fame

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

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"

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.

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.

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

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.