lmhostid获取hostid为空问题
来源:互联网 发布:赌博游戏算法 编辑:程序博客网 时间:2024/06/05 10:04
lmhostid获取hostid为空问题
问题描述
今天迁移以前的一个装有flexlm的虚拟机,结果发现在迁移后启动时报错
... Wrong hostid on SERVER line for license file...... SERVER line says 00e081787ba8, hostid is (Cannot get hostid of type 2 [])... Invalid hostid on SERVER line
解决办法
从问题描述看,好像是取到hostid有问题,用lmhostid检查一下,发现取到的hostid为”“
./lmhostid lmhostid - Copyright (c) 1989-2004 by Macrovision Corporation. All rights reserved.The FLEXlm host ID of this machine is ""
由于FLEXlm会使用第一块网卡(eth0)的mac地址做hostid,所以用ifconfig检查网络配置,发现其中没有eth0,如下:
eth1 Link encap:Ethernet HWaddr 00:E0:81:78:7B:A8 inet addr:192.168.0.88 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:81ff:fe78:7ba8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2463804 errors:0 dropped:0 overruns:0 frame:0 TX packets:345560 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:924819172 (881.9 MiB) TX bytes:34087357 (32.5 MiB) Interrupt:11 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2843863 errors:0 dropped:0 overruns:0 frame:0 TX packets:2843863 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:729294023 (695.5 MiB) TX bytes:729294023 (695.5 MiB)
但是在用linux自带网络配置工具和/etc/sysconfig/network-scripts/下的文件配置看,确实是用的eth0。这说明配置出现了不一致问题。
最后,检查/etc/udev/rules.d/70-persistent-net.rules文件
# PCI device 0x1af4:0x1000 (virtio-pci)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*l", ATTR{address}=="00:e0:81:78:7b:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"# PCI device 0x10ec:0x8139 (8139cp)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:81:78:7b:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
发现了问题,里面有两个网卡配置项,果断修改为
# PCI device 0x10ec:0x8139 (8139cp)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:81:78:7b:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
然后重新启动机器,问题解决。
转载请以链接形式标明本文地址
本文地址:http://blog.csdn.net/kongxx/article/details/50480696
1 0
- lmhostid获取hostid为空问题
- 获取机器的hostid准备生成license
- servletFileUpload.parseRequest(request)解析为空获取不到数据问题
- Android系统6.0获取WiFi列表为空的问题
- clearsiver cgi获取到的post数据为空问题
- clearsiver cgi获取到的post数据为空问题
- clearsiver cgi获取到的post数据为空问题
- clearsiver cgi获取到的post数据为空问题
- clearsiver cgi获取到的post数据为空问题
- clearsiver cgi获取到的post数据为空问题
- 解决jenkins获取${TEST_COUNTS}值为空问题
- jquery获取textarea内容为空的问题
- Servlet获取下载链接为空的问题
- json_decode为空问题
- 网页获取字符串为空
- PackageInfo-获取权限为空
- Exception获取getMessage()为空
- ViewPager.getChildAt()为空问题?
- JAVA WEB的第三个问题----向数据库中写数据的问题
- 浅谈考研
- JAVA WEB 的第四个问题----数据库的中文显示问题
- 解决数据库至页面的乱码问题(摘自小乔发神经的博客)
- Oracle三类数据字典视图的结构的查看以及其区别
- lmhostid获取hostid为空问题
- Oracle动态性能表(视图)的获得
- Oracle数据库的配置及结构
- ios 非arc转arc 之二
- Oracle查看控制文件的配置
- 找不到类型或命名空间名称 SqlDataAdapter (是否缺少 using 指令或程序集引用?)
- Oracle控制文件的移动步骤
- Oracle控制文件的备份
- Oracle获取重做日志信息