소개
이 문서에서는 NMS(Network Management System)에서 Cisco 스위치 인터페이스의 사용 전력을 얻기 위해 peteMainPseConsumptionPower OID(Object Identifier)를 폴링하는 혼동을 설명합니다.
문제
SNMP(Simple Network Management Protocol) OID - 1.3.6.1.2.1.105.1.3.1.1.4(pehMainPseConsumptionPower)에서 사용량 전력을 와트 단위로 얻기 위해 폴링할 때 Cisco 스위치에서 일반적으로 사용되는 CLI와 일치하지 않는 값을 반환합니다.
예:
NMS>snmpwalk -c public -v2c 10.106.36.239 1.3.6.1.2.1.105.1.3.1.1.4
SNMPv2-SMI::mib-2.105.1.3.1.1.2.1 = Gauge32: 370
SNMPv2-SMI::mib-2.105.1.3.1.1.3.1 = INTEGER: 1
SNMPv2-SMI::mib-2.105.1.3.1.1.4.1 = Gauge32: 121
SNMPv2-SMI::mib-2.105.1.3.1.1.5.1 = INTEGER: 0
Switch#
Show power inline
Available:370.0(w)
Used:279.9(w) Remaining:90.1(w)
Interface Admin Oper Power Device Class Max
(Watts)
--------- ------ ---------- ------- ------------------- ----- ----
Fa0/1 auto off 0.0 n/a n/a 15.4
Fa0/2 auto off 0.0 n/a n/a 15.4
Fa0/3 auto off 0.0 n/a n/a 15.4
Fa0/4 auto off 0.0 n/a n/a 15.4
Fa0/5 auto on 3.3 IP Phone 7821 1 15.4
Fa0/6 auto off 0.0 n/a n/a 15.4
Fa0/7 auto off 0.0 n/a n/a 15.4
Fa0/8 auto off 0.0 n/a n/a 15.4
Fa0/9 auto on 3.3 IP Phone 7821 1 15.4
Fa0/10 auto off 0.0 n/a n/a 15.4
Fa0/11 auto off 0.0 n/a n/a 15.4
Fa0/12 auto off 0.0 n/a n/a 15.4
Fa0/13 auto on 3.3 IP Phone 7821 1 15.4
Fa0/14 auto on 13.7 IP Phone DX650 4 15.4
Fa0/15 auto on 3.3 IP Phone 7821 1 15.4
[an error occurred while processing this directive]
이전 동작은 다음 하드웨어 및 소프트웨어 버전에서 확인할 수 있습니다.
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 52 WS-C2960+48PST-S 15.0(2)SE6 C2960-LANLITEK9-M
--
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 26 WS-C2960+24PC-S 15.0(2)SE6 C2960-LANLITEK9-M
--
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 52 WS-C2960S-48LPS-L 15.0(2)EX5 C2960S-UNIVERSALK9-M
2 52 WS-C2960S-48LPS-L 15.0(2)EX5 C2960S-UNIVERSALK9-M
[an error occurred while processing this directive]
솔루션
OID peteMainPseConsumptionPower는 인터페이스에 대해 PoE(Power over Ethernet)에서 소비한 전력을 반환합니다.전원 감지 및 폴리싱 기능이 있는 2960과 같은 스위치의 경우 이 개체 식별자는 PoE 디바이스에서 사용하는 실제 전력을 제공합니다.실제 소비 전력을 제공하는 show power inline police 명령과 함께 포트 개별 소비(Oper Power 및 Totals at the end)를 사용할 수 있습니다.
NMS> snmpwalk -v 2c -c public 10.106.36.239 1.3.6.1.2.1.105.1.3.1.1
SNMPv2-SMI::mib-2.105.1.3.1.1.2.1 = Gauge32: 462
SNMPv2-SMI::mib-2.105.1.3.1.1.3.1 = INTEGER: 1
SNMPv2-SMI::mib-2.105.1.3.1.1.4.1 = Gauge32: 23
SNMPv2-SMI::mib-2.105.1.3.1.1.5.1 = INTEGER: 0
Switch#
show power inline police
Available:
462.0(w)
Used:43.6(w) Remaining:418.4(w)
Interface Admin Oper Admin Oper Cutoff Oper
State State Police Police Power Power
--------- ------ ---------- ---------- ---------- ------ -----
Gi0/1 auto on none n/a n/a 5.7
Gi0/2 auto on none n/a n/a 3.9
Gi0/3 auto on none n/a n/a 5.2
Gi0/4 auto on none n/a n/a 8.7
Gi0/5 auto off none n/a n/a n/a
Gi0/6 auto off none n/a n/a n/a
Gi0/7 auto off none n/a n/a n/a
Gi0/8 auto off none n/a n/a n/a
Gi0/9 auto off none n/a n/a n/a
Gi0/10 auto off none n/a n/a n/a
Gi0/11 auto off none n/a n/a n/a
Gi0/12 auto off none n/a n/a n/a
Gi0/13 auto off none n/a n/a n/a
Gi0/14 auto off none n/a n/a n/a
Gi0/15 auto off none n/a n/a n/a
Gi0/16 auto off none n/a n/a n/a
Gi0/17 auto off none n/a n/a n/a
Gi0/18 auto off none n/a n/a n/a
Gi0/19 auto off none n/a n/a n/a
Interface Admin Oper Admin Oper Cutoff Oper
State State Police Police Power Power
--------- ------ ---------- ---------- ---------- ------ -----
Gi0/20 auto off none n/a n/a n/a
Gi0/21 auto off none n/a n/a n/a
Gi0/22 auto off none n/a n/a n/a
Gi0/23 auto off none n/a n/a n/a
Gi0/24 auto off none n/a n/a n/a
Gi0/25 auto off none n/a n/a n/a
Gi0/26 auto off none n/a n/a n/a
Gi0/27 auto off none n/a n/a n/a
Gi0/28 auto off none n/a n/a n/a
Gi0/29 auto off none n/a n/a n/a
Gi0/30 auto off none n/a n/a n/a
Gi0/31 auto off none n/a n/a n/a
Gi0/32 auto off none n/a n/a n/a
Gi0/33 auto off none n/a n/a n/a
Gi0/34 auto off none n/a n/a n/a
Gi0/35 auto off none n/a n/a n/a
Gi0/36 auto off none n/a n/a n/a
Gi0/37 auto off none n/a n/a n/a
Gi0/38 auto off none n/a n/a n/a
Gi0/39 auto off none n/a n/a n/a
Gi0/40 auto off none n/a n/a n/a
Gi0/41 auto off none n/a n/a n/a
Interface Admin Oper Admin Oper Cutoff Oper
State State Police Police Power Power
--------- ------ ---------- ---------- ---------- ------ -----
Gi0/42 auto off none n/a n/a n/a
Gi0/43 auto off none n/a n/a n/a
Gi0/44 auto off none n/a n/a n/a
Gi0/45 auto off none n/a n/a n/a
Gi0/46 auto off none n/a n/a n/a
Gi0/47 auto off none n/a n/a n/a
Gi0/48 auto off none n/a n/a n/a
--------- ------ ---------- ---------- ---------- ------ -----
Totals: 23.4
[an error occurred while processing this directive]
USED 전력 열은 포트에 할당된 PoE의 양을 나타냅니다.
AVAILABLE power 열은 시스템의 총 PoE를 나타냅니다.
REMAINING 전원 열은 (Available - Used) 를 의미합니다.
따라서 PeteMainPseConsumptionPower의 SNMPWALK 출력을 비교하는 데 사용할 올바른 명령은 show power inline police입니다.
관련 정보
PoE(Power over Ethernet) 구성