NetBurner 3.5.7
PDF Version
test_mib Namespace Reference

Functions

 snmp_walk (d, comm, ip, root)
 

Detailed Description

Verify the three custom MIB scalars at 1.3.6.1.4.1.8174.{1,2,3}.0 can be
read and written via SNMPv1.

Usage: python test_mib.py [device_ip] [read_community] [write_community]
Verify the read-only sensor table at 1.3.6.1.4.1.8174.20.* and the row-count
scalar at 1.3.6.1.4.1.8174.19.0.

The table has 8 rows x 8 columns = 64 leaves, plus the scalar.  A SET on any
column must be rejected (notWritable), and re-walking the table after a delay
should show sensorTemperature / sensorReadCount / sensorUptime moving while
the polling task in the device's UserMain runs.

Usage: python test_mib.py [device_ip] [community]

Function Documentation

◆ snmp_walk()

test_mib.snmp_walk ( d,
comm,
ip,
root )
Manual GETNEXT walk over `root`; returns list[(oid_str, value_str)].