4.11.1 Deleting Application Server
To delete Application Server, stop each server, and then run the delete-relation, delete-instance, delete-webserver, and delete-prf subcommands of the asadmin utility command. Each command deletes the dependency relations, Java EE server, web server, and performance tracer. Before deleting Application Server, be sure to back up the environment information.
Prerequisites
-
Application Server has been set up.
Intended users
-
System engineers
Procedure
To stop all performance tracers, server instances, and web servers at the same time, execute the stop-servers subcommand of the asadmin utility command.
asadmin stop-servers
When this command is run, the result is displayed as follows:
Command stop-servers executed successfully.
To display a list of performance tracers, run the list-prfs subcommand of the asadmin utility command.
asadmin list-prfs
When this command is run, the result is displayed as follows. Ensure that the statuses of the performance tracers are not running.
performance_tracer_name not running Command list-prfs executed successfully.
To display a list of server instances, run the list-instances subcommand of the asadmin utility command with the --long option specified.
asadmin list-instances --long=true
When this command is run, the result is displayed as follows. Ensure that the statuses of the server instances are not running.
server_instance_name host_name port_number process_ID cluster_name not running Command list-instances executed successfully.
-
cluster_name is displayed only for cluster configurations that contain multiple Java EE servers.
-
To display a list of web servers, run the list-webservers subcommand of the asadmin utility command.
asadmin list-webservers
When this command is run, the result is displayed as follows. Ensure that the statuses of the web servers are not running.
web_server_name not running Command list-webservers executed successfully.
If required, back up the environment information as follows:
To stop the domain administration server (DAS), run the stop-domain subcommand of the asadmin utility command.
asadmin stop-domain
When this command is run, the result is displayed as follows:
Command stop-domain executed successfully.
To back up the environment information, run the backup-domain subcommand of the asadmin utility command.
asadmin backup-domain --backupdir destination_directory_of_backup_file domain_name
Verify the backup file that is created.
To start the DAS, run the start-domain subcommand of the asadmin utility command.
asadmin start-domain
When this command is run, the result is displayed as follows:
Command start-domain executed successfully.
Back up all management files (server templates) except the domain directory.
To delete the dependency relation, run the delete-relation subcommand of the asadmin utility command.
asadmin delete-relation dependency_relation_name
When this command is run, the result is displayed as follows:
Command delete-relation executed successfully.
To delete the Java EE server (server instance), run the delete-instance subcommand of the asadmin utility command.
asadmin delete-instance server_instance_name
When this command is run, the result is displayed as follows:
Command delete-instance executed successfully.
To delete the web server, run the delete-webserver subcommand of the asadmin utility command.
asadmin delete-webserver web_server_name
When this command is run, the result is displayed as follows:
Command delete-webserver executed successfully.
To delete the performance tracer, run the delete-prf subcommand of the asadmin utility command.
asadmin delete-prf performance_tracer_name
When this command is run, the result is displayed as follows:
Command delete-prf executed successfully.
To delete the node, run the delete-node-dcom subcommands of the asadmin utility command.
asadmin delete-node-dcom node_name
When this command is run, the result is displayed as follows:
Command delete-node-dcom executed successfully.