Introduction
This information is intended to help you list the server IPs over SSH using whmapi1.
Procedure
Run this command as the root user to get a list of IPs on the server and some usage information:
whmapi1 listips
Example output:
-bash-4.2# whmapi1 listips
---
data:
ip:
-
active: 1
dedicated: 0
if: eth0
ip: 172.1.1.3
mainaddr: 1
netmask: 255.255.255.0
network: 172.1.1.0
public_ip: 10.2.2.2
removable: 0
used: 1
metadata:
command: listips
reason: OK
result: 1
version: 1
More information is available in the API Documentation.