On 12/02/2008, Jordi Moles <[EMAIL PROTECTED]> wrote: > Could anyone try this easy example? > Just put a line like this in the smtpd.conf
snmpd.conf, but I know what you meant :-) > pass .1.3.6.1.4.1.2021.255 /root/script.pl > > > and then.. in the script.pl, something like > > *********** > #!/usr/bin/perl > `echo $ARGV[0] > /root/output.txt`; > `echo $ARGV[1] >> /root/output.txt`; > `echo $ARGV[2] >> /root/output.txt`; > `echo $ARGV[3] >> /root/output.txt`; > `echo $ARGV[4] >> /root/output.txt`; > `echo $ARGV[5] >> /root/output.txt`; > > ************ OK - contents of /root/output.txt are: With the current development code, the 5.4.x and 5.3.x lines: ======== -s .1.3.6.1.4.1.2021.255 string hi ======== With the 5.2.x line: =========== -s .1.3.6.1.4.1.2021.255 string =========== Are you using the 5.2.x agent? Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users