今天把 itm 的agent 的进程起了一下:
cd /opt/IBM/ITM/bin
./itmcmd agent start all
通过 ps -ef | grep itm 发现: ux ,ul,um 都是起来的,可是./cinfo -r 就是报错:
【1355】line node_name unexpected
后来看了 iBm 内网的 对这个case 的解释和解决方法:发现问题解决:
Diagnosing the problem
When running cinfo -r, the following is returned:
{1355} Syntax error Line 1: <LPAR name> and <WPAR name> @ <LPAR name> | <WPAR name> unexpected
The following was noted in the log file:
(4C7E48D7.0069-D:disk_space.cpp,688,"getHostStat") [1] Cannot statfs '/wpars/infaprtu001', errno = 13 (Permission denied)
(4C7E48D7.006A-D:disk_space.cpp,688,"getHostStat") [2] Cannot statfs '/wpars/infaprtu001/', errno = 13 (Permission denied)
(4C7E48D7.006B-D:disk_space.cpp,688,"getHostStat") [3] Cannot statfs '/wpars/infaprtu001/usr', errno = 13 (Permission denied)
Resolving the problem
The RunInfo file (one of the files that cinfo reads to find out about running processes) has a blank line in it.
example from RunInfo file:
FIELDSEP=|
infaprpu001|px|999678|None|aix523|
infaprpu001|ul|356480|None|aix526|
The code reads and parses the empty line just like the rest. In other words, it derives a null value for the host name, product code, pid, etc. When it tries to compare this null value with the list of available host names, the syntax error results. We are unsure how the RunInfo file got this way. ITM updates it whenever an agent starts or stops, adding or remove lines as needed. A new blank line should never be the result.
The solution is to edit CANDLEHOME/config/.ConfigData/RunInfo and remove the blank line after "FIELDSEP=|".
注明: 上面这个文件中
999678 是px 进程的进程号,
还有: FIELDSEP=| 后面有 其他 杂乱的东西,统统删除。只留下:
infaprpu001|px|999678|None|aix523|
就可以了。
注意: 上面的px 要根据实际情况,替换成:ux 等。