Re: [Networker] Run a script when a group completes?
2008-08-14 05:24:36
It's not very difficult :
You make a notification on event Savegroup, on priority alert/notice with a
script as action.
In the script, the first action to do is to capture the data from Networker
which is "standard output" like with a "tee -a $LOG" and you work with the $LOG.
Cordialement,
Matthieu Chaussoy
DSI - Production
Tel. : (+33) 1 70 18 31 68 - Cell. : (+33) 6 28 09 87 43
neuf cegetel
40-42 Quai du Point du Jour - 92659 Boulogne-Billancourt Cedex
www.groupeneufcegetel.fr
-----Message d'origine-----
De : EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] De
la part de Preston de Guise
Envoyé : jeudi 14 août 2008 11:02
À : NETWORKER AT LISTSERV.TEMPLE DOT EDU
Objet : Re: [Networker] Run a script when a group completes?
> trey85stang wrote:
>> I am kind of new to networker and I have a group (a few actually)
>> that I would like to run a post script (on the networker server)
>> when it completes.
>> Is this possible at all? version is 7.4 if that matters.
>
> Yes it's possible. You run the script from the savegroup completion
> notification. Actually you could create a new notification for this,
> and there are levels in the notification setting that you can tweak
> too. For instance you could run it only for failed groups, or only
> for successful groups etc.
>
> The script can parse the text of the notification and act
> accordingly. For example you can extract the group name and do
> different things for different groups.
Much simpler suggestion, thanks Davina. I tend to think of savegroup
completion notifications for email and monitoring, not from that
perspective.
--
Preston de Guise
"Enterprise Systems Backup and Recovery: A Corporate Insurance
Policy", due out September 17 2008:
http://www.crcpress.com/shopping_cart/products/product_detail.asp?sku=AU6396&isbn=9781420076394&parent_id=&pc=
http://www.enterprisesystemsbackup.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
|
|
|