WHM / cPanel List IP’s Cheatsheet

List all IP’s, via API

whmapi1 listips

Count IP’s, including main IP

whmapi1 listips | grep public_ip | wc -l

List all IP’s, including main IP

whmapi1 listips | grep public_ip | awk '{print $2}'

List all IP’s from /etc/ips (this doesn’t include the main IP)

cat /etc/ips

List dedicated IP / domain association

cat /etc/domainips