ergophobe has asked for the wisdom of the Perl Monks concerning the following question:
sub snmpget { my $self = shift; my $target = shift; my $session; my $value; $session = new SNMP::Session ( DestHost => $self->host, Community => $self->community ); $value = $session->get($target) || warn "SNMP ERROR: $session->{E +rrorStr}"; $nom->debug (3, "SNMP: snmpget succeeded. Target: $target, Value: +$value"); return $value; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: To unpack or not to unpack
by larryl (Monk) on Mar 14, 2001 at 22:54 UTC | |
|
Re: To unpack or not to unpack
by cleen (Pilgrim) on Mar 14, 2001 at 22:50 UTC |