Translate

Monday, 29 September 2014

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.

Thursday, 4 September 2014

Restoring deployment manager (dmgr) profile configuration in WebSphere Application Server 8.5 on windows

Follow the step to restore deployment manager (dmgr) profile configuration in WebSphere Application Server  8.5 on windows:

  If u want to watch installation process click on below link

(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
                           When we restore .... etc.
1.First check the dmgr status. Is it running or not by using serverStatus.bat command.
           Ex:
                  serverStatus.bat  -all

2.We can restore dmgr profile from 's bin folder and dmgr's bin folder.
3.We can restore  dmgr profile
                      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 restore  of dmgr configuration file from 's bin folder.

Note:
          Here i took back up before only. If u want to know how to take back up, Just verify my preview's article.

6.Just use restoreConfig.bat command to restore dmgr.
        ex:
               /bin>restoreConfig.bat   -profileName  Dmgr01

7.That's it......
8.By default dmgr is stopped automatically when u restore dmgr configuration. U can restore without stopping of dmgr. Just read and practice of the syntax.
    Syntax:
                restoreConfig  backup_file [-location restore_location] [-nostop] [-quiet]
                [-nowait][-logfile ][-replacelog][-trace][-username ][-password ][-profileName ]                 [-help]



Thank u. Comments & feedback r most welcome.