Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Net::SNMP::Interfaces how to print the error()

by thanos1983 (Parson)
on Jun 04, 2014 at 20:41 UTC ( [id://1088737]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $interfaces = Net::SNMP::Interfaces->new( Hostname   => '192.168.18
    +4.11',
                             Community  => 'public',
    ...
    my @ifnames = $interfaces->all_interfaces();
    
    print Dumper (\@ifnames);
    
  2. or download this
    No response from remote host "127.0.0.1" at test.pl line 10
    
  3. or download this
    my $interfaces = Net::SNMP::Interfaces->new( Hostname   => '127.0.0.1'
    +,
                             Community  => 'public',
    ...
        );
    
    my @ifnames = $interfaces->all_interfaces();
    
  4. or download this
    Net::SNMP::Interfaces:  at test.pl line 10.
    
  5. or download this
    22:19:01.537280 IP 0.0.0.0 > 0.0.0.0: ICMP 0.0.0.0 udp port 1161 unrea
    +chable, length 36
    
  6. or download this
    my $interfaces = Net::SNMP::Interfaces->new( Hostname   => '192.168.18
    +4.11',
                             Community  => 'public',
    ...
    my @ifnames = $interfaces->all_interfaces();
    
    print Dumper (\@ifnames);
    
  7. or download this
    Can't call method "all_interfaces" on an undefined value at test.pl li
    +ne 12.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1088737]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (None)
    As of 2024-04-25 00:23 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found