PatrolAgent实施问题及解决办法汇总(2)

2020-07-01 09:32

Ultrapower

可以手动执行用root权限执行:

ksh $HOME/BMCINSTALL/ - - / - .log_rootscripts e.g. 本例: $ su # ksh HB-SMIAS30-890-2-8252.log_rootscripts 1.2 安装patrol for unix,Patrolsnmp进程没有启动

patrol 版本:9211 OS版本: AIX 问题描述:

AIX平台下安装patrol for unix后,执行ps-ef|grep snmp命令,发现Patrolsnmp进程没有启动日志:

原因分析:

Assuming that you are using BMC-provided SNMP master agent, snmpmagt, the \snmpmagt is not running or the PatrolAgent isn't talking to it. 解决办法:

1. Add specific IP address to the TRANSPORT clause in snmpmagt.cfg: TRANSPORT smux SMUX OVER TCP SOCKET

AT 162.129.2.55 PORT 8199

2. Make corresponding change adding this IP address to the /snmp/smux_IPAddress Agent configuration variable.

3. Make sure /snmp/smux_port is set to the same value as the PORT specified in the TRANSPORT clause specified above. 1.3

错误 Err=-5安装正常结束,在点击“next”时出现错误。Agent无法正常启动

patrol 版本:9211 OS版本: sunOS5.8 问题描述:

ash-2.03$ chown -R patrol bmc_products ash-2.03$ chmod -R 744 bmc_products ash-2.03$ id 28357950.doc

6/32

Ultrapower

uid=120(patrol) gid=120(patrol) bash-2.03$ cd bash-2.03$ pwd /export/patrol bash-2.03$ ls @LongLink license puk_AIX-SOLARIS_9211_tmp.tar BMCINSTALL puk_AIX-SOLARIS_9211 bash-2.03$ cd puk*11 bash-2.03$ ls bmc_products bash-2.03$ cd bmc_products bash-2.03$ ls Index Products cdname imginfo.060323-095858 uninstall.sh Install autorun.inf imginfo.050525-041220 setup.sh bash-2.03$ ./setup.sh -serveronly -host_override 10.100.2.96 ------------------------------------------------------------------------------ 28357950.doc 7/32

Ultrapower

Launching WEB server. Please wait... ------------------------------------------------------------------------------ Url to connect to is http://10.100.2.96:50001/ ------------------------------------------------------------------------------ The WEB server has successfully started. To begin installation, open a browser and connect to the following URL: http://10.100.2.96:50001/ ------------------------------------------------------------------------------ When you are finished with the installation, or if you want to shut down the installation, press the enter key to exit this program. -> DEMO LICENSE EXPIRES Fri Aug 10 17:01:10 2007 28357950.doc

8/32

Ultrapower

Configuration successfully loaded \ DEMO LICENSE EXPIRES Fri Aug 10 17:01:10 2007 Wed Jul 11 17:01:17 2007 PatrolAgent-F-EINTERNAL: Sess Init failed: err = -5 (/local-build/Patrol/3.6.50/src/agent/mainloop.c 461) Exiting ... please wait!

原因分析:

The \identity issue.

The agent uses the gethostbyname() and gethostbyaddr() functions to retrieve the host name.

Additionally, for example, the host name must be the same in 3 places on Solaris which are DNS, /etc/hosts, and /etc/nodename.

If the gethost functions don't return the same name as nslookup and/or uname -n, then this identity message can occur.

=> Check DNS by running nslookup by both the host name and host IP address.

=> View /etc/hosts to ensure the entry is correct. Use the unix command: pg /etc/hosts

=> View /etc/nodename to ensure the OS itself is in sync with DNS and the hosts file.

The uname -a command reveals the contents of /etc/nodename.

Use uname -S {node name} to change the host name in /etc/nodename. Get with the system administrator for kernel rebuild assistance if needed. If the nodename file doesn't exist in /etc then it can be created as its just a text file that contains the OS name string. 在本例中确认:

在今天主机检查时,发现主机不能ping通自己,初步判断是主机名配置问题。

28357950.doc 9/32

Ultrapower

解决办法:

在用hostname命令时,主机的名字是sun,但是在/etc/hostname.ce0和/etc/hosts是发现是SCCD-PS-MMS-SV11-COLLECT,所以找华为的工程师修改hostname为SCCD-PS-MMS-SV11-COLLECT。就能ping通。然后agent就能正常启动了

Err = -5 看来都是主机名解析时出现的错误,可以按照这个思路进行排错

1.4 安装到39%时失败

patrol 版本:9211 OS版本: Solaris 8 问题描述:

[17:28:28] install_RunScript:Successfully ran script [/bin/rm] [17:28:28] install_RunScript:Attempting to run script /bin/chmod 755 %{/BMC/BASE}agent_configure.sh %{/BMC/BASE}post_check.sh %{/BMC/BASE}pre_check.sh [17:28:29] ExecuteScript:Finished running script [/bin/chmod], exit code=[0] [17:28:29] install_RunScript:Successfully ran script [/bin/chmod] [17:28:29] install_RunScript:Attempting to run script %{/BMC/BASE}pre_check.sh [17:28:30] ExecuteScript:[SCRIPT_FAIL]Installation Aborted! External Process Output: /opt/bmc/Patrol3/pre_check.sh [17:28:30] ExecuteScript:\[17:28:30] ExecuteScript:Please use the \[17:28:30] ExecuteScript:patrol\[17:28:30] ExecuteScript:for the \[17:28:30] ExecuteScript:This appears to be a fresh installation [17:28:30] ExecuteScript:/opt/bmc/Patrol3/pre_check.sh completed successfully. 原因分析:

查看/opt/bmc/Patrol3/pre_check.sh文件,得知脚本执行

whoami和ls 执行的

结果不相等,导致脚本执行失败,问题就出在ls –ld命令执行结果多了一行。

解决办法:

28357950.doc 10/32


PatrolAgent实施问题及解决办法汇总(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:人教版二年级数学下册《第七单元达标测试卷》(附答案)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: