Lee Smith[SMTP:[EMAIL PROTECTED]] wrote:
> > I created a script to stop and restart services on remote servers, but
> it is failing... anyone know a better way? and FYI: for some reason my
> script centers on remote servers will not work. Script centers always give
> me Login failure, although I can run the scripts in command center or from
> a CLP without any problems... OTHER FYI: we are running db2 udb 5.2 on NT
> >
> > script is as follows
> >
> > DB2 CONNECT TO %1 USER admin USING password
> > DB2 FORCE APPLICATION ALL
> > DB2STOP
> > DB2START
> >
> > all the above script does, is stop the instance on the LOCAL workstation
> that I am running the script from...
> >
> > any help would be greatly appreciated
> >
>
This is NT you're talking about ... it interprets the DB2STOP as a local
command. I'd suggest you look at the remote service control or remote
command shell options in the NT res kit - very handy gadgets (though rcmd is
a little insecure).
Ciao
Fuzzy
:-)
----------------------------------------------------------------------------
"Woo Hoo!" H. Simpson
----------------------------------------------------------------------------
The contents of this post are my opinions only
If swallowed seek medical advice
(Apologies for the excess signature)
This email message (and attachments) may contain information confidential to
TOWER Software. If you are not the intended recipient you cannot use,
distribute or copy the message or message attachments. If you are not the
intended recipient, please notify the sender by return email immediately and
delete all copies of the message and attachments. Opinions, conclusions and
other information in this message and attachments that do not relate to the
official business of TOWER Software, are not given or endorsed by it.
=====
To unsubscribe, send 'unsubscribe' to [EMAIL PROTECTED]
For other info (and scripts), see http://people.mn.mediaone.net/scottrmcleod