cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
28183
Views
31
Helpful
19
Replies

SNMP Polling of optical budget (dbm)

Hi,

 

I can't seem to find an OID to monitor transceiver optics RX/TX as "dbm" on IOS-XR like we can do on catalyst/IOS devices for example

ENTITY-SENSOR-MIB only seems to report celsius/amperes/watts/voltsDC sensors ?

 

thanks

Mik

1 Accepted Solution

Accepted Solutions

oh ha yeah that is very simple: it is the 10*log(mW).

milli watts go into dB via a 10* the logarithm of (mw).

 

xander

 

 

View solution in original post

19 Replies 19

xthuijs
Cisco Employee
Cisco Employee

Hi Mik,

yup that can be done!

19: entPhysicalEntry.2.1189911 (EntPhysicalEntry) Transceiver Rx Power Sensor [54.72.61.6E.73.63.65.69.76.65.72.20.52.78.20.50.6F.77.65.72.20.53.65.6E.73.6F.72 (hex) Size = 27]
22: entPhysicalEntry.2.1894502 (EntPhysicalEntry) Transceiver Tx Power Sensor [54.72.61.6E.73.63.65.69.76.65.72.20.54.78.20.50.6F.77.65.72.20.53.65.6E.73.6F.72 (hex) Size = 27]

It is part of the entity-mib/entity-sensor mib,

 

but you need to enable the sysowner keyword on the community string definition.

cheers!

xander

thanks Xander,

 

I will try to get that working in Librenms ;)

 

cheers,

Mik

hmm still fighting with it :

 

snmpwalk -v2c -c xxxxx -m ENTITY-SENSOR-MIB -M . <some ASR9922> 1.3.6.1.2.1.47.1.1.1.1 | grep 2630860
ENTITY-MIB::entPhysicalDescr.2630860 = STRING: Transceiver Rx Power Sensor
ENTITY-MIB::entPhysicalVendorType.2630860 = OID: SNMPv2-SMI::enterprises.9.12.3.1.8.46
ENTITY-MIB::entPhysicalContainedIn.2630860 = INTEGER: 6656371
ENTITY-MIB::entPhysicalClass.2630860 = INTEGER: sensor(8)
ENTITY-MIB::entPhysicalParentRelPos.2630860 = INTEGER: 2
ENTITY-MIB::entPhysicalName.2630860 = STRING: power Rx 0/10/CPU0/4
ENTITY-MIB::entPhysicalHardwareRev.2630860 = STRING: 
ENTITY-MIB::entPhysicalFirmwareRev.2630860 = STRING: 
ENTITY-MIB::entPhysicalSoftwareRev.2630860 = STRING: 
ENTITY-MIB::entPhysicalSerialNum.2630860 = STRING: 
ENTITY-MIB::entPhysicalMfgName.2630860 = STRING: 
ENTITY-MIB::entPhysicalModelName.2630860 = STRING: 
ENTITY-MIB::entPhysicalAlias.2630860 = STRING: 
ENTITY-MIB::entPhysicalAssetID.2630860 = STRING: 
ENTITY-MIB::entPhysicalIsFRU.2630860 = INTEGER: false(2)

 

I do have the SystemOwner param on the snmp-server community line (XR 5.3.1)

did I miss something ?

 

thanks

Mik

 

few more things:

is hte mgbl pie loaded and operational? is the optic supporting DOM?

here is a sample output of it working:

:~ xthuijs$ snmpwalk -v2c -c public 10.86.188.99 1.3.6.1.2.1.47.1.1.1.1.7  | grep 1189911
SNMPv2-SMI::mib-2.47.1.1.1.1.7.1189911 = STRING: "power Rx 0/0/0/9"

:~ xthuijs$ snmpwalk -v2c -c public 10.86.188.99 1.3.6.1.4.1.9.9.91.1.1.1.1.4  | grep 1189911
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.1189911 = INTEGER: 213

RP/0/RSP0/CPU0:A9K-BNG#show controller gig 0/0/0/9 phy | i Power
Mon Aug 10 15:34:34.736 EDT
.....
        Tx Power:  0.17870 mW (-7.47875 dBm)
        Rx Power:  0.21390 mW (-6.69789 dBm)

xander

thanks Xander,

all was fine, just did not know the OID to poll :)

 

so I got it this time :

SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.2630860 = INTEGER: 425


​which correctly match :

RP/0/RP0/CPU0:xxxx#show controllers te0/10/0/4 phy | i Power

        Tx Power:  0.70110 mW (-1.54220 dBm)
        Rx Power:  0.42580 mW (-3.70794 dBm)

thanks again

 

 

cheers

Mik

but that's not a dbm value ! :P

is there a formula to convert to dbm ? (from what I read it was not that simple ?)

 

Mik

oh ha yeah that is very simple: it is the 10*log(mW).

milli watts go into dB via a 10* the logarithm of (mw).

 

xander

 

 

Ok then I have everything I need :)

 

cheers

Mik

I am not getting any interface with tx & rx , I am trying to monitor power in cacti , I am getting below with oid "1.3.6.1.4.1.9.9.91.1.1.1.1.4" but not getting any interface , I am running XR 5.3.4 ( ASR9K).

systemowner is also defined for snmp community on router.

 

SNMPv2-SMI::mib-2.47.1.1.1.1.7.137974 = STRING: "lane1_power Tx 0/10/CPU0/1/1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.142738 = STRING: "lane0_power Tx 0/10/CPU0/1/0"

...

...

SNMPv2-SMI::mib-2.47.1.1.1.1.7.63560981 = STRING: "power Rx 0/1/CPU0/25"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.63978218 = STRING: "power Rx 0/11/CPU0/11"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.64129741 = STRING: "power Tx 0/1/CPU0/6"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.64398974 = STRING: "power Rx 0/11/CPU0/12"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.65098031 = STRING: "power Rx 0/11/CPU0/24"

 

 

 

Kindly help

 

Thanks

Syed

 

Hi @abid@emix.net.ae

I'am trying to do the same.

Kindly share with me the cacti plugin details and MIB needed on the cisco side.

Hi,

 

Thanks.

 

It works fine.

 

Is there any way to fetch tx/rx values also for tenG sfp's?

 

 

 

Best regards,

 

Paulo 

<p>通过oid&nbsp; &nbsp;.1.3.6.1.2.1.47.1.1.1&nbsp; 获取到所entphysicalTable</p>
<div id="tinyMceEditor_62283bf829876400uu8zw0rf3DPJspe5d6_0" class="mceNonEditable lia-copypaste-placeholder">&nbsp;</div>
<p>&nbsp;</p>
<p class="lia-align-left">再利用 获取到entsensorValueTable</p>
<p class="lia-align-left">&nbsp;</p>
<p><li-image width="869" height="329" alt="image.png" align="inline" id="123146i3E265D1B0075255B" size="large" sourceType="new"></li-image></p>
<p>文档中说entSensorValueTable表格的index为entphysicalIndex但是在entPhysicalTable中并不存在3000XXXX的entPhysicalIndex请问这里是如何做对照的</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

ddd

利用snmp 的oid  .1.3.6.1.2.1.47.1.1.1  获取到entphysicalTable

entPhysicalIndex	entPhysicalDescr	entPhysicalVendorType	entPhysicalContainedIn	entPhysicalClass	entPhysicalParentRelPos	entPhysicalName	entPhysicalHardwareRev	entPhysicalFirmwareRev	entPhysicalSoftwareRev	entPhysicalSerialNum	entPhysicalMfgName	entPhysicalModelName	entPhysicalAlias	entPhysicalAssetID	entPhysicalIsFRU	Index Value
4995	Supervisor-1 Port-46	.1.3.6.1.4.1.9.12.3.1.10.131	22	port	46	Supervisor-1 Port-46					Cisco Systems	Sup-Port	SUPport	SUPPort_1.0	FALSE	4995
4996	Supervisor-1 Port-47	.1.3.6.1.4.1.9.12.3.1.10.131	22	port	47	Supervisor-1 Port-47					Cisco Systems	Sup-Port	SUPport	SUPPort_1.0	FALSE	4996
4997	Supervisor-1 Port-48	.1.3.6.1.4.1.9.12.3.1.10.131	22	port	48	Supervisor-1 Port-48					Cisco Systems	Sup-Port	SUPport	SUPPort_1.0	FALSE	4997
21590	module-1 Outlet	.1.3.6.1.4.1.9.12.3.1.8.29	22	sensor	1	module-1 Outlet					Cisco Systems				FALSE	21590
21591	module-1 Outlet	.1.3.6.1.4.1.9.12.3.1.8.29	22	sensor	2	module-1 Outlet					Cisco Systems				FALSE	21591
21592	module-1 Intake	.1.3.6.1.4.1.9.12.3.1.8.29	22	sensor	3	module-1 Intake					Cisco Systems				FALSE	21592
21593	module-1 Intake	.1.3.6.1.4.1.9.12.3.1.8.29	22	sensor	4	module-1 Intake					Cisco Systems				FALSE	21593
21594	module-1 FC-SOC1	.1.3.6.1.4.1.9.12.3.1.8.29	22	sensor	5	module-1 FC-SOC1					Cisco Systems				FALSE	21594

利用oid  .1.3.6.1.2.1.47.1.1.1  获取entSensorValueTable获取到端口信息

entSensorType	entSensorScale	entSensorPrecision	entSensorValue	entSensorStatus	entSensorValueTimeStamp	entSensorValueUpdateRate	entSensorMeasuredEntity	Index Value
celsius	units	0	34	ok	4 hours 31 minutes 49 seconds	60		21590
celsius	units	0	35	ok	4 hours 31 minutes 49 seconds	60		21591
celsius	units	0	33	ok	4 hours 31 minutes 49 seconds	60		21592
celsius	units	0	34	ok	4 hours 31 minutes 49 seconds	60		21593
celsius	units	0	41	ok	4 hours 31 minutes 49 seconds	60		21594
voltsAC	micro	0	3303900	ok	0 millisecond	60		300000002
amperes	micro	0	7890000	ok	0 millisecond	60		300000004
celsius	micro	0	44015624	ok	0 millisecond	60		300000007
dBm	micro	0	-2435921	ok	0 millisecond	60		300000013
dBm	micro	0	-2958495	ok	0 millisecond	60		300000014
voltsAC	micro	0	3355000	ok	0 millisecond	60		300007042
amperes	micro	0	0	ok	0 millisecond	60		300007044
celsius	micro	0	35222656	ok	0 millisecond	60		300007047
dBm	micro	0	-24436976	ok	0 millisecond	60		300007053
dBm	micro	0	0	ok	0 millisecond	60		300007054

但是按mib库中介绍entSensorValueTable 中的index应该为entPhysicalIndex  但是在entphysicalTable 中并没有上表中30000XXXX的index请问这里面是如何计算的?

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: