cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11174
Views
1
Helpful
4
Replies

SNMP OID for TX/RX Power of SFP transceivers

Shuhrat_Haitov
Level 1
Level 1

Hi,

Kindly please help me to find proper SNMP OIDs.

On cisco switches we can use the next command:

 

Sw#show interfaces transceiver
If device is externally calibrated, only calibrated values are printed.
++ : high alarm, + : high warning, - : low warning, -- : low alarm.
NA or N/A: not applicable, Tx: transmit, Rx: receive.
mA: milliamperes, dBm: decibels (milliwatts).

Optical Optical
Temperature Voltage Tx Power Rx Power
Port (Celsius) (Volts) (dBm) (dBm)
--------- ----------- ------- -------- --------
Gi1/0/26 43.0 3.30 -6.4 -5.9
Gi1/0/28 36.4 3.28 -5.0 -16.7

 

I am writing python script to collect these info on several switches (c9200, c1000, c9500). But I cant find OID for these information. Mostly I need TX/RX power of optical transceivers.

 

Thank you.  

4 Replies 4

marce1000
VIP
VIP

 

 - You may find this thread informational :

                  https://community.cisco.com/t5/xr-os-and-platforms/snmp-polling-of-optical-budget-dbm/td-p/2735006

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Shuhrat_Haitov
Level 1
Level 1

I red this topic, but didnt clearly understand it. Maybe it is language problem.

I cant find here exact answer for my question.

For example, if I read SNMP OID "1.3.6.1.4.1.9.2.1.3.0" then I will receive hostname of my switch.

 

Is there any OID like this where I can found TX/RX power of optical transceiver?

 

Also, I found this:

OID: 1.3.6.1.2.1.47.1.1.1.1.2.1051
Object: entPhysicalDescr 

Type: OCTET-STRING

Value: "GigabitEthernet1/0/28 Receive Power Sensor"

 

Will it help me to find proper info?

 

 

You can try in this OID if your device returns any data: SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4

For cisco A901-6CZ-FT-D XE router example: snmpwalk -v2c -c Community_string device_IP SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4

snmp walk tx rx power cisco 901 xe.PNG

 

snmp walk tx rx power cisco 901 xe_device_power.PNG

 

snmpget -v1 -c Community_string 10.253.178.85 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.53
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.53 = INTEGER: -104

You need to divide the value by 10 to get Optical power. 

SeanMy
Level 1
Level 1

Good Afternoon, 3 years late but if people are still looking

Check "Cisco-Entity-Sensor-MIB" HERE
The SFP Values will be stored in the "entSensorValue" along with Temperature, Volts and Amperes 
OID 1.3.6.1.4.1.9.9.91.1.1.1.1.4
The ports will not be displayed here and the values will need to be converted,  milli watts go into dB *10 
I am running a Cisco IE4000 on IOS 15.2(7)E2 for reference
Have a great weekend!