Forum Discussion

KeirL's avatar
KeirL
Level 6
12 years ago
Solved

NetBackup Appliance send mail command line syntax

Hi all

Does anyone know a command line to send an email directly from a NetBackup Appliance (5230 running 2.5.4)? If this works at all I guess it will involve going into maintenance and elevating to SU. I've configured opscentre and set up the SMTP server within the appliance and this all works fine. But I was hoping to run a daily report to show the 'media written' for last nights backups - so I can easily identify the tapes to remove from the library.

I think this report is only available with Opscentre analytics and I don't want to buy a licence just to get such a fundamental report to tell me which tapes NetBackup used. I can run the report manually from within the NBU admin console and run a bpimagelist -U but wouls like to set up some kind of cron job to email this report everyday.

Am I missing something or have Symantec recently prevented customers from emailing what I'd consider a vital daily report unless they buy the Opscentre Analytics licence?

kind regards

Keir 

  • This is a short script I have for sending the nbstluitil report output to me. I then put it in a cron job to run every day. The important things to remember:

    1. You need the path to the binary you are using.

    2. You need to specify the path for output

    If you want you can attach the file. I chose to cat it to mailx because I hate opening attachments and the output is not so big.

    #!/bin/bash

    NOW=$(date +"%m%d%y-%H%M")

    FILE="/var/tmp/slp/nbstlutil-report$NOW.txt"

    /usr/openv/netbackup/bin/admincmd/nbstlutil report > $FILE

    cat $FILE|mailx -r put.your.sender.here@whatever.com -s "SLP Backlog Report" recip.one@domain.com recip.two@domain.co

     

16 Replies