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-8/

{
  "context": "This evaluation assesses how well the engineer uses pysnmp's SNMPv3 User-based Security Model (USM) to implement secure SNMP operations with authentication and encryption. The focus is on proper usage of pysnmp's high-level API for SNMPv3, security configurations, and OID retrieval operations.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "SNMPv3 USM configuration",
      "description": "Uses pysnmp's UsmUserData with correct username, authentication protocol (usmHMACSHAAuthProtocol), authentication key, privacy protocol (usmAesCfb128Protocol), and privacy key to configure SNMPv3 user-based security",
      "max_score": 30
    },
    {
      "name": "SNMP engine setup",
      "description": "Uses pysnmp's SnmpEngine to create the SNMP engine instance required for operations",
      "max_score": 10
    },
    {
      "name": "UDP transport target",
      "description": "Uses UdpTransportTarget with correct host and port parameters to specify the SNMP agent address",
      "max_score": 10
    },
    {
      "name": "Context data configuration",
      "description": "Uses ContextData() to configure the SNMP context for operations",
      "max_score": 10
    },
    {
      "name": "Single OID retrieval",
      "description": "Uses getCmd() function from pysnmp.hlapi to retrieve a single OID value with proper ObjectType and ObjectIdentity configuration",
      "max_score": 15
    },
    {
      "name": "Multiple OID retrieval",
      "description": "Uses getCmd() function with multiple ObjectType instances to retrieve multiple OID values in a single operation",
      "max_score": 15
    },
    {
      "name": "Error handling",
      "description": "Properly checks errorIndication and errorStatus returned by pysnmp's getCmd() to detect authentication failures and other errors",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pysnmp

tile.json