Basic
These scenarios shows how to configure SNMP service and perform some requests to monitor basic interface OIDs.
Test SNMP Interface Basic OIDs
Description
Scenario to check whether basic OIDs are included in
the telOSDxMonDBInterfaces
MIB.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces bridge br0 description 'Bridge Net Ifc' set interfaces dummy dum0 description 'Dummy Net Ifc' 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 telOSDxMonDBInterfaces
and check
if the output includes the following lines:
Show output
EthernetDescription."eth0" = STRING: EthernetType."eth0" = STRING: ethernet EthernetOper."eth0" = STRING: down BridgeDescription."br0" = STRING: Bridge Net Ifc BridgeType."br0" = STRING: bridge BridgeOper."br0" = STRING: up DummyDescription."dum0" = STRING: Dummy Net Ifc DummyType."dum0" = STRING: dummy DummyOper."dum0" = STRING: up
Test SNMP Interface Standard OIDs
Description
Scenario to check whether standard OIDs are included
in the IF-MIB
.
Scenario
Step 1: Set the following configuration in DUT0
:
set interfaces bridge br0 description 'Bridge Net Ifc' set interfaces dummy dum0 description 'Dummy Net Ifc' 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 1.3.6.1.2.1.31.1
and check
if the output includes the following lines:
Show output
IF-MIB::ifName.1 = STRING: lo IF-MIB::ifName.2 = STRING: eth0 IF-MIB::ifName.3 = STRING: eth1 IF-MIB::ifName.150 = STRING: dum0 IF-MIB::ifName.151 = STRING: br0 IF-MIB::ifAlias.150 = STRING: Dummy Net Ifc IF-MIB::ifAlias.151 = STRING: Bridge Net Ifc