cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9096
Views
20
Helpful
11
Replies
Highlighted

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
Highlighted

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

11 REPLIES 11
Highlighted
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

Highlighted

thanks Xander,

 

I will try to get that working in Librenms ;)

 

cheers,

Mik

Highlighted

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

 

Highlighted

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

Highlighted

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

Highlighted

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

Highlighted

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

Highlighted

Ok then I have everything I need :)

 

cheers

Mik

Highlighted

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

 

Highlighted

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.

Highlighted

Hi,

 

Thanks.

 

It works fine.

 

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

 

 

 

Best regards,

 

Paulo 

Content for Community-Ad

This widget could not be displayed.