Re: Experimenta OIDs usage

2014-05-13 Thread M.AMJAD
/local/bin/snmp_extender.py -g .1.3.6.1.3.55   When the snmp agent runs the script it will supply those arguments.   Alan   From:M.AMJAD [mailto:amji...@yahoo.com] Sent: Monday, May 12, 2014 10:16 PM To: Robson, Alan; Net-snmp-users@lists.sourceforge.net Subject: Re: Experimenta OIDs usa

RE: Experimenta OIDs usage

2014-05-13 Thread Robson, Alan
, Alan; Net-snmp-users@lists.sourceforge.net Subject: Re: Experimenta OIDs usage Hello,,, i tried the procedure u told, but it generates the following error, can anybody resolve, please. [amjid@localhost ~]$ /usr/local/bin/snmp_extender.py Traceback (most recent call last): File "

Re: Experimenta OIDs usage

2014-05-12 Thread M.AMJAD
Hello,,,     i tried the procedure u told, but it generates the following error, can anybody resolve, please. [amjid@localhost ~]$ /usr/local/bin/snmp_extender.py Traceback (most recent call last):   File "/usr/local/bin/snmp_extender.py", line 4, in     OID = sys.argv[2].strip() IndexE

RE: Experimenta OIDs usage

2014-05-09 Thread Robson, Alan
This page: http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html#lbAZ describes how the snmp agent can be extended with a simple script. Here is a very bad example of a script that I saved in the file /usr/local/bin/snmp_extender.py ... #! /usr/bin/python -u import sys # OID is passed with