Hello Everyone
I am trying to make a perl script to gather LVS information and output
with snmpd.
I try to use NetSNMP::agent but I got some trouble.
This is what I have done.
vi /usr/bin/perl.pl
use Data::Dumper; use NetSNMP::agent (':all'); use NetSNMP::ASN
qw(ASN_OCTET_STR); sub myroutine { print "abcd\n"; }
$agent->register('mylink', '.1.3.6.1.4.1.8225.4712', \&myroutine);
$agent->main_loop();
The add this line to /etc/snmp/snmpd.conf
perl do "/usr/bin/perl.pl"
I both try (perl do "/usr/bin/perl.pl") and (perl do '/usr/bin/perl.pl')
but no one work:
snmpwalk -c tvu -v2c 172.16.1.200 .1.3.6.1.4.1.8225.4712
SNMPv2-SMI::enterprises.8225.4712 = No Such Object available on this agent
at this OID
I don't know what's wrong.
Is there anyone can help me?
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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