http://qs1969.pair.com?node_id=80992


in reply to (code) Cisco Neighbors

I put together a similar script that works using SNMP and automatically polls the IPs it gets back from the SNMP queries.

Thanks for giving me the idea to write it, and answering questions for me.

cdppoll.pl

Replies are listed 'Best First'.
Re^2: Cisco Neighbors
by ArifS (Beadle) on Sep 22, 2014 at 18:57 UTC
    I am getting the following error.

    181: $seen{$item}; # parse $file{in} into a hash
    Useless use of hash element in void context at c:\temp\dir39FB.tmp\cdp poll1.pl line 181.

    67: Usage() unless ((@ARGV) or (-s $file{in} && -T_));
    Undefined subroutine &main::Usage called at c:\temp\dir39FB.tmp\cdp poll1.pl lin e 67.
    Press any key to continue . . .
    Any suggestion?