首先,我会创建一个正在运行的服务器列表,并将它们写入一个文本文件,然后我想一次性关闭列表中的所有服务器,然后一次性重启所有服务器。
## connect the Admin server first
connect('<username>','<PASSWD>','t3://ip:port')
## if applications are running u can use this
stopApplication('<appname>')
stopApplication('<appname>')
stopApplication('<n....>')
## if you want to delete the applications u please follow below thing
edit()
startEdit()
undeploy('<appname>',timeout=60000)
undeploy('<n...>',timeout=60000)
save()
activate()
shutdown('<manageservername>','Server')
shutdown('<managesername'>,'Server)'
shutdown('<n....>','Server')
shutdown('<AdminServer>','Server')
disconnect()
exit()
####for servers starting follow reverse order.
connect('<username>','<PASSWD>','t3://ip:port')
start('<manageservername>');
.
.
.
.
.