Well, yes, but to put it on the Windows hosts (many of them) means that
administering it is much more of a pain. It's possible, but it would be much
simpler in this environment if I could run this from the same administrative
server which runs all the other remote scripts.
Using the device name as a variable fails for me, Krishnan. Tried it using a
few of the different options (both for variable assignment and for passing the
name) without success. I have a few hoops to jump through before I can try
setting these systems up as clients and using nsrexec though .... :(
Cheers,
Stuart.
________________________________
From: Stan Horwitz [mailto:stan AT temple DOT edu]
Sent: Tue 04-Jul-06 13:25
To: Legato NetWorker discussion; Stuart Whitby
Subject: Re: [Networker] Remote admin of Windows drives
On Jul 4, 2006, at 8:08 AM, Stuart Whitby wrote:
> Frustrating.
>
> I'm trying to write a script which will run on one of our Unix
> servers to recycle tapes on a Windows NetWorker Server. However, I
> can't pass the \\.\Tape0 across correctly.
>
> At present, the closest I can get is to do something along the
> lines of:
> nsrmm -s <server> -f \\\\\\\\.\\\\Tape0
> to try to pass the correct device name. If I echo that string on
> the Solaris server from which I'll be running this script it comes
> back as \\.\Tape0, but it doesn't seem to get picked up by the
> remote system that way. Naturally, the remote server stores this
> name as \\\\.\\Tape0, but even the appropriate \\\\\\\\.\\\\Tape0
> or maybe \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\Tape0
> doesn't allow me to address this drive.
>
> \\\\\\\\\\\\\\\\\\\\\\\\Any clues?
You probably need to look at how each command line terminates, but it
seems to me, this would be much easier if you did it directly on the
Windows server. You can install the cygwin utilities on your Windows
server so you get all the C shell perks that Unix brings to the table.
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu
if you have any problems
wit this list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|