A comprehensive Python SNMP library supporting v1/v2c/v3 with authentication and privacy protocols
84
{
"context": "This criteria evaluates how well the engineer uses pysnmp's high-level API for SNMP GET operations to retrieve MIB object values from network devices. The focus is on proper usage of core pysnmp components including the SNMP engine, authentication, transport targets, and GET command execution.",
"type": "weighted_checklist",
"checklist": [
{
"name": "SnmpEngine initialization",
"description": "Creates and uses a SnmpEngine instance to manage SNMP operations",
"max_score": 15
},
{
"name": "CommunityData usage",
"description": "Creates CommunityData object with the provided community string for SNMPv1/v2c authentication",
"max_score": 15
},
{
"name": "UdpTransportTarget creation",
"description": "Creates UdpTransportTarget using await UdpTransportTarget.create() with the provided hostname and port for network communication",
"max_score": 20
},
{
"name": "ContextData usage",
"description": "Creates and passes a ContextData instance to the get_cmd function",
"max_score": 10
},
{
"name": "ObjectType and ObjectIdentity",
"description": "Uses ObjectType with ObjectIdentity to specify OIDs for GET requests (e.g., ObjectType(ObjectIdentity('1.3.6.1.2.1.1.1.0')))",
"max_score": 20
},
{
"name": "get_cmd execution",
"description": "Uses await get_cmd() from pysnmp.hlapi.v3arch.asyncio (or similar hlapi module) to perform SNMP GET operations for each required OID",
"max_score": 15
},
{
"name": "Error handling",
"description": "Checks errorIndication and errorStatus returned by get_cmd and handles them appropriately (raises exceptions for connection errors, returns None for missing objects)",
"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