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 » General IBM MQ Support » Remote command execution with psexec

Post new topic  Reply to topic
 Remote command execution with psexec « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Wed Apr 02, 2008 10:27 am    Post subject: Remote command execution with psexec Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

I have had problem getting psexec working for remote executing certain commands like

echo dis ql(*)| runmqsc MQGR

I got it working. Instead of having PSEXEC \\HOSTname COMMAND, I put all commands in a batch file and do

PSEXEC \\HOSTNAME -c batchfile name

note: the batch file should either be in the same directory of psexec or give complete path.

It then copies that file to remote host and execute the comamnd one by one as if the we are executing the batch file locally.

What i DID ?

PUT the follwoing comann in a batch file in the directory where I am running psexec

crtmqm -u SYSTEM.DEAD.LETTER.QUEUE -lc -lf 4095 TEST

STRMQM TEST

echo define listener(MQPOSEHA.TCP) TRPTYPE(TCP) PORT (1433) ONTROL(QMGR)"|RUNMQSC TEST

echo start listener(TEST.TCP) "|RUNMQSC TEST

echo lsstatus(TEST.TCP)| runmqsc TEST


the I executed psexec \\hostname -c batchfile.bat

it worked as expected.
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 » General IBM MQ Support » Remote command execution with psexec
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.