UNSOLVED

MattWilby

updated

19 years ago

M

MattWilby

17 Posts

0

992

December 1st, 2007 04:00

Adding Groupname into savegrp completion email

Hi,

Is it possible to add the Group name into the save group completion emails?

We have lot's of groups, would be easier to look for a specific completion report with something in the subject field.

Thanks.
  • ble1

    6 Operator

    14354 Posts

    56186 Points

    472

    0

    Posted December 1st, 2007 10:00

    I do not use those notifications, but I thought name was already part of savegrp notification...
  • MattWilby

    17 Posts

    472

    0

    Posted December 2nd, 2007 02:00

    No, just says "savegroup completion" with no mention of the group name. If you're looking for a particular group it's a real pain.....
  • ble1

    6 Operator

    14354 Posts

    56186 Points

    472

    0

    Posted December 2nd, 2007 02:00

    Are you talking about subject line of email or what is inside email?
  • MattWilby

    17 Posts

    472

    0

    Posted December 2nd, 2007 04:00

    Sorry, I wasn't very clear. Subject line.
  • wobergeh

    3 Posts

    472

    0

    Posted December 4th, 2007 00:00

    I'm using the following filter:
    __________________________
    DAY_OF_MONTH=`date '+%d'`
    cat > /tmp/$DAY_OF_MONTH.lgtoMail
    RCPT=$1
    SUBJECT=`head -1 /tmp/$DAY_OF_MONTH.lgtoMail`
    /usr/ucb/mail -s "$SUBJECT" $RCPT < /tmp/$DAY_OF_MONTH.lgtoMail
    __________________________

    which gives e.g. this subject line:

    "NetWorker savegroup: (notice) NDMP completed, total 1 client(s), 0 Hostname(s) Unresolved, 0 Failed, 1 Succeeded. "

    Just save the above filter as executable script and update the action in the savegrp completion notification accordingly