Networker

Re: [Networker] Deposit volumes error

2007-03-16 05:37:04
Subject: Re: [Networker] Deposit volumes error
From: Peter Viertel <Peter.Viertel AT MACQUARIE DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 16 Mar 2007 20:33:27 +1100
The best way I have found to do this so far is to pipe the answers in.
It's an ugly hack, but at least the operation completes as a success in
the jobsdb this way.


                 if (open(DEPOSIT, "echo \"Yes\\nn\"|/usr/sbin/nsrjb -s
$SERVER -j $JBNAME -vd 2>&1|")) {
                        while(<DEPOSIT>) {
                                chomp;
                                s/setting verbosity level to `1'//;
                                s/Load the cartridges into the ports,
and enter Yes to continue.//;
                                s/Operation `read elements status' is in
progress on jukebox `.+'.//;
                                s/Continue depositing volumes\?
\(y\/n\)//;
                                s/I\/O error or End of File encountered.
Exiting.//;
                                s/Depositing/Deposited/;
                                s/ within \d+ seconds//;
                                s/nsrjb: Info: //;
                                print "* $_\n";
                        }
                        close DEPOSIT;
                        }

-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Tim Verbois
Sent: Friday, 16 March 2007 8:16 PM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] Deposit volumes error

Hello, I use 7.3.2 and when I deposit volumes, I get:

# nsrjb -d -Y
nsrjb: Info: Moving media from port 1 to slot 76.
nsrjb: Info: Moving media from port 2 to slot 79.
nsrjb: Info: Moving media from port 3 to slot 82.
nsrjb: Info: Moving media from port 4 to slot 97.
nsrjb: Info: Moving media from port 5 to slot 104.
nsrjb: Info: Moving media from port 6 to slot 108.
nsrjb: Info: Moving media from port 7 to slot 179.
nsrjb: Info: Moving media from port 8 to slot 187.
nsrjb: Info: Moving media from port 9 to slot 188.
nsrjb: Info: Moving media from port 10 to slot 201.
nsrjb: Info: Depositing 10 cartridges.
nsrjb: Error: User failed to deposit any cartridge within 15 seconds.
nsrjb: error, Jukebox command terminated with errors.

now, why is there an error.  He did everything perfect, but there is an
error.  If I remove the -Y, then it is interactive, and that is not what
I want.

I assume he waits 15 seconds to see if there are some new tapes inserted
in the mean time, but 15 seconds is very short to insert 20 tapes, so I
assume you can change the timeout, but how?

--
Tim Verbois
EDS-Telindus
Unix Team
02/553.71.73

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 with 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

NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Bank or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or act 
in reliance on this e-mail or any attachments, and should destroy all copies of 
them. Macquarie Bank does not guarantee the integrity of any emails or any 
attached files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.

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 with 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

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