Hi Thom, you cannot pipe the ouptut. You have to execute the get-arp-table and put the output in a variable. After that you can go with for-each or with a jregex function and search after your IP address.
Regards, Ahmad > -----Ursprüngliche Nachricht----- > Von: juniper-nsp-boun...@puck.nether.net [mailto:juniper-nsp- > boun...@puck.nether.net] Im Auftrag von Thomas Eichhorn > Gesendet: Montag, 19. April 2010 12:10 > An: juniper-nsp@puck.nether.net > Betreff: [j-nsp] XNM and "match" > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I'am again stuck with XNM/JunoScript, > maybe you have an idea: > > I try to get the arp cache from the router, > but only a specific arp entry - but this seems not to work. > > The "get-arp-table" xml command doesn't have any filtering command, > and if I try: <rpc><command>show arp no-resolve | match $ip > </command></rpc> > there are two results: If it doesn't match (the ARP entry is not in the > table), > I get no result - if the entry is in the table I get the full table. > > Is there any possibility to get only one specific entry or must I > filter > within my application? This is quite unperformant, because some of the > ARP-tables > on my router are VERY big... > > Thanks, > Tom > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkvMK/wACgkQrUvjMoak8ZdPgACfa6W6AmZ27KvDnIa7jqiFltDY > HbUAoIcCTr7Hq2My96S9cxJ3ZDArzKRu > =wn+E > -----END PGP SIGNATURE----- > _______________________________________________ > juniper-nsp mailing list juniper-nsp@puck.nether.net > https://puck.nether.net/mailman/listinfo/juniper-nsp Sitz der NK Networks & Services GmbH: Von-der-Wettern-Straße 15, 51149 Köln Registergericht: Amtsgericht Köln, Registernummer HRB 30805 Geschäftsführer: Tonis Rüsche, Dr. Reinhard Schlemmer _______________________________________________ juniper-nsp mailing list juniper-nsp@puck.nether.net https://puck.nether.net/mailman/listinfo/juniper-nsp