What BLCLI commands can be used for enrolling a VM in BBSA? |
Legacy ID:KA383365 Once the RSCD agent has been installed on the VM, the following BLCLI commands can be used for BBSA VM enrollment process and these commands can be run from NSH console:
blcli_setoption authType BLSSO
blcli_execute Server addServer <Server Name>
blcli_execute PropertyInstance createInstance "Class://SystemObject/Virtualization" "<server name> “<description>” There is a REST call to live browse VC server to get the Server details –
https://<BSA Server machine>:<WS port>/type/PropertySetClasses/SystemObject/Server/?name=<VC Server name>&username=BLAdmin&password=<password>&role=BLAdmins https://<BSA Server machine>:<WS port>/id/SystemObject/Server/<VC Server guid from above output>/Assets/BMC_VMware_VirtualInfrastructureManager/Virtual%20Machines/<Server name>/Server%20Properties/?username=BLAdmin&password=<password>&role=BLAdmins (This command will show you All the Server properties on the VC)
https://<BSA Server machine>:<WS port>/ id/SystemObject/Server/<VC Server guid from above output>/Assets/BMC_VMware_VirtualInfrastructureManager/Virtual%20Machines/<Server name>/Server%20Properties/AssetAttributeValues/Entity%20ID/?username=BLAdmin&password=<password>&role=BLAdmins https://<BSA Server machine>:<WS port>/ id/SystemObject/Server/<VC Server guid from above output>/Assets/BMC_VMware_VirtualInfrastructureManager/Virtual%20Machines/<Server name>/Server%20Properties/AssetAttributeValues/Entity%20Manager/?username=BLAdmin&password=<password>&role=BLAdmins
blcli_execute PropertyInstance setOverriddenValue Class://SystemObject/Virtualization/<Server PSI name> VIRTUAL_ENTITY_ID <value for Entity ID from the REST call>
blcli_execute Server setPropertyValueByName <Server Name> "VIRTUALIZATION*" Class://SystemObject/Virtualization/<PSI Object name>
blcli_execute Server setPropertyValueByName <Server Name> "IS_VIRTUAL” “true”
blcli_execute Utility updateServersStatus <server name> 90 60000 true |