此产品的文档集力求使用非歧视性语言。在本文档集中,非歧视性语言是指不隐含针对年龄、残障、性别、种族身份、族群身份、性取向、社会经济地位和交叉性的歧视的语言。由于产品软件的用户界面中使用的硬编码语言、基于 RFP 文档使用的语言或引用的第三方产品使用的语言,文档中可能无法确保完全使用非歧视性语言。 深入了解思科如何使用包容性语言。
思科采用人工翻译与机器翻译相结合的方式将此文档翻译成不同语言,希望全球的用户都能通过各自的语言得到支持性的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 Cisco Systems, Inc. 对于翻译的准确性不承担任何责任,并建议您总是参考英文原始文档(已提供链接)。
本文档介绍多层数据交换机(MDS)端口监控功能。
Cisco 建议您了解以下主题:
本文档中的信息基于Cisco MDS 9000系列多层交换机上的多层数据交换机功能。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
MDS端口监控是在MDS交换机中运行的监控服务。它监控22个光纤通道(FC)计数器(从NX-OS 8.5(1)开始的17个增加到)和MDS 9700导向器交换机上的2个系统计数器。本文更新为包括NX-OS 8.5(1)中的许多改进。这包括所有NX-OS 9.x版本。
以下是端口监视器功能:
每个计数器的定义包含以下元素:
端口监控基于上升阈值和下降阈值工作。当计数器达到或超过指定的上升阈值时,将生成一次上升阈值警报。如果计数器在后续轮询间隔内保持超过下降阈值,则不会生成进一步的警报。一旦计数器达到小于下降阈值的值,就生成一次下降阈值警报。因此,事件(或问题)的时间介于上升阈值和下降阈值之间。
以下是可用于入门的每个计数器和示例策略的说明。
以下是策略中包含的计数器的说明:
注:目前,截至NX-OS 9.4(1)端口监控器,仅监控FC端口。不监控以太网、虚拟光纤通道(VFC)或IP光纤通道(FCIP)端口。
lr-rx
lr-tx
credit-loss-reco
timeout-discards
tx-credit-not-available
tx-discards
slowport-count
slowport-oper-delay
txwait
tx-datarate
rx-datarate
err-pkt-from-port
err-pkt-to-xbar
err-pkt-from-xbar
链路丢失
同步丢失
信号丢失
无效字
invalid-crc
这些计数器是NX-OS 8.5(1)和9.x中的新功能:
tx-datarate-burst
rx-datarate-burst
输入错误
sfp-rx-power-low-warn
sfp-tx-power-low-warn
注意:err-pkt-*计数器用于内部CRC检测,并且只能在一个策略上指定,而不管策略端口类型或逻辑类型如何。
要使MDS 9700在检测到内部CRC丢弃时采取自动操作,可以使用硬件 fabric crc threshold <xxx> 命令。有关详细信息,请参阅以下文档:
事件级别
以下是交换机中的默认rmon事件级别:
rmon event 1 log trap public description FATAL(1) owner PMON@FATAL
rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL
rmon event 3 log trap public description ERROR(3) owner PMON@ERROR
rmon event 4 log trap public description WARNING(4) owner PMON@WARNING
rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO
这些对应于这些端口监视器计数器定义中的event x值。计数器按事件严重性值分类:
- 致命—没有端口监视器计数器描述致死类型错误,因此不能使用此事件级别。
- 严重—将此级别用于可能指示链路故障的计数器。
- 链路丢失、同步丢失和信号丢失都表示链路故障。它们彼此非常相似,可以删除一个或多个。在逻辑类型边缘策略中,这些可以归类为警告,因为,例如,在正常情况下,当服务器重新启动时,可能会出现这些警告。
- lr-rx、lr-tx和credit-loss-reco是最严重的瓶颈指示。
- 此外,可以在执行任何portguard操作时使用。
- 错误—将此级别用于指示数据包/帧丢失的计数器。
- invalid - words、invalid-crc、tx-discards和timeout-discards。
- 警告-将此级别用于指示延迟/慢性的计数器
- 所有其他计数器,通常只指示一些延迟。
注意:按严重程度区分事件级别可直观区分DCNM中查看的警报。强烈建议。
逻辑类型全部、核心和边缘
端口分为逻辑类型核心或逻辑类型边缘。
- 逻辑型核心端口包括交换机间链路协议(ISL) (E, TE)端口以及与NPV交换机相互连接的F端口(F, Tf, NP, TNP),因为这些端口的功能与ISL类似。
- 逻辑型边缘端口必须仅包括连接到实际终端设备的端口(F端口)。
您可以通过
show interface 或
show interface brief 命令检查端口分类:
MDS9710-1# show interface fc9/1 fc9/1 is trunking Port description is ISL to F241-15-10-9706-2 fc6/1 Hardware is Fibre Channel, SFP is long wave laser cost reduced Port WWN is 22:01:54:7f:ee:ea:6f:00 Peer port WWN is 21:41:00:2a:6a:a4:b2:80 Admin port mode is auto, trunk mode is on snmp link state traps are enabled Port mode is TE Port vsan is 1 Admin Speed is auto max 32 Gbps Operating Speed is 32 Gbps Rate mode is dedicated Port flow-control is R_RDY Transmit B2B Credit is 500 Receive B2B Credit is 500 B2B State Change Number is 14 Receive data field Size is 2112 Beacon is turned off fec is enabled by default Logical type is core Trunk vsans (admin allowed and active) (1-2,100,209,237-238,802,2237) Trunk vsans (up) (1,100,209,237) Trunk vsans (isolated) (2,238,802,2237) Trunk vsans (initializing) () 5 minutes input rate 1184 bits/sec,148 bytes/sec, 1 frames/sec 5 minutes output rate 768 bits/sec,96 bytes/sec, 1 frames/sec 14079 frames input,1229484 bytes 0 discards,0 errors 0 invalid CRC/FCS,0 unknown class 0 too long,0 too short 14079 frames output,764364 bytes 0 discards,0 errors 0 input OLS,0 LRR,0 NOS,0 loop inits 0 output OLS,0 LRR, 0 NOS, 0 loop inits 500 receive B2B credit remaining 500 transmit B2B credit remaining 500 low priority transmit B2B credit remaining Interface last changed at Tue Mar 27 16:26:56 2018 Last clearing of "show interface" counters : never MDS9710-1#
MDS9710-1# show interface brief ----------------------------------------------------------------------------------------- Interface Vsan Admin Admin Status SFP Oper Oper Port Logical Mode Trunk Mode Speed Channel Type Mode (Gbps) ----------------------------------------------------------------------------------------- fc1/1 1 auto on sfpAbsent -- -- -- -- -- ...snip fc1/8 1 E auto trunking swl TE 16 149 core ...snip fc9/15 1 auto on sfpAbsent -- -- -- -- -- fc9/16 1 auto off up swl F 4 -- edge fc9/17 237 auto off up swl F 4 -- edge
一般来说,在逻辑类型核心端口上,不得将端口防护与瓶颈类型计数器(txwait、timeout-discards、credit-loss-reco、tx-credit-not-available等)一起使用。这是因为问题通常不是出在这些端口上,而是在连接终端设备的实际边缘(F)端口上。如果对瓶颈类型计数器的核心端口执行portguard,则端口通道(E或F)中的所有端口通常最终会出现errordisabled或flapped。这是因为MDS负载会平衡所有端口通道成员之间的所有交换,因此,所有成员端口都会受到影响。
这些示例是NX-OS 8.1(1)上提供的新逻辑类型规范。在8.1(1)之前的版本中,必须使用port-type access|trunk。
注意:counter tx-slowport-count仅在MDS 9500上可用。这些策略中不包含此策略。
使用Portguard
portguard功能是一项非常强大的功能,可使交换机自动处理某些错误情况。请考虑以下几点:
- 链路故障类型计数器(Link-loss、sync-loss、signal-loss、invalid-words)是能够而且必须使用portguard errordisable的计数器。端口摆动或退回会导致SAN中出现许多问题。在60秒间隔内3次左右的链路故障后禁用端口时出错,必须视为最佳实践。如果它是逻辑型核心端口(ISL<到NPV交换机的链路),则几乎总是存在端口通道中有多条链路的物理冗余(甚至端口通道中没有多条链路),因此禁用单个端口时的错误不会导致任何问题。对于逻辑型边缘端口,禁用该端口时出错,使得主机上的多路径软件能够正常运行,并将IO切换到其他正常运行的路径。
- 对于与拥塞相关的计数器(TxWait、Tx-datarate、Tx-datarate-burst、credit-loss-reco、timeout-discards、tx-credit-not-available、tx-slowport-count),不能为逻辑类型核心端口指定portguard。这是因为,这些核心端口通常仅反映相邻交换机上其他逻辑型边缘端口导致的拥塞。它们几乎始终不是造成拥塞的实际原因。对于逻辑类型边缘端口上与拥塞相关的计数器,可以为更严重的计数器(如credit-loss-reco、timeout-discards)指定portguard errordisable。如果rising-threshold值设置为高,则对TxWait和tx-credit-not-available等计数器也可以使用。
- 只能为某些计数器名称指定拥塞缓解端口QoS:
-
DIRL -启动动态入口速率限制
- TxWait
- Tx-datarate
- Tx-datarate-burst
FPIN -启动交换矩阵性能影响通知
- 拥塞
- 链路丢失
- 同步丢失
- 信号丢失
- 无效字
- invalid-crc
- txwait
cong-isolate-recover —使用自动恢复隔离拥塞
- credit-loss-reco
- tx-credit-not-available
- tx-slowport-oper-delay
- txwait
内置Slowdrain端口监控策略
从多年前开始,思科在NX-OS端口监控策略中引入了称为slowdrain的预置策略。 此策略具有最小的计数器,并且仅用于逻辑类型的边缘端口。在过去的几年中,为了适应拥塞故障排除的需要,网络地址进行了一些更改。无法修改此策略。
NX-OS 4.2(7d)到8.4(x)瓶颈策略
F241-16-10-9132T-1# show port-monitor slowdrain
Policy Name : slowdrain
Admin status : Active
Oper status : Active
Port type : All Edge Ports
-------------------------------------------------------- ----------------------------------------------------------------------
Counter Threshold Interval Rising Threshold event Falling Threshold event Warning Threshold PMON Portguard
------- --------- -------- ---------------- ----- ------------------ ----- --------------------- --------------
Credit Loss Reco Delta 1 1 4 0 4 Not enabled Not enabled
TX Credit Not Available Delta 1 10% 4 0% 4 Not enabled Not enabled
-------------------------------------------------------- ----------------------------------------------------------------------
NX-OS 8.5(1)到9.2(2)瓶颈策略
F241TS.14.09-9220i-1# show port-monitor slowdrain
Policy Name : slowdrain
Admin status : Active
Oper status : Active
Port type : All Edge Ports
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Counter | Threshold | Interval | Warning | Thresholds | Rising/Falling actions | Congestion-signal |
| | Type | (Secs) |--------------------|---------------------|-------------------------------------------------|-------------------|
| | | | Threshold | Alerts | Rising | Falling | Event | Alerts | PortGuard | Warning | Alarm |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Credit Loss Reco | Delta | 1 | none | n/a | 1 | 0 | 4 | syslog,rmon | none | n/a | n/a |
| TX Credit Not Available | Delta | 1 | none | n/a | 10% | 0% | 4 | syslog,rmon | none | n/a | n/a |
| TX Datarate | Delta | 10 | none | n/a | 80% | 70% | 4 | syslog,obfl | none | n/a | n/a |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
NX-OS 9.3(1)至9.4(1a)(或更高版本)瓶颈策略
F241-15-09-9710-1# show port-monitor slowdrain
Policy Name : slowdrain
Admin status : Active
Oper status : Active
Port type : All Edge Ports
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Counter | Threshold | Interval | Warning | Thresholds | Rising/Falling actions | Congestion-signal |
| | Type | (Secs) |--------------------|---------------------|-------------------------------------------------|-------------------|
| | | | Threshold | Alerts | Rising | Falling | Event | Alerts | PortGuard | Warning | Alarm |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Credit Loss Reco | Delta | 1 | none | n/a | 1 | 0 | 4 | syslog,rmon | none | n/a | n/a |
| TX Credit Not Available | Delta | 1 | none | n/a | 10% | 0% | 4 | syslog,rmon | none | n/a | n/a |
| TX Datarate | Delta | 10 | none | n/a | 80% | 70% | 4 | syslog,obfl | none | n/a | n/a |
| TXWait | Delta | 1 | none | n/a | 30% | 10% | 4 | syslog,rmon | none | n/a | n/a |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
配置
每个逻辑类型设置只能存在活动策略。也就是说,如果在策略中配置了logical-type all,则在该策略停用之前,其他策略不能变为活动状态。如果配置了逻辑类型核心或边缘策略,则同一逻辑类型的另一个策略也不能激活。
轮询间隔以秒为单位。
多个计数器配置为轮询间隔的百分比。它们是txwait、tx-credit-not-available、tx-datarate和rx-datarate。例如,对于txwait,如果值10配置为1(秒)的轮询间隔,则值为1秒的10%,即100毫秒。如果在1秒轮询间隔内txwait总累积为100毫秒,则txwait可以发出警报。
端口监控策略示例
独立核心和边缘策略,无Portguard操作(适用于8.5(1)之前的NX-OS):
此策略在以下情况下发出警报:
- 在60秒内有3个或更多链路丢失、同步丢失、信号丢失事件。
- 在60秒内有5个或更多无效单词(ITW)或invalid-crc。
- 在60秒内有100个或更多超时丢弃事件。
- 在60秒内有5个或更多链路重置传输或接收的事件。
- 在60秒内有1个或多个信用丢失恢复事件。
- 在60秒内有10个或更多100ms传输信用不可用事件。
- 在10秒间隔内的平均Tx-datarate为80%或更多。
- XBAR(交换矩阵模块)发送或接收到3个或更多内部CRC错误。
- 有80毫秒或更多的零信用点(tx-slowport-oper-delay)实例
- 在一秒内存在大于或等于30%的txwait实例。这相当于30毫秒。
注意:这两个策略类似,但逻辑类型核心策略具有稍高的阈值
port-monitor name CorePorts
logical-type core
counter link-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 2
counter sync-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 2
counter signal-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 2
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3
counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2
counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3
counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 2
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4
counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3
counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4
monitor counter err-pkt-to-xbar
monitor counter err-pkt-from-xbar
no monitor counter err-pkt-from-port
no monitor counter state-change
no monitor counter rx-datarate
port-monitor activate CorePorts
port-monitor name EdgePorts
logical-type edge
counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3
counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2
counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3
counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 79 event 4
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4
no monitor counter err-pkt-from-port
no monitor counter err-pkt-to-xbar
no monitor counter err-pkt-from-xbar
no monitor counter state-change
no monitor counter rx-datarate
port-monitor activate EdgePorts
无Portguard操作的单一策略(适用于8.5(1)之前的NX-OS):
注意:由于MDS监控所有端口是否存在比特错误,因此不需要使用无效字,但添加该无效字的目的是确保覆盖无效字。
port-monitor name AllPorts
logical-type all
counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 1 event 3
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 3
counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2
counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 3
counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 2
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4
counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3
counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4
counter txwait poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4
monitor counter err-pkt-to-xbar
monitor counter err-pkt-from-xbar
no monitor counter err-pkt-from-port
no monitor counter state-change
no monitor counter rx-datarate
port-monitor activate AllPorts
具有Portguard操作的双核和边缘策略(适用于8.5(1)之前的NX-OS):
当通过 portguard errordisable | flap 参数达到上升阈值时,端口可以关闭(禁用错误)或抖动。这可用于到N端口虚拟化(NPV)交换机(逻辑类型核心)以及常规终端设备F端口(逻辑类型边缘)的ISL和F端口连接。但是,如果需要对与瓶颈相关的计数器执行portguard操作,则通常必须仅在逻辑类型边缘策略上执行该操作。
逻辑类型核心策略与之前的CorePorts策略相同,不同之处在于它可以为以下情况错误禁用端口:
- 在60秒间隔内有4次或更多次链路故障(链路丢失、同步丢失、信号丢失)
- 在60秒间隔内收到10个或更多无效CRC帧。
- 在60秒间隔内收到10个或更多无效单词(ITW)。
由于端口关闭(错误禁用),因此使用portguard errordisable的所有端口上的事件级别都从4(警告)提高到2(错误):
port-monitor name CorePorts_w_Portguard logical-type core counter link-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable
counter sync-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable
counter signal-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable counter invalid-words poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 3 portguard errordisable
counter invalid-crc poll-interval 60 delta rising-threshold 10 event 2 falling-threshold 0 event 3 portguard errordisable counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3 counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 3 counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 2 counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 3 event 3 falling-threshold 0 event 3 counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 monitor counter err-pkt-to-xbar monitor counter err-pkt-from-xbar
no monitor counter err-pkt-from-port no monitor counter state-change no monitor counter rx-datarate port-monitor activate CorePorts_w_portguard
逻辑类型边缘策略与之前的EdgePorts策略相同,不同之处在于,它可以在以下条件errordisable 下提供端口:
- 在60秒间隔内有4次或更多链路故障。
- 在60秒间隔内收到10个或更多无效CRC帧。
- 在60秒间隔内有10个或更多无效单词。
- 在60秒间隔内,由于任何原因,有50个或更多发送(Tx)丢弃。
- 在60秒间隔内有50个或更多超时丢弃。这是交换机无法在拥塞丢弃阈值(默认值为500ms)内传输收到的帧的位置。
- 在60秒间隔内有4个或更多信用丢失恢复实例。这是F端口在一整秒内为零的Tx信用点的情况。
由于端口关闭(错误禁用),因此使用portguard errordisable的所有端口上的事件级别都从4(警告)提高到2(错误):
port-monitor name EdgePorts_w_Portguard logical-type edge counter link-loss poll-interval 60 delta rising-threshold 6 event 2 falling-threshold 0 event 2 portguard errordisable counter sync-loss poll-interval 60 delta rising-threshold 6 event 2 falling-threshold 0 event 2 portguard errordisable
counter signal-loss poll-interval 60 delta rising-threshold 6 event 2 falling-threshold 0 event 2 portguard errordisable
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 0 event 3 portguard errordisable counter invalid-words poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 0 event 3 portguard errordisable
counter tx-discards poll-interval 60 delta rising-threshold 50 event 2 falling-threshold 10 event 3 portguard errordisable counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 2 counter timeout-discards poll-interval 60 delta rising-threshold 50 event 2 falling-threshold 10 event 3 portguard errordisable counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 portguard errordisable counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4 counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 no monitor counter err-pkt-from-port no monitor counter err-pkt-to-xbar no monitor counter err-pkt-from-xbar no monitor counter state-change no monitor counter rx-datarate port-monitor activate EdgePorts_w_Portguard
独立核心和边缘策略,无端口防护操作(适用于NX-OS 8.5(1)或9.2(1)及更高版本):
这些策略与之前的NX-OS 8.5(1)版本之前的策略相同,不同之处在于它们还包括后续策略。
监视的新计数器:
- input-errors — 在60秒的时间间隔内出现5个或更多输入错误时,可能会发出警报。
- sfp-tx-power-low-warn —当收发器Tx功率为Tx功率低警告阈值的80%时,每隔10分钟发送一次警报。
- sfp-rx-power-low-warn —当收发器Rx功率为Tx功率低警告阈值的80%时,每隔10分钟发送一次警报。
- tx-datarate-burst —当传输数据速率达到90%或更高时,如果间隔为5 x 1秒,此计数器可能会发出警报。
- rx-datarate-burst —当间隔为5 x 1秒时(Rx数据速率90%或更高),此计数器可以发出警报。
port-monitor name CorePorts
logical-type core
counter link-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter sync-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter signal-loss poll-interval 60 delta rising-threshold 3 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
monitor counter err-pkt-to-xbar
counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter err-pkt-from-xbar
counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon
port-monitor name EdgePorts
logical-type edge
counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 79 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
no monitor counter err-pkt-to-xbar
no monitor counter err-pkt-from-xbar
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon
port-monitor activate EdgePorts
无Portguard操作的单一策略(适用于NX-OS 8.5(1)或9.2(1)及更高版本)
port-monitor name AllPorts
logical-type all
counter link-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter sync-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter signal-loss poll-interval 60 delta rising-threshold 3 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter invalid-words poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 1 event 4 alerts syslog rmon
counter invalid-crc poll-interval 60 delta rising-threshold 5 event 3 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter state-change
counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon
counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 4 alerts syslog rmon
counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 4 alerts syslog rmon
counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
no monitor counter rx-datarate
counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl
no monitor counter err-pkt-from-port
monitor counter err-pkt-to-xbar
counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter err-pkt-from-xbar
counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 alerts syslog rmon
counter txwait poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon
monitor counter sfp-tx-power-low-warn
counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
monitor counter sfp-rx-power-low-warn
counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80
counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90
counter input-errors poll-interval 60 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon
port-monitor activate AllPorts
具有Portguard操作的双核和边缘策略(适用于NX-OS 8.5(1)或9.2(1)及更高版本)
当通过 portguard errordisable | flap 参数达到上升阈值时,端口可以关闭(禁用错误)或抖动。这可用于到N端口虚拟化(NPV)交换机(逻辑类型核心)以及常规终端设备F端口(逻辑类型边缘)的ISL和F端口连接。但是,如果需要对与瓶颈相关的计数器执行portguard操作,则通常必须仅在逻辑类型边缘策略上执行该操作。
逻辑类型核心策略与之前的CorePorts策略相同,不同之处在于,在以下情况下它会被errordisable:
- 在60秒间隔内有4次或更多次链路故障(链路丢失、同步丢失、信号丢失)
- 在60秒间隔内收到10个或更多无效CRC帧或输入错误。
- 在60秒间隔内收到10个或更多无效单词(ITW)。
- 在60秒间隔内收到10个或更多输入错误。
由于端口已关闭(错误禁用),因此,对于任何端口使用portguard errordisable的情况,事件级别都已从4(警告)提高到2(错误):
port-monitor name CorePorts_w_Portguard logical-type core counter link-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter sync-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter signal-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter invalid-words poll-interval 60 delta rising-threshold 10 event 3 falling-threshold 1 event 2 alerts syslog rmon portguard errordisable counter invalid-crc poll-interval 60 delta rising-threshold 10 event 3 falling-threshold 0 event24 alerts syslog rmon portguard errordisable no monitor counter state-change counter tx-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon counter timeout-discards poll-interval 60 delta rising-threshold 100 event 3 falling-threshold 10 event 4 alerts syslog rmon counter credit-loss-reco poll-interval 60 delta rising-threshold 1 event 2 falling-threshold 0 event 4 alerts syslog rmon counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon no monitor counter rx-datarate counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl no monitor counter err-pkt-from-port monitor counter err-pkt-to-xbar counter err-pkt-to-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon monitor counter err-pkt-from-xbar counter err-pkt-from-xbar poll-interval 300 delta rising-threshold 5 event 4 falling-threshold 0 event 4 alerts syslog rmon counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 80 event 4 falling-threshold 0 event 4 alerts syslog rmon counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon monitor counter sfp-tx-power-low-warn counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80 monitor counter sfp-rx-power-low-warn counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80 counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90 counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90 counter input-errors poll-interval 60 delta rising-threshold 10 event 4 falling-threshold 1 event 2 alerts syslog rmon portguard errordisable port-monitor activate CorePorts_w_Portguard
逻辑类型边缘策略与之前的EdgePorts策略相同,不同之处在于,它可以在以下条件errordisable 下提供端口:
- 在60秒间隔内有4次或更多次链路故障(链路丢失、同步丢失和信号丢失)。
- 在60秒间隔内收到5个或更多无效CRC帧或无效字(ITW)。
- 在60秒间隔内,由于任何原因,有50个或更多发送(Tx)丢弃。
- 在60秒间隔内有50个或更多超时丢弃。这是交换机无法在拥塞丢弃阈值(默认值为500ms)内传输收到的帧的位置。
- 在60秒间隔内有4个或更多信用丢失恢复实例。这是F端口在一整秒内为零的Tx信用点的情况。
- 在60秒间隔内收到5个或更多输入错误。
port-monitor name EdgePorts_w_Portguard logical-type edge counter link-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter sync-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter signal-loss poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter invalid-words poll-interval 60 delta rising-threshold 10 event 3 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter invalid-crc poll-interval 60 delta rising-threshold event 10 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable no monitor counter state-change counter tx-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 2 alerts syslog rmon portguard errordisable counter lr-rx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon counter lr-tx poll-interval 60 delta rising-threshold 5 event 2 falling-threshold 1 event 4 alerts syslog rmon counter timeout-discards poll-interval 60 delta rising-threshold 50 event 3 falling-threshold 10 event 2 alerts syslog rmon portguard errordisable counter credit-loss-reco poll-interval 60 delta rising-threshold 4 event 2 falling-threshold 0 event 2 alerts syslog rmon portguard errordisable counter tx-credit-not-available poll-interval 1 delta rising-threshold 10 event 4 falling-threshold 0 event 4 alerts syslog rmon no monitor counter rx-datarate counter tx-datarate poll-interval 10 delta rising-threshold 80 event 4 falling-threshold 70 event 4 alerts syslog rmon obfl no monitor counter err-pkt-from-port no monitor counter err-pkt-to-xbar no monitor counter err-pkt-from-xbar counter tx-slowport-oper-delay poll-interval 1 absolute rising-threshold 50 event 4 falling-threshold 0 event 4 alerts syslog rmon counter txwait poll-interval 1 delta rising-threshold 20 event 4 falling-threshold 0 event 4 alerts syslog rmon monitor counter sfp-tx-power-low-warn counter sfp-tx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80 monitor counter sfp-rx-power-low-warn counter sfp-rx-power-low-warn poll-interval 600 delta rising-threshold 1 event 4 falling-threshold 0 event 4 alerts syslog rmon percentage 80 counter rx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90 counter tx-datarate-burst poll-interval 10 delta rising-threshold 5 event 4 falling-threshold 1 event 4 alerts syslog rmon obfl datarate 90 counter input-errors poll-interval 60 delta rising-threshold 10 event 4 falling-threshold 1 event 2 alerts syslog rmon portguard errordisable port-monitor activate EdgePorts_w_Portguard
验证
当前没有可用于此配置的验证过程。
故障排除
目前没有针对此配置的故障排除信息。
相关信息
版本 | 发布日期 | 备注 |
---|---|---|
3.0 |
28-Mar-2024 |
已更新8.5(1)及更高版本的多个计数器、事件级别和阈值。 |
2.0 |
12-Jan-2022 |
已更新多个计数器、事件级别和阈值。 |
1.0 |
02-Sep-2015 |
初始版本 |