A comprehensive Python SNMP library supporting v1/v2c/v3 with authentication and privacy protocols
84
A network monitoring utility that retrieves device metrics using SNMPv3 with encrypted communication.
The monitor connects to network devices using SNMPv3 with authentication and encryption to retrieve system information securely.
@generates
def get_snmp_data(host: str, port: int, username: str, auth_key: str, priv_key: str, oid: str) -> str:
"""
Retrieves SNMP data from a device using SNMPv3 with authentication and encryption.
Args:
host: Target device IP address
port: SNMP port number
username: SNMPv3 username
auth_key: Authentication passphrase (SHA)
priv_key: Privacy passphrase (AES encryption)
oid: Object identifier to query
Returns:
The value retrieved from the specified OID as a string
Raises:
Exception: If authentication fails or connection cannot be established
"""
pass
def get_multiple_snmp_data(host: str, port: int, username: str, auth_key: str, priv_key: str, oids: list[str]) -> dict[str, str]:
"""
Retrieves multiple SNMP data points from a device using SNMPv3 with authentication and encryption.
Args:
host: Target device IP address
port: SNMP port number
username: SNMPv3 username
auth_key: Authentication passphrase (SHA)
priv_key: Privacy passphrase (AES encryption)
oids: List of object identifiers to query
Returns:
Dictionary mapping OIDs to their retrieved values as strings
Raises:
Exception: If authentication fails or connection cannot be established
"""
passProvides SNMPv3 protocol support with authentication and encryption capabilities.
@satisfied-by
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