Get the agent IP using ip addr if ifconfig fails.