Re: very simple exec usage

Max <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Charles,

> Are there any good examples out there that detail some simple exec, extend
> or pass configurations?  I've poked around in the docs and wiki, but
> didn't find any examples (sadly the only way I seem to learn properly).

Simple extend example:

snmpd.conf:

extend .1.3.6.1.4.1.29494 B /usr/local/share/ww-snmp/bin/s22-vmstat.sh

>From node manager:

integer value of character 'B' from ASCII table == 66

bash$ snmpget -v 3 -l authNoPriv -a MD5 -t 30 -On -A passphrase -u
username  host.example.com  .1.3.6.1.4.1.29494.3.1.1.1.66

.1.3.6.1.4.1.29494.3.1.1.1.66 = STRING: "r:0 b:0 si:0 so:0 io:2"

With 5.4 it seems that exec is completely deprecated and no longer
works as I just get 'no such OID' errors when I try to use the exec
lines I use with 5.0.9 (RHEL3 stable) snmpd.

- Max

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.