Networker

Re: [Networker] last volume used by the backup server

2004-03-08 16:15:59
Subject: Re: [Networker] last volume used by the backup server
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 8 Mar 2004 13:15:55 -0800
> Hi all, there is a script that goes out and finds the last volume that the
> backup server used during a backup. The script gets the last volume
> information from the nsr.res file. The script basically greps for the line
> 'volume name:' in the file. On some systems the last volume information is
> there and on other systems the last volume information is not there.  The
> volume name field is on all the system, it just on some systems the volume
> ID is missing.

The attribute "volume name:" is a dynamic attribute of a device.  You
should have multiple lines if you have multiple devices, and there
should only be a value there if the volume is mounted.  You could get
the same information by just running a 'nsrmm' to see mounted volumes.

     volume name                 (read-only, dynamic, hidden)
          This attribute monitors the mounting and unmounting of
          volumes for a device. When a volume is mounted, the
          value is the volume name, otherwise there is no value.
          Example: volume name: mars.017;

Why do you need the "last volume used"?  Perhaps using 'mminfo' would be
better.  Something like...

mminfo -ot -r 'volume' | tail -1

would work for some (but not all) situations.


--
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

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