tertullian01 has asked for the wisdom of the Perl Monks concerning the following question:
This is the error I get using this code: ERROR: Unknown ASN.1 type [OCTET_STRING].my $svSvcName = '1.3.6.1.4.1.77.1.2.3.1.1'; my $message = "THIS IS AN SNMP TEST"; my @oids = ($svSvcName, OCTET_STRING, $message); #my @oids; my $result = $session->trap( -agentaddr => '172.16.4.32', -varbindlist => \@oids #-varbindlist => [$svSvcName, OCTET_STRIN +G, "$message"] ); if (!defined($result)) { printf("ERROR: %s.\n", $session->error); $session->close; exit 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Send SNMP trap
by LazerRed (Pilgrim) on Sep 23, 2003 at 20:49 UTC | |
by tertullian01 (Acolyte) on Sep 23, 2003 at 22:04 UTC | |
by zengargoyle (Deacon) on Sep 23, 2003 at 22:37 UTC | |
by tertullian01 (Acolyte) on Sep 23, 2003 at 22:58 UTC |