Linux下如何获得hostid

来源:百度知道 编辑:UC知道 时间:2024/06/08 14:58:58
我到网上找了找,基本上都是用lmhostid这个命令.但是我在linux下输入后,出来 The FLEXlm host ID of this machine is ""
引号中间没东西...请会的帮帮忙.另外问下.windows下和linux下的hostid是 一样的吗.
已经解决,我的网卡驱动没有装好.

遇到同样的问题, 搜到了解决方案:原因很有可能是你的网卡设在了eth1, 而不是eth0.

This is a FLEXlm (machine specific) issue that occurs when a customer's default
network interface is not eth0. For this customer, their default network
interface is eth1, so FLEXlm cannot detect the system host ID; for
example:Customer should enable eth0.This can be done by
"ifconfig eth0 up", assuming that the system has detected the interface.

[root@myhost ~]# hostid
00000000