2020-09-01 10:42 AM
RSA,
Is there any good documentation or best way to decommission a server? The server has been shut down but H&W is still sending alarms and since the server has been shut down we are not able to ssh into it. I wanted to know the steps or best way to decommission a server from our environment even if shut down prematurely. Please provide documentation or steps to accomplish this. We are on v11.3.2.0. Thanks.
2020-09-01 11:06 AM
Hi Dwayne,
I would suggest to open an RSA case but the below procedure may suffice for this purpose.
1) display all available hosts to to the NW server:
/usr/bin/orchestration-cli-client -l
or
/usr/bin/orchestration-cli-client -k
you should see an output similar to this
Host: ID=62a918aa-e965-4ce4-a50f-43753211a9f2, ADDR=192.168.97.100, NAME=servertodemissionhostname, VERSION=11.3.0.0
2) Make sure that you have removed from the UI the appropriate server to decomission (hosts view)
3) Take note of the server ID that you want to decomission and execute below command
orchestration-cli-client --remove-key 62a918aa-e965-4ce4-a50f-43753211a9f2
4) Remove H&W alarm and Check if the H&W appear again after few minutes
2020-09-01 02:34 PM
Karim,
I really appreciate the feedback. However, I am not able to get the UUID because I cannot run the "cat /etc/salt/minion" command because I cannot ssh into the server itself. I was hoping there was a work around to get the UUID. I know how to remove from the UI and from the SA Head. I was wondering if there is another way to remove it from the database without having to have the server brought back online. Thanks.
2020-09-01 02:49 PM
The commands Karim suggested need to be run on the Node0 server. You don't need to run anything on the decommissioned server.
2020-09-01 02:50 PM
Run on the NW Server (node0)
orchestration-cli-client -l (will list all the active nodes on the NW server)
orchestration-cli-client -k (will list the known nodes, finde the one(s) that are in the second list and not in the first list, use that ID in the --remove-key command