in reply to Perl-Snmp script for arp table retrieval problem.

@iftable=\Q$snmpwalk $rtr ifDescr\Q;
perl is telling you that this is not legal syntax. What are you trying to do?

See also:

  • Comment on Re: Perl-Snmp script for arp table retrieval problem.

Replies are listed 'Best First'.
Re^2: Perl-Snmp script for arp table retrieval problem.
by Manraw (Initiate) on Mar 06, 2012 at 21:53 UTC
    this code is copied from cisco cookbook.....it will fetch any router or systems arp table
      Maybe your copy-n-paste messed up some characters. Try to replace all instances of \Q with backticks `
      @iftable=`$snmpwalk $rtr ifDescr`;
      That gets rid of the compile errors for me.
        Thanks it compiled without error.......but this program is cisco router specific can it be used to retrieve arp table of local machine in windows???