Operating System - OpenVMS
1753260 Members
4856 Online
108792 Solutions
New Discussion юеВ

BACKUP/NOASSIST & MOUNT/NOASSIST

 
Rob Kersey
Advisor

BACKUP/NOASSIST & MOUNT/NOASSIST

Mount/Noassist times out after 3600 seconds. (Depending on the setting SYSGEN param of MVTIMEOUT)

When does Backup/Noassist timeout?

Or do you just get

%BACKUP-I-READYWRITE, mount volume 1 on MKA600: for writing
Enter "YES" when ready:

Can it be set to timeout after 3600 seconds as well?

As I want to use it in a batch job!
15 REPLIES 15
Martin P.J. Zinser
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

Hello,

if you are running a batch /noassist is not supposed to work anyhow, from the help:

The /NOASSIST qualifier has no
effect if the logical name SYS$COMMAND points to a device that
is not a terminal (as is the case when you run BACKUP in a batch
job).

Greetings, Martin
Ian McKerracher
Occasional Advisor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

I have a similar requirement to Rob i.e. I don't want a batch backup job, which runs unattended during the middle of the night, to ask for operator assistance and prevent subsequent jobs from executing. I would prefer a message to be logged and the backup job to abort.

I agree with Martin that the documentation states that a BACKUP/NOASSIST combination is not intended for batch jobs. But there is a question on Ask The Wizard (see BACKUP,Tapes and Operator Assistance?) where the answer implies that either BACKUP/NOASSIST or MOUNT/NOASSIST is the solution.

Ian Miller.
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

Ian, I think you are reffering to
http://h71000.www7.hp.com/wizard/wiz_7395.html

I usally am initialising the tape first so the INIT command fails if no tape is loaded and the job exits with an error.

I can't see the text in help that Martin referred to but parhaps you could work around it by assigning SYS$COMMAND to OPA0: for the duration of the mount command
$ DEFINE/USER SYS$COMMAND OPA0:
$ MOUNT/NOASSIST....
____________________
Purely Personal Opinion
Bojan Nemec
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

If you use BACKUP without /NOASSIST, and there are no enabled operators on the system the backup will end with an %BACKUP-F-NOOPER error.

Bojan
Jan van den Ende
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

...
which you can conditionally react upon (well, along with other -F- errors) with
$ ON SEVERE_ERROR THEN GOTO

Cheers.

Have one on me.

Jan
Don't rust yours pelled jacker to fine doll missed aches.
Ian Miller.
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

Bojan, I think the issue is what happens if there are enabled operators but for a particular job you want the BACKUP to end with a error rather than ask.
____________________
Purely Personal Opinion
Volker Halle
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

Rob,

please note that MOUNT/NOASSIST does NOT wait until MVTIMEOUT expires, it will return with an appropriate error (after a couple of mount/device specific internal retries). This may take up to 2-3 minutes...

Example:
(MVTIMEOUT=3600 on this system).

$ show time
10-NOV-2004 11:41:06
$ mount/noassist/over=id $1$mkb0:
%MOUNT-F-MEDOFL, medium is offline
$ show time
10-NOV-2004 11:43:05

So first trying to mount the tape with MOUNT/FOR/NOASSIST before letting BACKUP use it, will probably be the best method to detect a problem with the device/medium.

Volker.
Bojan Nemec
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

Ian,

In my post I try to explain what happens when you use the /ASSIST qualifier. It will not work if an operator leaves withot logout (which is a security issue).

I use the backup command as it was in the old days when backup was not able to mount tapes. So first INIT if needed (as you) and then MOUNT/FOREIGN.

Bojan
Ian Miller.
Honored Contributor

Re: BACKUP/NOASSIST & MOUNT/NOASSIST

Bojan - I know we are all just being helpful here and its a very good thing.

Volker - are you saying that the behavior of MOUNT/FOR/NOASSIST is different to what BACKUP/NOASSIST does when mounting tapes?

If so then this suggests doing the MOUNT first is a good thing.
____________________
Purely Personal Opinion