问题:安装到39%时失败,表现抓图如下:
操作系统Solaris 8

【BMC_patrol常见问题汇总】 

 

日志文件如下:
从日志文件最后向前查看,发现有如下错误:
[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:"patrol" is not the owner the of directory /opt/bmc/Patrol3/
[17:28:30] ExecuteScript:Please use the "
[17:28:30] ExecuteScript:patrol" account or change the ownership
[17:28:30] ExecuteScript:for the "/opt/bmc/Patrol3/" directory.
[17:28:30] ExecuteScript:This appears to be a fresh installation
[17:28:30] ExecuteScript:/opt/bmc/Patrol3/pre_check.sh completed successfully.
[17:28:30] ExecuteScript:Finished running script [/opt/bmc/Patrol3/pre_check.sh], exit code=[0]
[17:28:30] _InstallAProduct:Error: Product &PATROL Agent Scripts + Configurations aborted due to error in script %{/BMC/BASE}pre_check.sh.
[17:28:30] Unable to execute script [%{/BMC/BASE}pre_check.sh] for product [PATagentCfg].
Refer to the install log file for more details.
[17:28:30] _InstallAProduct:Installation of &PATROL Agent Scripts + Configurations aborted.
[17:28:30] MakeDirectory:Directory [/opt/bmc/Install/insthist/PATagentCfg] created.
[17:28:30] install_ABook:Error: Installation failed during product [PATagentCfg]
[17:28:30] install_Products:Error: Installation failed in book [PATROL Core Prerequisites]
[17:28:30] _Shutdown:Shutting down Thorium.
[17:28:30] CloseHistory:Closing history files and structures.
 
 
查看/opt/bmc/Patrol3/pre_check.sh文件,得知脚本执行whoami和ls 执行的结果不相等,导致脚本执行失败,问题就出在ls –ld命令执行结果多了一行。按照pre_check.sh文件中PATH变量内容进行测试,如下

 

 

【BMC_patrol常见问题汇总】

 

发现系统中有两个/usr/xpg4/bin/ls 和/usr/bin/ls,出问题的是/usr/bin/ls, 用/usr/xpg4/bin/ls 替换掉/usr/bin/ls,重新安装,成功。