Networker

Re: [Networker] Media Database query

2004-12-09 15:23:50
Subject: Re: [Networker] Media Database query
From: thierry.faidherbe AT HP DOT COM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Thu, 9 Dec 2004 15:23:04 -0500
Well, you can achieve it quite simple using 2 mminfos :

The first one :
mminfo -a -r barcode,ssid | awk '{print $1}' | sort -u > File1
At this stage, you have volumes with ssids on it.

mminfo -a -q inuse -r barcode > File2
At this stage, you have all of your known tapes being used (not 0% used).
Just now do a diff for tapes in File12 and not in File1 and you
will get dirty tapes with no SSID.

HTH,

Thierry


> Hi,
>
> I've got tapes with no savesets on it.
> How can I query those ones ?
>
> mminfo -s <servername>
> -r'volume(8),written,%used,next,nrec,savesets,first,last,volflags,volaccess,olabel,labeled,volexp'
> -q'location=<Tapelibrary>'
>
> doesn't show me the Tape. (because there is no saveset on it),
>
> But:
>
> mminfo -s <servername>  -r
> 'volume(8),written,%used,next,nrec,volflags,volaccess,olabel,labeled,volexp'
> -q'location=<Tapelibrary>'
>
> lists the Tape with:
>
> DLD882    38 GB full  196 3013      11/23/03 12/06/01 11/22/03 11/21/05
>
> Any query concerning information about savesets fails to list the tape
> (naturally ok)
>
> I know Networker would recycle the tape if the retention policy is setup
> for a shorter period.
>
> ______________________________
> CSC Managed Services
> Account Marconi
> Gerberstr.33  71522 Backnang
> Tel:  +49 (0)7191 13 - 2240
> Fax: +49 (0)7191 13 - 6 2240
>
> --
> 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. Questions regarding this list
> should be sent to stan AT temple DOT edu
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
>

--
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. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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