Table of Contents * Previous Chapter * Next Chapter

 

Q2. Hostids


Q2.1 How do I get the system hostid?

This differs by hardware platform and operating system. You can always get the hostid using the lmhostid command. However, customers that don't have access to lmhostid often need to get the hostid. The following is a list of the most popular operating systems:

Q2.2 On HP700 the hostid seems to be blank. Why?

Because obtaining the ethernet address (which is sometimes used as the hostid on hp700 systems) requires read and sometimes write permissions on `/dev/lan0'. To fix this,

1) log in as root 
2) type `chmod 777 /dev/lan0'

No, this is not a security hole. It is trivial to read TCP packets by simply connecting a notebook computer to the net. System administrators should assume these packets are readable. Therefore, changing permissions on /dev/lan0 is not a security problem.

We've seen postings suggesting using setuid to get around this problem. Using setuid is a serious, real security hole; setting permissions on /dev/lan0 is not.

Better yet, use the uname -i hostid. This is the default hostid produced by lmhostid.

Q2.3 At some HP sites lmhostid gives an ethernet hostid, and at others a uname -i hostid. Why?

Until v3.0 of FLEXlm (1994), FLEXlm only supported ethernet hostid on hp700. Since v3.0 FLEXlm supports both ethernet and uname -i hostids. FLEXlm can automatically determine what kind of hostid is provided and validate accordingly.

The uname -i hostid is preferred, where possible.

Q2.4 On NT, I'm getting a 0 hostid (or FFFFFFFF)--how do I fix this?

Using this type of hostid requires either the SNMP service, the NETBEUI Transport Protocol, or the NW Link (IPX/SPX) Transport Protocol to be loaded

To install the NETBEUI or NW Link Transport Protocol:

Put the NT system disk in the CDROM drive.

Select `Main'
Select `Control Panel'
Select `Network'
Select `Add'

And add the NWLink IPX SPX or NetBEUI driver.

Q2.5 What are special Hostids?

Flexlm contains a numer of "special" hostid types which apply to all platforms. These hostid types can be used on either a SERVER line or a FEATURE line, wherever a hostid is required.


Table of Contents * Previous Chapter * Next Chapter