顯示具有 CEC 標籤的文章。 顯示所有文章
顯示具有 CEC 標籤的文章。 顯示所有文章

2014-01-12

ITM CEC Base agent issue

ITM CEC Base agent重啟後,ITM無法顯示CEC的數據,解決步驟如下:

STEPS TO RECYCLE THE SHARED MEMORY:
1.
Stop all the processes which use the SPMI shared library
(xmservd,filtd, xmperf, 3dmon, ptxrlog, harmd, topas, any PSSP process)
if they are currently running your AIX LPAR. 


2.
Stop the ITM system P agents (PX, PK, PH) that you have running on
this system. 


3.
To find if any zombie processes are running on your machine.
a. Run
# ps -ef | grep Provider
Kill each one of them "kill <pid> 


b. Run
ps -ef | grep kpkagent
ps -ef | grep kpxagent
ps -ef | grep kphagent
Kill each one of them "kill <pid>" 


c.
Check if there are any defunct processes
"ps -ef | grep defunct" 


4. Kill the processes that are using the shared memory. 
genld -l | grep -p Spmi 

5.
Run "ipcs -m" command and check for any segment "KEY" that begins
with '0x78'
, as listed below:
T ID KEY
m 0 0xc76283cc
m 1 0x78002323
If there are any such segments starting with 0x78, make sure the process
which uses those shared segments is stopped (or terminate it with kill
command) 


6. Then run: "ipcrm -m <ID #>" to
clear the shared memory segments. 

7.
Run "slibclean"

8. Restart system P agents - PH PX PK 


2012-09-25

ITM System P Agent中的key.pl bug fix

ITM System P Agent有提供HMC Base Agent和CEC Base Agent交換key的perl檔案,進行交換key的程序一般是會透過normal user去執行,但原先的key.pl檔案中已預設使用者的家目錄位於/home底下,所以若使用者的家目錄並非位於/home時,就有可能發生無法交換key,因此須注意下列的key point:

●原先的key.pl內容






















●修改後的key.pl
方法有兩種:
1.修改原先定義$file和$key的所在目錄
2.增加自行判斷使用者的家目錄