Re: exec deprecated
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
> I look for the extended directive that should replace the exec, but I didn't find it.
$ man snmpd.conf
EXTENDING AGENT FUNCTIONALITY
Arbitrary Extension Commands
[snip]
extend [MIBOID] NAME PROG ARGS
works in a similar manner to the exec directive, but with a num-
ber of improvements.....
> Should someone give me a link about such topic and mybe an example on how use
> the new extended command.
You use it in exactly the same way as the previous "exec" command:
extend .1.3.6.1.4.1.17377.35.13 diskusage /bin/df -a
The main difference is in the format of the output.
Try configuring this entry, and running "snmpwalk" on this OID,
and you'll see what I mean.
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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