CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pysnmp

A comprehensive Python SNMP library supporting v1/v2c/v3 with authentication and privacy protocols

84

0.94x
Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses pysnmp's UDP over IPv4 transport functionality to query SNMP-enabled devices. The focus is on proper usage of transport configuration, target addressing (IP/hostname), and timeout handling.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "UDP transport usage",
      "description": "Uses pysnmp's UDP transport (UdpTransportTarget or Udp6TransportTarget) to establish IPv4 communication with the target device",
      "max_score": 25
    },
    {
      "name": "Target addressing",
      "description": "Properly configures the transport target with the device address (hostname or IP) and port 161, allowing DNS resolution for hostnames",
      "max_score": 20
    },
    {
      "name": "Timeout configuration",
      "description": "Implements configurable timeout using the transport target's timeout parameter or retry parameter to control connection attempts",
      "max_score": 20
    },
    {
      "name": "SNMP engine usage",
      "description": "Creates and uses SnmpEngine (or equivalent from hlapi) to manage SNMP communication and state",
      "max_score": 15
    },
    {
      "name": "GET operation",
      "description": "Uses pysnmp's GET command (getCmd or equivalent from hlapi.v1arch/v3arch) to retrieve OID values from the device",
      "max_score": 15
    },
    {
      "name": "Error handling",
      "description": "Handles errorIndication from pysnmp responses to detect transport-level errors (timeouts, unreachable hosts, DNS failures)",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pysnmp

tile.json