Problem
I am attempting to run the scoadmin license command and it is failing with an error that may look like the following:
Unable to run brand command testbox failed to connect to testbox.
Where testbox is the name of your machine.
Solution
The scoadmin tools are dependent on DNS working correctly. If you read through the Error Details of this particular failure you will see the actual problem. In the case seen here:
Error with server process: testbox.foo.com
testbox.foo.com: Unknown hostWas in the Error Details. The problem in this particular case was that during installation the machine was named testbox.foo.com. The machine was also designated as a DHCP client or has had the domain name or hostname changed.
You will also notice that the hostname command returns testbox.foo.com. As a DHCP client /etc/resolv.conf and /etc/hosts have been modified by the DHCP client software to reflect the domain name settings for your network. This is what breaks the license manager.
To correct this problem you will want to edit the file /etc/default/tcp. In that file you will find a variable DOMAIN= you should set that variable to the correct domain that you are in. You could find this in /etc/hosts or in /etc/resolv.conf. Once you set that variable you will find that the scoadmin utilities will work again.
If the DOMAIN= is correct check in /etc/hosts and in /etc/resolv.conf for entries that are not correct.
Whatever hostname returns you must be able to ping it for the
scoadmin utilities to work.