PySNMP Project Logo

Project diary
Documentation
Examples
License
Download
Mailing lists

Projects using PySNMP
TwistedSNMP
Zenoss


Relevant projects
SNMPy
YAPSNMP
LibSMI
Scotty software

SourceForge Logo

import sys
import string
import getopt

# Import PySNMP modules
from pysnmp import asn1, v1, v2c
from pysnmp import bulkrole

# Initialize help messages
options =           'Options:\n'
options = options + '  -p       port to communicate with at the agent. Default is 161.\n'
options = options + '  -r    number of retries to be used in requests. Default is 5.\n'
options = options + '  -t    timeout between retries. Default is 1.\n'
options = options + '  -v    SNMP version to use [1, 2c]. Default is 1 (version one).\n'
options = options + '  -i   file to read additional args from. Use \'stdin\' for stdin.'
usage = 'Usage: %s [options]    ' + str(val)

Need help? Try PySNMP mailing lists.