Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get ARP Table via API

Hi everyone,

I want to grab the dynamic neighbor cache of the Sophos XG via the API for a script, but it's not quite clear to me how it is done. There is a entry in the Sophos API Help for "Get Dynamic Neighbour Entries", but is does not seem to be complete. It is lacking a sample configuration, so I am not sure about the syntax. The only attribute seems to be "IPFamily"... So I tried the following query:

"https://FIREWALL:4444/webconsole/APIController?reqxml=<Request><Login><UserName>USER</UserName><Password>PASS</Password></Login><Get><GetDynamicNeighbourEntries><IPFamily>IPv4</IPFamily></GetDynamicNeighbourEntries></Get></Request>"

My logfile says...

<?xml version="1.0" encoding="UTF-8"?>
<Response APIVersion="1800.2" IPS_CAT_VER="1">
<Login>
<status>Authentication Successful</status>
</Login>
<GetDynamicNeighbourEntries>
<Status code="529">Input request module is Invalid</Status>
</GetDynamicNeighbourEntries>
</Response>

Any ideas? If this does not work, I guess I will have to ssh into the advanced shell via inputs and send an "arp" command, which is rather slow...

Cheers



This thread was automatically locked due to age.