I often have to look this up. Release a DHCP lease in Ubuntu with the following command (for the GUI search for gnome-terminal):
sudo dhclient -r
Next retrieve a new lease:
sudo dhclient
Or, on one line:
sudo dhclient -r && sudo dhclient;
If that does not work, check if networking is up:
ifdown eth0
ifup eth0
Finally, you can always restart networking:
/etc/init.d/network restart
Or:
/etc/init.d/networking restart
Don’t forget to reset the certificate used by Ops Manager 2012 (after a hostname rename, look for the hostname does not match the FQDN on certificate error). The following command will clear all previous Ops Manager files (The –f option forces the files in /etc/opt/microsoft/scx/ssl to be overwritten):
/opt/microsoft/scx/bin/tools/scxsslconfig -f -v
Next, restart the agent:
/opt/microsoft/scx/bin/tools/scxadmin -restart
The Ops Manager discovery and install should now be successful.