Networker

Re: [Networker] How to create event notification for required tapes?

2004-09-27 16:33:03
Subject: Re: [Networker] How to create event notification for required tapes?
From: George Sinclair <George.Sinclair AT NOAA DOT GOV>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 27 Sep 2004 16:37:36 -0400
Thanks! I'll take a look at it.

George

Dave Mussulman wrote:
>
> It's attached.  You'll need to update it for your perl location, your
> email addresses, and potentially for the message it provides (mine deals
> with dlt7000 tapes.)  If in doubt, turn on the debugging at the top that
> will email you the output the script gets, and then adjust the rest of
> the program around that.
>
> Action should be whereever you put the script on your system.
>
> Event is media, Priority is waiting.
>
> I'm not sure if this part handles needing tapes where no available ones
> are in the jukebox or not, but I know I get notifications for that.  If
> this doesn't work for you in that way, let me know and I'll look deeper
> and see where I trap that.
>
> Dave
>
> On Mon, Sep 27, 2004 at 01:31:23PM -0400, George Sinclair wrote:
> >
> > Thanks for your reply, David. Yes, I could use that script. If you could
> > send me a copy, that would help me out.
> >
> > A few questions:
> >
> > 1. What should the "Action" field syntax be for invoking the script?
> > 2. I assume the "Event" and "Priority" values should remain 'media' and
> > 'Waiting' respectively?
> > 3. Is there a way to do a similar scenario when a backup is requesting a
> > writable tape and there are no available tapes in the library?
> >
> > Thanks.
> >
> > George
> >
> >
> > Dave Mussulman wrote:
> > >
> > > On Fri, Sep 24, 2004 at 11:42:48AM -0400, George Sinclair wrote:
> > > > How can I create an event notification that will email me to let me know
> > > > that one or more tapes need to be loaded for a recovery and are not
> > > > currently loaded?
> > > >
> > > > I tried creating a custom notification named: 'Tape mount request' with
> > > >
> > > > Action = /usr/ucb/mail -s subject recipient
> > > > Event = 'media'
> > > > Priority = 'Waiting'
> > > >
> > > > This works like a champ but unfortunately it also emails me when a
> > > > backup is waiting for a writable tape. This wouldn't be so bad if there
> > > > were no writable tapes available, but there were, so it was just waiting
> > > > for it to load. How can I set this up so I only get the message when a
> > > > recovery is waiting for a tape(s) that's not loaded in the library?
> > >
> > > I run the action from the notification described above into a perl
> > > script, which takes the volume name out of the notication and searches
> > > for it in the 'nsrjb -C' output.  If it doesn't find it, it sends email,
> > > otherwise it quietly exits.  This solved the problem of getting emails
> > > for tapes that were already in the jukebox.  If you need the script, let
> > > me know and I'll forward you a copy.
> > >
> > > Dave
>
>   ------------------------------------------------------------------------
>
>    tape-mount-notify.plName: tape-mount-notify.pl
>                        Type: Plain Text (text/plain)

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