Hi, thank you for your answer to my post.
with rc4, this code doesn't work :
------
use SNMP ;
my $trapSess = new  SNMP::Session (DestHost=>"mgr1" ,Version=>2,
Community=>"public" ,RemotePort=>162 );
die "Cannot create session: ${SNMP::ErrorStr}\n" unless defined $trapSess;

$trapSess->trap(oid => "sysDescr", uptime=> 1234 ) ;
--------
but this one works :
---------
use SNMP ;
my $trapSess = new  SNMP::Session (DestHost=>"mgr1" ,Version=>2,
Community=>"public" ,RemotePort=>162 );
die "Cannot create session: ${SNMP::ErrorStr}\n" unless defined $trapSess;

$trapSess->trap(oid => "sysDescr", uptime=> 1234,[[ifIndex, 1,
1],[sysLocation, 0, "here"]] ) ;
-----------
I can't prove there is a regression because I have no 5.1.2 installed on any
plateform actually. Nevertheless the last parameter is supposed
to be optional.
regards
Jean-Michel





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

Reply via email to