Hi Folks,
I've just been struggling with an OD 6.1.0 licensing problem which I have just worked out, so I thought I would share it in case anyone is hit with this type of scenario:
Scenario:
I used the OD licence generator to generate a single OD 6.1.0 receiver for SunOS. I used "
slarty" as the hostname and "NoDomain" as the domain. All should be well when I fire up OD, except I get an error like:
SVR: 2007-12-07 10:35:09 EST GMT+10:00 ERROR: LicenseException: Bad host name
SVR: 2007-12-07 10:35:09 EST GMT+10:00 ***ERROR - Invalid license.
SVR: 2007-12-07 10:35:09 EST GMT+10:00 ***ERROR - License validation failed
SVR: 2007-12-07 10:35:09 EST GMT+10:00 Bring up of OpenDeploy server FAILED.
I checked and double checked that the hostname was "
slarty" in the generated OD.lic file.
I ran `hostname` which gave me:
slarty.
I ran `uname -a` which gave me: SunOS
slarty 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V240
...lots of head scratching now...
Then, I take a look at the
/etc/hosts
file and notice that the host entry didn't start with "
slarty" but with "
slarty-int", as there are a number of interfaces on this server (incidentally, I didn't build this server):
E.g.
# cat /etc/hosts
#
# Slarty host table
#
127.0.0.1 localhost
999.99.99.99 slarty-int loghost slarty slarty-int.dmz slarty.dmz
I regenerate my OD.lic with the hostname as "
slarty-int". All is good.
Moral of the story: The OD 6.1.0 startup routine seems to validate the first hostname entry in
/etc/hosts
(after localhost) with the hostname entry in OD.lic.