tolyan77 has asked for the wisdom of the Perl Monks concerning the following question:
in @ips I have last octet of IP's The problem is if one of the printer is swiched off the programm break Could you tell me what I'm doing wrong? Thanks in advance!foreach my $k (@ips) { my $hostname = "10.0.0.$k"; my $password = "public"; my ( $session, $error ) = Net::SNMP->session ( Hostname => $hostname, +Community => $password , Version => 1 ); if (!defined($session)) { printf("ERROR: %s.\n", $error); next; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with the module Net::SNMP
by andyford (Curate) on Nov 07, 2006 at 10:37 UTC | |
by tolyan77 (Novice) on Nov 07, 2006 at 11:48 UTC | |
by andyford (Curate) on Nov 07, 2006 at 14:56 UTC | |
|
Re: Problems with the module Net::SNMP
by Anonymous Monk on Nov 07, 2006 at 09:56 UTC | |
by tolyan77 (Novice) on Nov 07, 2006 at 11:08 UTC | |
|
Re: Problems with the module Net::SNMP
by monarch (Priest) on Nov 07, 2006 at 15:39 UTC | |
by tolyan77 (Novice) on Nov 08, 2006 at 05:10 UTC | |
by quester (Vicar) on Nov 08, 2006 at 09:26 UTC | |
by tolyan77 (Novice) on Nov 08, 2006 at 10:46 UTC | |
by quester (Vicar) on Nov 08, 2006 at 23:43 UTC |