

Reference Information › CA AppLogic Support Knowledge Base › Overview of Support Knowledge Base › Remove Server with the BFC CLI
Remove Server with the BFC CLI
Follow these steps:
- start the CLI
- ->n
- find the compute_host driver “1205) ==> 'core/resources.compute_host'(1)”
- drill into the compute host
- ->1205
- Observe the instances associated with the driver
- Instances:
-
[3317-->3316-->1124]
- in this case 3317 was the server ID I was looking for but in your case you may need to drill into them one by one using the ->props command to verify that this is the server you are looking for. Remember to use ->b to go back a level if the server you are in is the wrong one. Also there may be multiple instances of compute_host. If you exhaust all of the instances associated with this particular compute_host driver return to the top level by using ->t command and find another compute_host to search through.
- Once the id is identified use the function in the compute_host driver “signature(deleteResource/1)”
- ==> call deleteResource[3317]
ok
The server is removed
- Alternative:
-
From with context of a compute_host driver use the function:
==> call getListedMacs
[{"D4:AE:52:C7:4A:8C",[]},
{"D4:AE:52:C7:65:68",[]},
{"D4:AE:52:C7:65:E6",[]},
{"D4:AE:52:C7:66:46","192.168.0.254"}]
If you see the MAC you are after then are in the correct compute_host driver if not go back to top and find another.
In the case that you see the MAC you are interested in to get the ID of the server just use
==> call findResourceByBootMac["D4:AE:52:C7:66:46"]
- 3322
-
Then finally for the Coup de grĂ¢ce use the deletResource command as before.
Copyright © 2012 CA.
All rights reserved.
 
|
|