Вы находитесь на странице: 1из 11

1.

Find out Which versions are running


For WAS:
AIX
/bin/versionInfo.sh
Solaries/Linux
/bin/versionInfo.sh
Windows
/bin/versionInfo.bat
For IHS:
AIX
/bin/httpd -v
Solaries/Linux
/bin/httpd -v
Windows
/bin/apache -v
other:
Java JDK:
UNIX
./java -version
Windows
./java -version
2.Find out what process are running
Unix:
basic --------->
ps -ef | grep -i java
Solaris --------->
/usr/ucb/ps -auxWw
AIX ---------->
/usr/bin/ps -elf
Other process:
ps -ef | grep java | grep dmgr
This command will filter dmgr process in java.
Windows:
TaskManager--------->Applications------------->process
c:/>net start
c:/>net start "IBM HTTP Server"
c:/>net stop "IBM HTTP Server"
3.Find out which operating system version is running:
AIX
-------------------> oslevel (or) uname -a
solaris/Linux
-------------------> uname -a
Windows
-------------------> ver (or) winver
4.Find out hardware configuration:
AIX
-------------------> lsattr -E -l sys0 -a r
solaris
-------------------> ptrconf | grep -i memory
Windows
-------------------> winver
Linux
-------------------> dmesg
5.Find out contents of files like jar, zip:
UNIX
--------------------> ls -l

windows
--------------------> dir
6.Shutting and rebooting:
AIX
-------------------> /usr/sbin/shutdown -Fr
solaris
-------------------> /usr/sbin/shutdown -y -go -i6
Linux
-------------------> /sbin/shutdown -r now (reboot)
/sbin/shutdown -h now (not reboot)
Windows
-------------------> start---->Shutdown
7.List out all open ports, listening ports,routing tables etc:
netstat
options:
netstat -nr
-n means "list in IP address"
-r means "prints routing table"
netstat -a
-a means "lists all open ports"
netstat -l
-l means "lists all the listening ports"
8.Something about "ls" command:
ls -ltra
-l means "long listing formats"
-t means "sort by modification time"
-r means "reverse order by sorting"
-a means "all files including ones starting
with dot(.).
ls -ltrS
-s means "Sort by size".

thank u. comments & feedback r most welcome.

WebSphere Application Server commands


Some useful Commands for WebSphere Application Server Admin (WAS
Admin):
Here I provide some useful commands for WAS Admin (for
beginners) . These commands related to WAS, IHS.
Note:
We can use not only this syntax for some commands. U can use it with
many ways also.Check syntax before using this syntax and practice on it.

Feel free to comment , provide more commands, find any


errors in this article(to improve this article).
1.To open Profile Management Tool(PMT) for creating profiles
WAS_root/bin/ProfileManagement/pmt.bat(.sh)
2.To create profiles in Command line which command we use?
WAS_root/manageprofiles.bat(.sh)
3.List out profiles in a box
WAS_root/manageprofiles.bat(.sh) -listProfiles
4.To start Deployment Manager(dmgr)
dmgr_root/bin/startManager.bat(.sh)
5.To stop Deployment Manager(dmgr)
dmgr_root/bin/stopManager.bat(.sh)
6.To stop Deployment Manager(dmgr) while security is enabled
dmgr_root/bin/stopManager.bat(.sh) -userName username
-password password
7.Add a node to Deployment Manager(dmgr)
node_root/bin/addNode.bat(.sh) dmgr_hostname
dmgr_SOAPportno
8.Add a node to Deployment Manager(dmgr)(while security is enabled to
dmgr)
node_root/bin/addNode.bat(.sh) dmgr_hostname
dmgr_SOAPportno
-userName username -password password
9.To start node
node_root/bin/startNode.bat(.sh)

10.To stop node


node_root/bin/stopNode.bat(.sh)
11.To stop node while security is enabled
node_root/bin/stopNode.bat(.sh) -userName username
-password password
12.To start server
profile_root/bin/startServer.bat(.sh) server_name
13.To stop server
profile_root/bin/stopServer.bat(.sh) server_name
14.To stop server while security is enabled
profile_root/bin/stopServer.bat(.sh) server_name userName username
-password password
15.To know server status
profile_root/bin/serverStatus.bat(.sh) -all
16.To know server status while security is enabled
profile_root/bin/serverStatus.bat(.sh) -all -username username
-password password
17.To know WAS version information
WAS_root/bin/versionInfo.bat(.sh)
18.To know java version information
WAS_root/java/jre/java.exe -version (in windows)
WAS_root/java/jre/java -version (in Linux)
19.To delete a profile

WAS_root/bin/manageProfile.bat(.sh) -delete profileName profile_Name


20.To open IBM Installation Manager(IM)
installation_loc of IM/eclipse/IBMIM
21.To open WebSphere Customization Toolbox(WCT)
WAS_root/bin/ProfileManagement/WCT/wct.bat(.sh)
22.To remove node from dmgr
node_root/bin/removeNode.bat(.sh)
23.To synchronize the node to dmgr
node_root/bin/syncNode.bat(.sh) dmgr_hostname dmgr_SOAP
portno
24.To take backup of profile configuration
WAS_root/bin/backConfig.bat(.sh)
25.To restore of profile configuration
WAS_root/bin/restoreConfig.bat(.sh)
26.To generate report that includes of installed or uninstalled fix packs &
interim fixes
WAS_root/bin/historyInfo.bat(.sh)
27.To start WSAdmin tool
WAS_root/bin/wsadmin (in windows)
WAS_root/bin.wsadmin.sh (in linux)
28.To run the caller script using wsadmin tool
WAS_root/bin/wsadmin(.sh) -lang jython -f script_filename.py
29.To start jobmanager
jobmanager profile_root/bin/startServer.bat(.sh) jobmgr

30.To start adminagent


adminagentprofile_root/bin/startServer.bat(.sh) adminagent
31.To stop jobmanager
jobmanager profile_root/bin/stopServer.bat(.sh) jobmgr
32.To stop adminagent
adminagentprofile_root/bin/stopServer.bat(.sh) adminagent
33.To open Ikeyman tool
WAS_root/bin/ikeyman.bat(.sh)
34.To generate the WAS webserver's plugin configuration file(plugin-cfg.xml)
WAS_root/bin/genPluginCfg.bat(.sh)
35.To generate "versionReport.html" report file
WAS_root/bin/genVersionReport.bat(.sh)
36.To encodes passwords that are located in plaintext property files
profile_root/bin/propFilePasswordEncoder.bat(.sh) "filename"
37.To start IBM HTTP Server(IHS)
IHS_root/bin/apachectl start (in Linux)
IHS_root/bin/apache.exe -k start -f httpd.conf
_location (windows)
38. To stop IBM HTTP Server(IHS)
IHS_root/bin/apachectl stop
IHS_root/bin/apache.exe -k stop -f httpd.conf
_location (windows)
39. To start IBM HTTP Server adminstration server
IHS_root/bin/adminctl start

40.To stop IBM HTTP Server adminstration server


IHS_root/bin/adminctl stop
41.To know version of IHS
IHS_root/bin/apachectl -v
42.To start IBM HTTP Server using an alternate config file
IHS_root/bin/apache -k start -f httpd.conf _location
IHS_root/bin/apache.exe -k start -f httpd.conf _location
43.To stop IBM HTTP Server using an alternate config file
IHS_root/bin/apache -k stop -f httpd.conf _location
IHS_root/bin/apache.exe -k stop -f httpd.conf _location
44.To open Key management utility user interface for IHS
ikeyman

Thank u. Comments & feedback r most welcome.

Backing up deployment manager (dmgr) profile


configuration in WebSphere Application Server 8.5 on
windows
Follow the step to back up deployment manager (dmgr) profile
configuration in WebSphere Application Server 8.5 on windows:
If u want to watch installation process click on below link
https://www.youtube.com/watch?v=795B-STRnzg
(or)

Note:
Before completing this task, U must read about some topics like
Why we take profile back up
When we used profile back up.... etc.
1.First check the dmgr status. Is it running or not by using serverStatus.bat
command.
Ex:
serverStatus.bat -all

2.We can get dmgr profile back up from 's bin folder and dmgr's bin folder.
3.We can get dmgr profile back up
1. when dmgr is Started status.
2. when dmgr is Stopped status.
4.Now let us start to complete this task.
5.Now I will take back up of dmgr configuration file from 's bin folder.

6.Just use backupConfig.bat command to take back up file.


ex:
/bin>backupConfig.bat -profileName Dmgr01
7.U will get one zip file under bin folder. It is back up file of dmgr
configuration.

8.That's it......
9.By default dmgr is stopped automatically when u take back up of dmgr
configuration. U can take back up without stopping of dmgr. Just read and
practice of the syntax.
Syntax:

backupConfig [backup_file] [-nostop] [-quiet][-logfile ]


[-replacelog][-trace][-username ] [-password ]
[-profileName ] [-help]

Thank u. Comments & feedback r most welcome.

Вам также может понравиться