ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsi command in .bat?

Post new topic  Reply to topic
 mqsi command in .bat? « View previous topic :: View next topic » 
Author Message
tonythomasantony
PostPosted: Thu Jan 11, 2007 3:46 am    Post subject: mqsi command in .bat? Reply with quote

Apprentice

Joined: 12 Aug 2006
Posts: 47

hi
i am using MQSI 6.0.0.0.
i want to write a .bat file that consists of mqsi command like mqsistop,mqsistart etc.
However this .bat file is executing without any error ,command are not getting executed and effective.

My .bat file looks like,

******************************************
@echo off
setlocal
cd \
d:
cd "Program Files"
cd IBM\MQSI\6.0\bin\
mqsiprofile.cmd >> c:\output
mqsistop -i ConfigMgr
mqsibackupconfigmgr ConfigMgr -d c:\mqsitest\db\
mqsistart ConfigMgr
END

***********************************************


Please provide a solution for this.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jan 11, 2007 3:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

For starters I'd post this in the WMB forum where it's likely to get a better response!

(Is there a moderator in the house.....? )

You say the file executes without any error; do the commands work when typed individually from a command prompt? Using the same user id that the bat file is executed using?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
tonythomasantony
PostPosted: Thu Jan 11, 2007 4:04 am    Post subject: Reply with quote

Apprentice

Joined: 12 Aug 2006
Posts: 47

i have executed successfully these commands in command prompt .
But i need to shedule this much of commands every day. But mqsi commands are not taking from .bat file..........
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jan 11, 2007 4:09 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

tonythomasantony wrote:
i have executed successfully these commands in command prompt .


Then there's a difference between the command prompt environment you use interactively and the environment the bat file is running in. Is it being run by scheduler software, or does it "fail" even if you run the bat file from your own command prompt?

I strongly doubt there's code within the commands to detect & fail if they're being run non-interactively. Possible of course, but unlikely.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jan 11, 2007 4:13 am    Post subject: Re: mqsi command in .bat? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

tonythomasantony wrote:
mqsistop -i ConfigMgr


And shouldn't the -i come after the component name?

And indeed not be used at all unless it won't respond to a standard stop?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
pathipati
PostPosted: Thu Jan 11, 2007 9:57 am    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

Quote:
tonythomasantony wrote:

mqsistop -i ConfigMgr

And shouldn't the -i come after the component name?

no, mqsistop -i ConfigMgr and mqsistop ConfigMgr -i both will work..
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Thu Jan 11, 2007 10:22 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Quote:
CALL mqsiprofile.cmd >> c:\output

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
tonythomasantony
PostPosted: Thu Jan 11, 2007 9:10 pm    Post subject: Reply with quote

Apprentice

Joined: 12 Aug 2006
Posts: 47

Hi jefflowrey,

its worked .. as you suggested i have used CALL for mqsiprofile.cmd..my bat file worked properly..Thanks alot


Vitor,Pathipati

thanks alot for your immediate responses and suggestions
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsi command in .bat?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.