Check Sfp Oids
These scenarios show how to configure SNMP service and perform requests to monitor SFP transceiver OIDs via ENTITY-MIB and ENTITY-SENSOR-MIB.
Test SNMP SFP Physical Entity OIDs
Description
Scenario to check whether SFP physical entity OIDs
are included in the ENTITY-MIB entPhysicalTable.
This verifies the chassis entry and SFP module entries
for devices with SFP/SFP+ interfaces.
Scenario
Step 1: Set the following configuration in DUT0 :
set service snmp community 'COMMUNITY2TEST!' set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Note
Execute the following command: service snmp walk local-agent v2c COMMUNITY2TEST! oid entPhysicalTable and check
if the output includes the following lines:
Show output
ENTITY-MIB::entPhysicalDescr.1 = STRING: OSDx Network Device - osdx ENTITY-MIB::entPhysicalClass.1 = INTEGER: chassis(3) ENTITY-MIB::entPhysicalName.1 = STRING: osdx ENTITY-MIB::entPhysicalMfgName.1 = STRING: Teldat ENTITY-MIB::entPhysicalModelName.1 = STRING: OSDx ENTITY-MIB::entPhysicalIsFRU.1 = INTEGER: false(2) ENTITY-MIB::entPhysicalDescr.1010 = STRING: SFP Module on eth1 ENTITY-MIB::entPhysicalClass.1010 = INTEGER: module(9) ENTITY-MIB::entPhysicalContainedIn.1010 = INTEGER: 1 ENTITY-MIB::entPhysicalIsFRU.1010 = INTEGER: true(1)
Test SNMP SFP Sensor OIDs
Description
Scenario to check whether SFP sensor OIDs are included
in the ENTITY-SENSOR-MIB entPhySensorTable.
This verifies temperature, voltage, TX/RX optical power,
and bias current sensor readings for SFP/SFP+ transceivers.
Scenario
Step 1: Set the following configuration in DUT0 :
set service snmp community 'COMMUNITY2TEST!' set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Note
Execute the following command: service snmp walk local-agent v2c COMMUNITY2TEST! oid entPhySensorTable and check
if the output includes the following lines:
Show output
ENTITY-SENSOR-MIB::entPhySensorType.1021 = INTEGER: celsius(8) ENTITY-SENSOR-MIB::entPhySensorType.1022 = INTEGER: voltsDC(4) ENTITY-SENSOR-MIB::entPhySensorType.1025 = INTEGER: amperes(5) ENTITY-SENSOR-MIB::entPhySensorType.1023 = INTEGER: watts(6) ENTITY-SENSOR-MIB::entPhySensorValue.1021 = INTEGER: 301 ENTITY-SENSOR-MIB::entPhySensorOperStatus.1021 = INTEGER: ok(1) ENTITY-SENSOR-MIB::entPhySensorUnitsDisplay.1021 = STRING: degrees Celsius