Server Management - Systems Insight Manager
Showing results for 
Search instead for 
Did you mean: 

Scripting removal from SIM

Scott Pollack
Occasional Visitor

Scripting removal from SIM

I want a script that I can pass the parameter of server name and have it purged from SIM
David Claypool
Honored Contributor

Re: Scripting removal from SIM

See --> Information Library for information (at the bottom) for the 'mxnode' command.

mxnode -r systemname|ipaddress
Frequent Advisor

Re: Scripting removal from SIM



how to perform this with multiple servers from a text file?





Tushar Bajpai
Trusted Contributor

Re: Scripting removal from SIM

Place the nodes.txt file containing node names in the same folder as
deletenode.bat, and just run  deletenode.bat from the command prompt


Copy paste the below into a deleteNode.bat file.


@echo off & setlocal

echo =============================================

echo deleting nodenames from nodes.txt file.

echo =============================================

For /F "tokens=1*" %%i in (nodes.txt) do call :deletenodes "%%i"

echo no more node left to delete.

goto :eof


echo deleting node with nodename "%~1" ...

mxnode -r -x force "%~1"

echo ---------------------------------------------------------------------

goto :eof

if it helped, award me Kudos or Points. Thanks :)

\T Bajpai
HP Employee