Overview
* Use the WLST life cycle commands to manage the life cycle of a server instance.
migrate
*Migrate services to a target server within a cluster.
* Online
* Syntax:
migrate(sname, destinationName, [sourceDown], [destinationDown], [migrationType])
– migrationType: jms, jta, server, all
* Example:
wls:/mydomain/edit !> migrate('server1','server2', 'true', 'false', 'all') Migrating all JMS and JTA services from 'server1' to destination 'server2' ... wls:/mydomain/edit !> migrate('server1','server2', 'true', 'false', 'Server') Migrating singleton server services from 'server1' to machine 'server2'...
resume
*Resume a server instance that is suspended or in ADMIN state.
* Online
* Syntax:
resume([sname], [block])
* Example:
wls:/mydomain/serverConfig> resume('managed1', block='true') Server 'managed1' resumed successfully.
shutdown
*Gracefully shut down a running server instance or cluster.
* Online
* Syntax:
shutdown([name], [entityType], [ignoreSessions], [timeOut], [force], [block])
* Example:
wls:/mydomain/serverConfig> shutdown() Shutting down the admin server that you are currently connected to ....... Disconnected from weblogic server: AdminServer wls:/mydomain/serverConfig> shutdown('myserver','Server','false',1000, block='false') wls:/mydomain/serverConfig> shutdown('mycluster','Cluster')
start
*Start a Managed Server instance or a cluster using Node Manager.
* Online
* Syntax:
start(name, [type], [url], [block])
– type: Server or Cluster. Defaults to Server.
– url: defaults to t3://localhost:7001.
– block: defaults to true.
* Example:
wls:/mydomain/serverConfig> start('myserver', 'Server', block='false') wls:/mydomain/serverConfig> start('mycluster', 'Cluster')
startServer
*Start the Administration Server.
* Online or Offline
* Syntax:
startServer([adminServerName], [domainName], [url], [username], [password], [domainDir], [block], [timeout], [serverLog], [systemProperties], [jvmArgs] [spaceAsJvmArgsDelimiter])
* Example:
wls:/offline> startServer('demoServer','demoDomain','t3://localhost:8001', 'myweblogic','wlstdomain','c:/mydomains/wlst','false', 60000, jvmArgs='-XX:MaxPermSize=75m, -Xmx512m, -XX:+UseParallelGC')
suspend
*Suspend a running server.
* Online
* Syntax:
suspend([sname], [ignoreSessions], [timeOut], [force], [block])
* Example:
wls:/mydomain/serverConfig> suspend('managed1') Server 'managed1' suspended successfully.