Remove Managed or Nodes in HPSA

  • KM03196765
  • 03-Jul-2018
  • 14-Apr-2021

Summary

Some managed servers in the SA ngui have been decommissioned but do not allow themselves to be completely removed from SA (the "Remove from SA" option is grey'd out

Question

I have some nodes with a brownish grey icons similar to the SA Agent Installation, those servers were decommissioned and i want to delete those from HPSA but I am unable to right click remove nodes. How I can remove these nodes ?

Answer

You can try the following spinwrapper command to obtain the server details first:


env PYTHONPATH=/opt/opsware/pylibs2 /opt/opsware/bin/python2 -i -c 'from coglib import spinwrapper;import pprint,sys;spin = spinwrapper.SpinWrapper(url="http://127.0.0.1:1007");pprint.pprint(spin.Device.get(<server_ID>))'

Once you've made sure this is the server you like to delete, then you can proceed with the actual deletion:

env PYTHONPATH=/opt/opsware/pylibs2 /opt/opsware/bin/python2 -i -c 'from coglib import spinwrapper;import pprint,sys;spin = spinwrapper.SpinWrapper(url="http://127.0.0.1:1007");pprint.pprint(spin.Device.delete(<Server_ID>))'

 

Remember that this will delete all the information of that server in the database and after this you can't recover that information.