本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本檔案介紹多層資料交換器(MDS)連線埠監控功能。
思科建議您瞭解以下主題:
本文檔中的資訊基於Cisco MDS 9000系列多層交換機上的多層資料交換機功能。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
MDS埠監控是在MDS交換機中運行的監控服務。它監控22個光纖通道(FC)計數器(從NX-OS 8.5(1)開始的17個增加到17個),以及MDS 9700導向器交換機上的2個系統計數器。本文已更新,以納入NX-OS 8.5(1)中的許多增強功能。這包括所有NX-OS 9.x版本。
以下是連線埠監控器功能:
每個計數器的定義包含以下元素:
埠監控器的工作原理是上升閾值和下降閾值。當計數器達到或超過指定的上升閾值時,將生成上升閾值警報一次。如果計數器在隨後的輪詢間隔中保持超過下降閾值,則不會生成進一步的警報。一旦計數器達到小於下降閾值的值,就生成一次下降閾值警報。因此,事件(或問題)的時間介於上升和下降閾值之間。
以下是每個計數器的說明以及可用於開始的策略示例。
以下是策略中包含的計數器的說明:
注意:目前,從NX-OS 9.4(1)開始,埠監控器僅監控FC埠。乙太網路、虛擬光纖通道(VFC)或Fibre Channel over IP (FCIP)連線埠沒有監控。
lr-rx
lr-tx
credit-loss-reco
超時-丟棄
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
input-error
sfp-rx功率-低警告
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 —單詞、invalid-crc、tx-discards和timeout-discards。
- 警告—將此層級用於表示延遲/慢度的計數器
- 所有其他計數器,通常只指示一些延遲。
註:按嚴重程度區分事件級別後,DCNM中顯示的風險通告會有所不同。強烈建議使用。
邏輯型別全部、核心和邊緣
埠分為邏輯型別核心或邏輯型別邊緣。
- 邏輯型核心連線埠包括交換器間連結通訊協定(ISL) (E、TE)連線埠,以及與NPV交換器(F、Tf、NP、TNP)相互連線的F連線埠,因為這些連線埠的功能與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等)的portguard。這是因為問題通常不是出現在這些連線埠上,而是出現在終端裝置所連線的實際邊緣(F)連線埠上。如果對慢速漏極型別計數器的核心埠執行埠保護,則埠通道(E或F)中的所有埠通常最終都會被錯誤停用或抖動。這是因為MDS載入會平衡所有埠通道成員之間的所有交換,因此,所有成員埠都可能受到影響。
這些範例是NX-OS 8.1(1)上提供的新邏輯型別規格。8.1(1)之前的版本中,必須使用port-type access|trunk。
註:計數器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等計數器也可以。
- 只能為特定計數器名稱指定擁塞緩解埠操作:
-
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
內建的慢排連線埠監控器原則
從多年前開始,思科在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可以發出警報。
埠監控策略示例
獨立的核心和邊緣策略,無埠防護操作(針對8.5(1)之前的NX-OS):
此策略在以下情況下發出警報:
- 在60秒內有3個或更多鏈路丟失、同步丟失、訊號丟失事件。
- 在60秒內有5個或更多無效字(ITW)或invalid-crc。
- 在60秒內有100個或更多超時丟棄事件。
- 在60秒內有5個或更多個鏈路重置傳送或接收的事件。
- 在60秒內有1個或多個信用損失回收事件。
- 在60秒內有10個或多個100ms Tx-credit-not-available事件。
- 在10秒間隔內,平均Tx-datarate為80%或更高。
- 從XBAR(交換矩陣模組)傳送或接收到3個或多個內部CRC錯誤。
- 有80毫秒或更多的零信用(tx-slowport-oper-delay)例項
- 在一秒內存在txwait大於或等於30%的例項。這相當於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
無埠防護操作的單個策略(針對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埠連線。但是,如果需要對與緩慢釋放相關的計數器執行埠防護操作,則通常必須僅在邏輯型別邊緣策略上執行此操作。
邏輯型別核心策略與之前的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 -當Tx資料速率等於或大於90%時,此計數器可在有5 x 1秒的間隔時發出警報。
- rx-datarate-burst -當Rx資料速率達到90%或更多時,此計數器可以在有5 x 1秒的間隔時發出警報。
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
無埠防護操作的單個策略(適用於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埠連線。但是,如果需要對與緩慢釋放相關的計數器執行埠防護操作,則通常必須僅在邏輯型別邊緣策略上執行此操作。
邏輯型別核心策略與之前的CorePorts策略相同,但在以下條件下會錯誤停用:
- 在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 |
初始版本 |