Perl and SNMP - input options -


script uses net::snmp module perl.

i'm trying run snmpget command options added e.g. ( -ir ) (here list of options), haven't found way that. in documentation module didn't found adding input options snmp command.

if there other module supports this, bi nice wouldn't first pick require lot of changes in script (not mine script, doing minor changes).

i run system (or backticks) command perl, e.g.:

snmpget -v2c -c community -ir host oid 

and parse output avoid also.

any advice or solution welcome since i'm still new perl.

thx.

you linked documentation of net::snmp i'm sure you've read before asking... right?

there no "command", there script's calls api.

[edit after below comments]

net::snmp has no option check indexes before sending request. so, equivalent of -ir enabled default. in fact, net::snmp not load mib, has no way of checking validity of requested variables before sending request.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -