This solution will show you how to configure a Linux postscript to generate the last hour of logs for the job that runs the postscript.
Attached to this solution is a file named logscript.tgz that contains several files that will be needed.
Using the default report classes to pull log messages will create a heavy load on the NetVault Backup server. The logsnow file is a special class that reduces the load on NetVault Backup by limiting the query to logs within the last hour.
The logsnowclidefault file is a default template required to use the new class created by the logsnow file with the “nvreport -class” command.
The joblogs.sh file is the post-script to configure in the advance options of your jobs.
Download the logscript.tgz attachment on this Solution.
logsnow – Copy to <NetVault Home>/reports/classes
logsnowclidefault – Copy to <NetVault Home>/reports/templates
joblogs.sh – Copy to <NetVault Home>/scripts on all client that will be running the post-script
Edit the joblogs.sh script to change -server option of nvreport to specify the name of your NetVault Backup server as it appears in Manage Clients.
Edit the joblogs.sh script to change -d option of the nvsendmail command with the e-mail address you want the e-mails sent to.
Also configure e-mail notification on clients that will be running the script as described in the “Configuring email server settings for notifications” section of the NetVault Backup Administrators guide.