顯示具有 ITM Situation 標籤的文章。 顯示所有文章
顯示具有 ITM Situation 標籤的文章。 顯示所有文章

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 


2013-04-26

Export and Import ITM Situation

很感謝ITM官方文件有提到Situation該如何匯出和匯入,如下:
  • 匯出的方法
tacmd viewSit {-s|--situation} SITNAME
                              [{-e|--export} [FILENAME]]
  • 匯入的方法
tacmd createSit {-i|--import} filename
若我們欲匯出的項目僅一至兩個時,透過上述的方法真的很方便,但是當項目變多時,可能還是得透過一些Script來幫忙我們了。透過原廠文件上提到的tacmd listSit指令先將Situation匯出至文字檔,再來我們就可以運用簡易的Script去完成大量Situation的匯出和匯入了。


  • Situation的匯出


  • Situation的匯入