配置实现iSeries(i5)的上WebSphere备份自动化
上一篇 /
下一篇 2006-08-23 17:57:43 / 天气: 晴朗
/ 心情: 郁闷
/ 个人分类:技术活
DOIT博客"]H-~&cVm+]o)J(Z{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.
*|2E5@dX5cM3t'@1`0,a5G+K"W5dE0Another 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.
M&Yw#g!ZBQ09w.P8RF0As0Code: PGM
1tp\{5HV.`L0G(D2Ss)fe~+~,c6zO0 DOIT博客XDJ%@0l3bp
/* 告诉Qshell不去禁用屏幕输出 */
$[ X4std*C3y3yc0
v3X6NT[ Z;lZ2X@n0RMVENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT)
#g&B&AF6H"]#Ol0MONMSG MSGID(CPFA981) /* ENVVAR 不存在 */ DOIT博客l:MRSQ!NA8^
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE)
q%WC,L,]mRUu/Jm0 DOIT博客K"V8v*Frdf| w}c
/* 执行Qshell命令 */ DOIT博客.f+`:w-v1ukS {d
$Z;ja)L4uH}L0 STRQSH CMD('cd /qibm/UserData/WebSphere/WASbackups;/qibm/U+DOIT博客1ct_xQi]{+}\
serData/WebSphere/AppServer/V6/ND/profiles/NUV/bin/backupC+DOIT博客$? m Cj
F!C'V
onfig -username admin -password admin1 -nostop;/qibm/UserData+ /WebSphere/AppServer/V6/ND/profiles/NUVDmgr/bin/backupConfig + DOIT博客\{8v9c O'\
-username admin -password admin1 -nostop)DOIT博客CY5a3w0T
o?7Ozv7c0/* 恢复默认行为 */
kYW8L;Da@.M0
Y5Nh#q0L0 CHGENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(STDOUT) DOIT博客VO.d4BYL;di"rg
bVj!}i^D%f0ENDPGM DOIT博客4@ Ga)Mv]r
V
导入论坛
引用链接
收藏
分享给好友
管理
举报
TAG:
iSeries
IBM
技术活