Switch Port Mapper
Examples
Return data from an SPM file.
https://{server}/api-spm?password={pw};filename={file}
Options:
| Filename | Description | Output Format (CSV) |
|---|---|---|
| arp | ARP Tables | epoch,ipaddress,mac |
| ip2mac | IP to MAC mapping | epoch,mac,ipaddress |
| mac2ip | MAC to IP mapping | epoch,mac,ipaddress |
| mac2sp | MAC to Switch Port mapping | epoch,mac,switch,port |
| mac2vspa | MAC to Vendor, Switch, Port, IP Address | mac,vendor,switch,port,ipaddress |
| sp2mac | Switch Port to MAC | switch,port,mac |
| sp2vlan | Switch Port to VLAN | epoch,switch,port,vlan,id |
| vlan2sp | VLAN to Switch Port | epoch,vlan,switch,port |
| vlans | List of all VLANs | vlan |
Return search results on one/multiple MAC addresses.
https://{server}/api-spm?password={pw};mac={MAC1,MAC2,...}
Activate the Switch Port Mapper web API:
Go to Admin > API > Web API Settings.
Click the Switch Port Mapper option On.
Click Save.
User api-ro is required.
Switch Port Mapper data is stored in CSV format. You can access it via:
- the command console
- system log viewer (Go to Admin > System > System Log Viewer)
- web API
CSV output
| Filename | Description | Output format (CSV) |
|---|---|---|
| arp | ARP tables | epoch,ipaddress,mac |
| ip2mac | IP to MAC mapping | epoch,mac,ipaddress |
| mac2ip | MAC to IP mapping | epoch,mac,ipaddress |
| mac2sp | MAC to switch interface mapping | epoch,mac, switch,port |
| mac2vspa | MAC to vendor, switch, interface,IP address | mac,vendor,switch,port,ipaddress |
| sp2mac | switch interface to MAC | switch,port,mac |
| sp2vlan | switch interface to VLAN | epoch,switch, port,vlan |
| vlan2sp | VLAN to switch interface | epoch,vlan, switch,port |
| vlans | list of all VLANs | vlan |