Networker

Re: [Networker] unloading tape drive in remote storage node

2003-02-10 02:41:28
Subject: Re: [Networker] unloading tape drive in remote storage node
From: Dirk Verhoeff <dirk.verhoeff AT NL.ABNAMRO DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 10 Feb 2003 08:16:01 +0100
Hi,

I use something I believe was originally pointed out by Davina Treiber.

the nsrexec command uses environment variables to execute stuff on storage
nodes:

have a script like this

#!/usr/bin/ksh -x
export RUSER=root
export RCMD="${2}"
echo $RCMD
sudo nsrexec -c ${1}


then call it like this:

script storagenodename "nsrjb -u -f /dev/rmt/1cbn"

or anything else you can do with nsrjb

Regards,

Dirk Verhoeff
---------------------------------------------------------------------------
This message (including any attachments) is confidential and may be
privileged. If you have received it by mistake please notify the sender by
return e-mail and delete this message from your system. Any unauthorised
use or dissemination of this message in whole or in part is strictly
prohibited. Please note that e-mails are susceptible to change.
ABN AMRO Bank N.V. (including its group companies) shall not be liable for
the improper or incomplete transmission of the information contained in
this communication nor for any delay in its receipt or damage to your
system. ABN AMRO Bank N.V. (or its group companies) does not guarantee that
the integrity of this communication has been maintained nor that this
communication is free of viruses, interceptions or interference.
---------------------------------------------------------------------------

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>