After the installation with WebSphere Application server one of the most common task is creating the profiles and federating it with Dmgr which comes as part of an L3/L4 job.
But, the most important and commonly performed task is administration of websphere environment. Unlike the installation or creation or configuration, administration is a Day-Day task which is most comfortable, if we are equipped with some of the commonly used HANDY commands provided by WebSphere Application server. This referenced article explains those most of these handy commands with syntax, when and how to use with an example:-
1) Backup config: Backup config command is used to take the backup of configuration information of your profiles in zip format. This command is mainly used when we want to upgrade, migrate or for anything where our profile configuration impacts.
Syntax: Profile>bin>backupConfig.sh <name_config.zip> (or) backupConfig.sh <path/name_config.zip>
Example: /opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin/backupConfig.sh /opt/IBM/WebSphere/AppServer/profiles/A ppSrv02/logs/AppSrv02_bkp.zip
2) CleanupNode: CleanupNode is used to clean the node when you have defined a node in cell config but node no longer exists. This is generally used when we are done with defederation.
Syntax: DmgrProfile>bin> ./cleanupNode.sh <nodename> <deploymgrhost> <deploymgrport>
Example: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/cleanupNode.sh. myNode -trace -profileName mydmgr
3) RemoveNode: Remove nodes returns from WAS distributed administration cell to standalone application server installation
Syntax: Profile>bin>./ removeNode.sh <nodename> <deploymgrhost> <deploymgrport>
Example: /opt/IBM/WebSphere/AppServer/profilesCustom02/bin/removeNode.sh. –userName admin –password admin
4) genHistoryReport:It generates an HTML report of recent configuration changes done at profile level. This is generally used when we want to present client an audit report about the profile level environment (.i.e. changes done in my profile).
Syntax: Profile>bin>./ genHistoryReport.sh
Example: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/genHistoryReport.sh –userName admin –password admin
5) genVersionreport: It generates an HTML report of version related changes on profile which is useful in any upgrades, migration, fixpacks, etc.
Syntax: Profile>bin>./ genVersionReport.sh
Example: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/genVersionReport.sh –userName admin –password admin
6) collector: Collector command generates complete information about websphere application server with reference to OS and its environment in JAR format containing information about property files, logs, etc. This method is deprecated in WAS7.0 and replanced by AutoPD
Syntax: DmgrProfile>bin>./ collector.sh
DmgrProfile>bin>./ collector.sh –profileName profile_name(with reference to profile)
7) dumpNameSpace: dumpNamespace.sh script dumps information about the WAS namespace, debugging applications when JNDI errors are seen in WAS logs
Syntax: DmgrProfile>bin>./ dumpNameSpace.sh –profileName profile_name(with reference to profile)
8) IVT: Installation verification tool(IVT) is used to verify the installation of profile with reference to server.
Syntax: Profile>bin>./ ivt.sh -serverName –profileName –p server_port HostName
Example: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/ivt.sh server1 AppSrv02 –p 9801 LinuxServer
./manageprofiles.sh -delete -profileName Dmgr01