Home > AS/400 Tips > WebSphere Strategies for iSeries professionals > Automate WebSphere configuration backups on the iSeries (i5)
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WEBSPHERE STRATEGIES FOR ISERIES PROFESSIONALS

Automate WebSphere configuration backups on the iSeries (i5)


Keith Livingood
02.16.2006
Rating: -4.75- (out of 5) Hall of fame tip of the month winner


iSeries news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


The backupConfig command is delivered inside of the WebSphere product on the iSeries that allows the WebSphere configuration to be backed up and used to restore your WebSphere applications if your WebSphere environment becomes corrupt or damaged. The problem is this command is a Qshell command and has Qshell output that makes it difficult for you to submit this command unattended. We needed to be able to execute this command from a CL program that could be submitted as a scheduled job or before some extensive WebSphere configuration changes are to be done, without having to get into Qshell.

Another important point to note about the backupConfig command is to use the -nostop option, which allows you to backup your WebSphere applications without having to bring down any of the WebSphere subsystem jobs. The CL program that is listed below shows how to disable the Qshell from sending informational messages and then examples of backing up the node agent and the deployment manager using the backupConfig command. The CD change directory) command that is right before the backupConfig command tells where to write the backup configuration files. This CL command can be called anytime directly from a command line or entered as a scheduled job to run at certain times. The example below is from backing up a WebSphere Network Deployment version 6.0 application environment on the iSeries.

Code: PGM

                                                               
/* TELL QSHELL NOT TO DISPLAY OUTPUT ON SCREEN  */               
                                                                 
RMVENVVAR  ENVVAR(QIBM_QSH_CMD_OUTPUT)                           
MONMSG MSGID(CPFA981) /* ENVVAR DOES NOT EXIST */                
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE)                
                                                                 
/* EXECUTE QSHELL COMMANDS */                                    
                                                                 
        STRQSH     CMD('cd  /qibm/UserData/WebSphere/WASbackups;/qibm/U+
                      serData/WebSphere/AppServer/V6/ND/profiles/NUV/bin/backupC+
onfig -username admin -password admin1 -nostop;/qibm/UserData+ /WebSphere/AppServer/V6/ND/profiles/NUVDmgr/bin/backupConfig +   
                     -username admin -password admin1 -nostop) 
                                                                                    
/* RESTORE DEFAULT BEHAVIOR. */                                 
                                                                
       CHGENVVAR  ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(STDOUT)     
                                                                
ENDPGM                                                          

  

Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
WebSphere Strategies for iSeries professionals
Application modernization strategies for System i
Application modernization in the i world
Natively supported Web applications for Power running i
Enterprise open source basics
Basic security considerations for a Domino/WebSphere system
Simplifying data access using Java Standard Tag Library
Integrating Microsoft ActiveX components with WebSphere
Choices for running Web workloads on iSeries
Virtual hosting for iSeries Web applications
Squirrel: The universal SQL client

Web Development
Application modernization strategies for System i
RPG application modernization for i5
Web skills crucial to iSeries programmer professional development
System i Web interface could boost the platform
Free System i development tools rebuttal
COMMON product round-up: Modernizing the IBM System i
Top 10 System i white papers
Enterprise open source basics
Make WebSphere work for you
WebSphere for System i tutorial

Web Tools
Application modernization strategies for System i
Natively supported Web applications for Power running i
System i PHP authoring tool tries to fill void in Web-coding know-how
Lazy coder: What does PHP on the i5 mean?
IBM WebSphere Portal Primer, Second Edition -- Chapter 2
Make WebSphere work for you
WebSphere for System i tutorial
Users gain from Red Hat's JBoss buy
Choices for running Web workloads on iSeries
IBM, Zend port PHP to System i

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
WebSphere Development Studio Client (WDSC)  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts