Command-line Tools
==================================
Commands only work on local servers or Nodes
- All commands are run from “bin” directory of the profile, < PROFILE_HOME>/bin or product install <WAS_HOME>/bin
- Commands run from the <PROFILE_HOME>/bin directory apply only to that specific profile – RECOMMENDED
- No need to provide the “-profileName” option when running from the profile bin directory
- Commands run from the <WAS_HOME>/bin directory apply to the default profile, when no profile option is specified
Managing Websphere profiles
- wasprofile.bat or wasprofile.sh (V6.0)
- manageprofiles.bat or manageprofiles.sh (V6.1)
Command line tool provides complete management of profiles - create, list, delete, validate, etc.
Profile Creation Tool uses wasProfile under the covers to create profiles
Node level Command-line tools
AddNode
- To federate the standalone profile node to the cell.
- 5.0 node can’t be added to 6.0 and 6.0 node can’t federated to 6.1. Can be done only through migration.
- With security enabled, both the node and cell user registry should be same.
RemoveNode
- The removeNode command returns a node from a Network Deployment distributed administration cell to a stand-alone application server installation.
- The removeNode command only removes the node-specific configuration from the cell. It wont remove the application from the cell.
cleanupNode
- Removes node configuration after node is forcefully removed from the cell
- Executed at the DMgr
RemoveNode –force
syncNode
- Forces full synchronization between the node and the Deployment Manager
- Used as error recovery tool, in case the node level configuration is damaged to the point where the Node Agent does not start
- Can also be done through the Administrative Console or wsadmin
Backup and Restore Config
backupConfig <file-name>
- Utility to back-up configuration to a zipped file
- For Stand-alone node, run backupConfig at the Node level
- For Network Deployment Cell, run backupConfig at the DMgr level, since it contains the master repository
restoreConfig <file-name>
- Utility to restore the configuration of your Stand-alone Application Server or the Cell from a backed up configuration file
Note that the backing up configuration is not sufficient to recreate the entire system
- There might be other directories like application binaries, that reside outside the configuration.
Console command-line tools
IscDeploy
- To restore the admin console or to install and uninstall the console.
IscDeploy –restore.
- Also use the deployConsole.py jython command to install and uninstall the adminconsole. The command is available only on version 6.1.
deployConsole.py –install or
deployConsole.py –uninstall
Utility Command-line tools
ws_ant
- Launch ANT with WebSphere Application Server extensions
ikeyman
- Generate and maintain security keys and keyfiles for SSL
ejbdeploy
- Generate container specific deployment classes for EJBs
- Can also be done during Application install time
GenPluginCfg
- Regenerate HTTP server Plug-in configuration file
- Can also be done with the Administrative Console or wsadmin
Status/Version Command-line tools
Status/Version Command Line Tools
serverStatus
- Retrieves server status
versionInfo
- Provides IBM® WebSphere Application Server Version Report
genHistoryReport, genVersionReport
- Generate html history/version reports
Other command-line tools
ivt (Installation Verification Test)
PropFilePasswordEncoder
- The PropFilePasswordEncoder command encodes passwords that are located in plain text property files. This command encodes both Secure Authentication Server (SAS) property files and non-SAS property files.
Collector
- Tool collects logs & configuration files in single jar file
- Additionally, the tool collects system information like configuration, OS system logs, available disk space, etc.
- Should be a root user to run the command.
- Can’t run the tool inside the profile-root/bin folder.
JspBatchCompiler
- Pre-compile JSPs in a Web module
EarExpander
- To expand the ear file under the installedApps.
No comments:
Post a Comment