Customer has installed a Smarts domain and wants to rename it.
Smarts 10.x and TCSA 2.4
To rename a domain and service name:
In this example: ic-am-pm-server is the service name that is being renamed to ic-am-pm-test. INCHARGE-AM-PM is the domain name being renamed to INCHARGE-AM-PM-TEST.
./sm_service show --cmdline ic-am-pm-server
sm_service install --force --unmanaged --startmode=runonce \
'--name=ic-am-pm-server' \
'--description=VMware Smart Assurance Availability and Performance Manager Server' \
'/opt/IP/IP1019/IP/smarts/bin/sm_server' \
'--name=INCHARGE-AM-PM' \
'--port=20003' \
'--config=icf' \
'--bootstrap=bootstrap-am-pm.conf' \
'--subscribe=default' \
'--ignore-restore-errors' \
'--output' \
'--java=maxheapsize=1024M'
sm_service install --force --unmanaged --startmode=runonce \
'--name=ic-am-pm-server' \
'--description=VMware Smart Assurance Availability and Performance Manager Server' \
'/opt/IP/IP1019/IP/smarts/bin/sm_server' \
'--name=INCHARGE-AM-PM' \
'--port=20003' \
'--config=icf' \
'--bootstrap=bootstrap-am-pm.conf' \
'--subscribe=default' \
'--ignore-restore-errors' \
'--output' \
'--java=maxheapsize=1024M'
sm_service install --force --unmanaged --startmode=runonce \
'--name=ic-am-pm-server-test' \
'--description=VMware Smart Assurance Availability and Performance Manager Server' \
'/opt/IP/IP1019/IP/smarts/bin/sm_server' \
'--name=INCHARGE-AM-PM-TEST' \
'--port=20003' \
'--config=icf' \
'--bootstrap=bootstrap-am-pm.conf' \
'--subscribe=default' \
'--ignore-restore-errors' \
'--output' \
'--java=maxheapsize=1024M'
./sm_service install --force --unmanaged --startmode=runonce \
'--name=ic-am-pm-server-test' \
'--description=VMware Smart Assurance Availability and Performance Manager Server' \
'/opt/IP/IP1019/IP/smarts/bin/sm_server' \
'--name=INCHARGE-AM-PM-TEST' \
'--port=20003' \
'--config=icf' \
'--bootstrap=bootstrap-am-pm.conf' \
'--subscribe=default' \
'--ignore-restore-errors' \
'--output' \
'--java=maxheapsize=1024M'
./sm_service show
Verify the above service and domain names have been updated.
./SM_HOME/bin/sm_service remove INCHARGE-AM-PM
./sm_service show INCHARGE-AM-PM
Verify that INCHARGE-AM-PM is not found.