Hello,

I wrote an snmp agent in perl,
my $agent = new NetSNMP::agent('Name' => 'myAgent');
$agent->register('myAgent version', OID, \&Handle);

On first server, it work well. Just installed net-snmp-perl and copied my agent 
under /usr/share/snmp/snmp_perl.pl file.
No need to add perl do "/usr/share/snmp/snmp_perl.pl" in smpd.conf

On second server tried the same but no luck...
I then added : perl do "/usr/share/snmp/snmp_perl.pl" in smpd.conf
Agent start but work 1 time ...
I added $agent->main_loop(); in perl code and agent work again !!
But snmpd daeomon startup didn't give me back the hand...stay stucked...

Do you have an idea ??

Reagrds,

Benoit



_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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

Reply via email to