Networker

Re: [Networker] nsrstage <--mminfo output

2004-06-03 12:22:05
Subject: Re: [Networker] nsrstage <--mminfo output
From: "Dorn, Jeffrey T. Jr." <jdorn AT GPO DOT GOV>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Thu, 3 Jun 2004 11:34:11 -0400
I don't know of a way to force mminfo to suppress that header, but you could
rewrite your script using sed to eliminate the first line, something like

mminfo -av -r ssid,cloneid -q 'savetime>yesterday,volume=nwdisk.001' | \
sed -n '2,2p' | awk '{print $1"/"$2}' | nsrclone ... -f -

Or, as you had it

mminfo -av -r ssid,cloneid -xc/ -q 'savetime>yesterday,volume=nwdisk.001' |\
sed -n '2,2p' | nsrclone ... -f -

Hope that helps

Jeff

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTMAIL.TEMPLE DOT EDU] 
On
Behalf Of Paula Ehn
Sent: Thursday, June 03, 2004 11:21 AM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: [Networker] nsrstage <--mminfo output


Hi gang!

I'm looking at switching from tape to tape cloning to Disk Backup and
staging.

I figured out most of what I need but is there a way to supress the header
line that is generated by mminfo when making a specific query?

For instance if I use the following:

mminfo -av -r ssid,cloneid -xc/ -q 'savetime>yesterday,volume=nwdisk.001'

The first line that appears is:

ssid/cloneid

Must I resort to a small script to write the output of the mminfo command to
a
file, then strip off the first line in the file before giving the file to
the
nsrstage command?

Thanks!
Paula
 -----------------------------------------------------------------
| Paula Ehn  VE4MHZ/VE4HZ                    Room 624 Eng.        |
| Unix System Administrator                  pehn AT cc.umanitoba DOT ca |
| Academic Computing and Networking          (204)474-7849        |
| University of Manitoba                     Fax: (204) 474-7920  |
 -----------------------------------------------------------------

--
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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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