Networker

Re: [Networker] delete tape numbers from the media db?

2012-03-01 11:55:49
Subject: Re: [Networker] delete tape numbers from the media db?
From: Chester Martin <cmartin AT SPP DOT ORG>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 1 Mar 2012 10:55:19 -0600
Hello,
Yes, there is, but be very careful with this command.

nsrmm -d VOLUMEID

You can also do:
nsrmm -y -d VOLUMEID

The "-y" suppresses the confirmation prompt, usually used for deleting multiple 
volumes using a script.  

I had to remove multiple volumes on an edl and this is what I used.  I also 
created a file called "media" with 1 volume name per line.  I echoed out the 
actual delete line to test first... :)

-------------
#!/bin/bash

echo ******** DO NOT RUN THIS SCRIPT UNLESS YOU ARE 100% SURE YOU WANT TO 
DELETE THE MEDIA!!!!!!!! *********
cat /scripts/media/delmedia/media |while read MEDIA

do
  echo "nsrmm -y -d $MEDIA"
#  nsrmm -y -d $MEDIA
done
-------------

-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On 
Behalf Of brainofa
Sent: Thursday, March 01, 2012 10:40 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] delete tape numbers from the media db?

Is there some sort of script or command that can do this? I'm on a Linux 
Networker server running 7.6.3.

+----------------------------------------------------------------------
|This was sent by andrew.j.wendler AT questdiagnostics DOT com via Backup 
Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

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

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