Fulko,

I understand your point that a LinkUp trap needs the additional  ifIndex 
varbind. I didn't understand why the example I had been given by Bart also 
contained a sysDescr var-bind. My point is that I wish to send an 
enterprise specific trap that contains no additional var-binds. How do I 
do this? The following line is unsuccessful:

:\Perl\bin\perl -e "use SNMP; $SNMP::verbose=1; $SNMP::debugging=2; 
$SNMP::dump_packet=1; my $session = new SNMP::TrapSession(Community => 
\"public\", Port => 162, Version => \"2c\"); $session->trap(oid => 
\"1.3.6.1.4.1.2257.11.1.1.0.0.9\" ); 

This line results in a trap being sent - Why do I need to put in some 
var-bind when I don't want to ???

:\Perl\bin\perl -e "use SNMP; $SNMP::verbose=1; $SNMP::debugging=2; 
$SNMP::dump_packet=1; my $session = new SNMP::TrapSession(Community => 
\"public\", Port => 162, Version => \"2c\"); $session->trap(oid => 
\"1.3.6.1.4.1.2257.11.1.1.0.0.9\", [[sysLocation,0,\"Here\"]]  ); 


My other point is that the call to SNMP::sys_uptime() is actually coming 
from the trap subroutine in the SNMP.pm perl module not from my own code. 
This does not seem to be obtaining the correct value of sysUpTime. e.g. 
After running my agent for only a minute, the snmptrapd output displays 
this as 391 days or so.

Regards,

Ali


Please consider the environment before printing this email



-----------------------------------------------
This email and any attached files contains company confidential information 
which may be legally privileged.  it is intended only for the person(s) or 
entity to which it is addressed and solely for the purposes set forth therein.  
If you are not the intended recipient or have received this email in error 
please notify the sender by return, delete it from your system and destroy any 
local copies.  It is strictly forbidden to use the information in this email 
including any attachment or part thereof including copying, disclosing, 
distributing, amending or using for any other purpose.

In addition the sender excludes all liabilities (whether tortious or common 
law) for damage or breach arising or related to this email including but not 
limited to viruses and libel.

<<image/gif>>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
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