Re: DR Script

2003-02-11 Thread Boger, Dan
Would something like this work?

  echo 'dis chl(*) chltype(SDR)' | runmqsc MQIDEV1 | perl -nle 'next unless
/CHANNEL\(([^)]+)\)/; print RESET $1'

Modify as needed to reset RCVR channels.

HTH!

Dan

-Original Message-
From: Robert Broderick [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 1:02 PM
To: [EMAIL PROTECTED]
Subject: DR Script
Importance: Low


Before I waste my time and write on. Does anybody have a script that will do
a RESET on all the server channels on a particular box

It can be .sh .ksh or .pl


   bobbee





_
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



Re: DR Script

2003-02-11 Thread Paul Clarke
Before I waste my time and write on. Does anybody have a script that will
do
a RESET on all the server channels on a particular box

It can be .sh .ksh or .pl

bobbee,

I assume you don't want to do this too often. You can do this with my MO71.
Display the channel list, click on the channel type to sort by channel
type. Select all the server channels. Select the RESET command and a dialog
will be diaplyed with all the channels in it. Press RESET.

Cheers,
P.


Paul G Clarke
WebSphere MQ Development
IBM Hursley

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



Re: DR Script

2003-02-11 Thread Peter Uranyi
If you use saveqmgr to backup your queue manager, then you can specify that you
also want to include reset channel commands in the script. (-R switch)

--- Robert Broderick [EMAIL PROTECTED] wrote:
 Before I waste my time and write on. Does anybody have a script that will do
 a RESET on all the server channels on a particular box

 It can be .sh .ksh or .pl


bobbee





 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail

 Instructions for managing your mailing list subscription are provided in
 the Listserv General Users Guide available at http://www.lsoft.com
 Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



Re: DR Script

2003-02-11 Thread Robert Broderick
That is a good idea. I forgot about that. I have to include that in my
commands that run the QMGRSAVE. But the script I needed was after they
restored the box from backup tape. Running the runmqsc with the SAVEQMGR
output would probably not hurt but I didn't want anymore going on that
didn't have to be. So we decided on the rese script. It is written and
working so it's water under the bridge. But I will upgrade my other scripts.

  Thanks bobbee







From: Peter Uranyi [EMAIL PROTECTED]
Reply-To: MQSeries List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: DR Script
Date: Tue, 11 Feb 2003 06:36:10 -0800

If you use saveqmgr to backup your queue manager, then you can specify that
you
also want to include reset channel commands in the script. (-R switch)

--- Robert Broderick [EMAIL PROTECTED] wrote:
 Before I waste my time and write on. Does anybody have a script that
will do
 a RESET on all the server channels on a particular box

 It can be .sh .ksh or .pl


bobbee





 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail

 Instructions for managing your mailing list subscription are provided in
 the Listserv General Users Guide available at http://www.lsoft.com
 Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



_
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive