好的,该错误消息实际上是一个已知的 Cisco 错误 CSCvi51338。如果命令由只读用户运行,它会弹出任何类型的“显示”命令。
并且要在 ACI 环境中检查主干/叶交换机上的物理接口统计信息,无需登录到本地设备 - 只需 ssh 到 APIC,然后发出“show version”命令就足够了,就像这样:
apic1# show version
Role Pod Node Name Version
---------- ---------- ---------- ------------------------ --------------------
controller 1 1 apic1 3.1(1i)
leaf 1 101 leaf1 n9000-13.1(1i)
leaf 1 102 leaf2 n9000-13.1(1i)
leaf 1 103 leaf3 n9000-13.1(1i)
leaf 1 104 leaf4 n9000-13.1(1i)
spine 1 111 spine1 n9000-13.1(1i)
spine 1 112 spine2 n9000-13.1(1i)
apic1#
然后,您必须指定要检查的开关(及其接口)。假设我们要检查 Leaf1 上的接口 ethernet 1/50 - 然后我们发出这个命令并获取我们正在寻找的信息:
apic1# fabric 101 show interface ethernet 1/50
----------------------------------------------------------------
Node 101 (leaf1)
----------------------------------------------------------------
Ethernet1/50 is down (sfp-missing)
admin state is up, Dedicated Interface
Hardware: 1000/10000/100000/40000 Ethernet, address: 0000.0000.0000 (bia 00de.fbce.7012)
MTU 9150 bytes, BW 0 Kbit, DLY 1 usec
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, medium is broadcast
Port mode is routed
full-duplex, 100 Gb/s
FEC (forward-error-correction) : disable-fec
Beacon is turned off
Auto-Negotiation is turned on
Input flow-control is off, output flow-control is off
Auto-mdix is turned off
Rate mode is dedicated
Switchport monitor is off
EtherType is 0x8100
EEE (efficient-ethernet) : n/a
Last link flapped never
Last clearing of "show interface" counters never
0 interface resets
30 seconds input rate 0 bits/sec, 0 packets/sec
30 seconds output rate 0 bits/sec, 0 packets/sec
Load-Interval #2: 5 minute (300 seconds)
input rate 0 bps, 0 pps; output rate 0 bps, 0 pps
L3 in Switched:
ucast: 0 pkts, 0 bytes - mcast: 0 pkts, 0 bytes
L3 out Switched:
ucast: 0 pkts, 0 bytes - mcast: 0 pkts, 0 bytes
RX
0 unicast packets 0 multicast packets 0 broadcast packets
0 input packets 0 bytes
0 jumbo packets 0 storm suppression bytes
0 runts 0 giants 0 CRC 0 no buffer
0 input error 0 short frame 0 overrun 0 underrun 0 ignored
0 watchdog 0 bad etype drop 0 bad proto drop 0 if down drop
0 input with dribble 0 input discard
0 Rx pause
TX
0 unicast packets 0 multicast packets 0 broadcast packets
0 output packets 0 bytes
0 jumbo packets
0 output error 0 collision 0 deferred 0 late collision
0 lost carrier 0 no carrier 0 babble 0 output discard
0 Tx pause
apic1#