bengmau has asked for the wisdom of the Perl Monks concerning the following question:
read up and the only thing that appears like I can do is add a:my $session = Net::SNMP->session( -community => $cfg->{input}->{'community'}, -hostname => $cfg->{input}->{'trapdest'}, -port => SNMP_TRAP_PORT, ); my $result=$session->trap( -enterprise => $enterprise, -specifictrap => $specific, ....
to my session or trap definition. Is that right or is that only for redefining the return source if you send a get instead of trap? hmmm actually localaddr is set at object creation.. I think I need to use:- localaddr => $nodeIwant,
for the trap() function. but can I only set IP address or hostname.-agentaddr => $ipaddress,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: net::snmp module sendtrap but change originating node name
by NetWallah (Canon) on Jun 27, 2005 at 20:26 UTC | |
by bengmau (Beadle) on Jun 28, 2005 at 14:14 UTC | |
by bengmau (Beadle) on Jun 29, 2005 at 16:03 UTC |