I am trying to send an SNMPv2 trap from my SubAgent which can communicate
with an SNMP Manager via the Agent X master agent. I am running version
5.7.1 pre2 on Windows and trying to send traps to the snmptrapd daemon.
My code for sending the trap is as follows:
my $host = '127.0.0.1';
I have now managed to send out an SNMPv1 trap correctly using the
following code:
my $host = '10.50.80.197';
my $comm = 'public';
my $session= new SNMP::TrapSession(DestHost = $host, Community =
$comm, Port = 162, Version = 1);
On Wed, Sep 28, 2011 at 4:36 PM, ali.br...@selex-comms.com wrote:
However I am still unable to send out an SNMP v2 trap.
Also is there a way of obtaining the value for uptime from the Master Agent
which is used for the SysUpTime field in the trap??
Have you already tried to leave out the
Bart,
I'm definitely getting closer now. I can now send a linkUp trap from my
software using SNMPv2. My code looks like this:
my $host = '10.50.80.197';
my $session= new SNMP::TrapSession(DestHost = $host, Community =
public, Port = 162, Version = '2c');
$session-trap(oid = linkUp,
Using net-snmp net-snmp-5.3.2.2-14.el5_7.1 RPM on RHEL5 with kernel
2.6.18-194.32.1.el5. On all my hosts, if I use either the
includeAllDisks directive or explicit disk directives, I see (in my
SolarWinds Orion display) all ext3 filesystems that are visible in
/etc/fstab and df command.