06-22-2021 10:50 PM
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.
06-22-2021 11:41 PM
- 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.
06-23-2021 06:44 AM
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?
02-17-2023 09:24 PM
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
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.
03-15-2024 06:46 AM
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!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide