A comprehensive Python SNMP library supporting v1/v2c/v3 with authentication and privacy protocols
84
{
"context": "This evaluation assesses how effectively an engineer uses the pysnmp library to implement SNMP SET operations for modifying device configuration values. The focus is on proper usage of pysnmp's high-level API for SET commands, authentication setup, and error handling.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import SET function",
"description": "Uses the appropriate SET function from pysnmp.hlapi (e.g., setCmd or slim.setCmd) to perform SNMP SET operations",
"max_score": 15
},
{
"name": "Configure authentication",
"description": "Correctly uses CommunityData for SNMPv2c or UsmUserData for SNMPv3 to configure authentication credentials",
"max_score": 20
},
{
"name": "Configure transport",
"description": "Properly uses UdpTransportTarget (or Udp6TransportTarget) to specify the target device hostname/IP and port",
"max_score": 15
},
{
"name": "Build variable bindings",
"description": "Creates ObjectType instances with ObjectIdentity for OIDs and appropriate value types (OctetString, Integer, etc.) for the SET operation",
"max_score": 20
},
{
"name": "Execute SET operation",
"description": "Calls the SET function with SnmpEngine, authentication, transport, context data, and variable bindings in the correct order",
"max_score": 15
},
{
"name": "Handle error response",
"description": "Checks errorIndication, errorStatus, and errorIndex from the SET response to detect and report failures appropriately",
"max_score": 10
},
{
"name": "Validate inputs",
"description": "Implements input validation (empty hostname, port range, missing credentials) before calling pysnmp functions, raising ValueError as specified",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-pysnmpevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10