OpCenter Analytics - Capacity Reporting for 30 Days
I have a customer who is insisting there be a way to truncate the default 90-day Capacity report to 30 days without any scripting and in a single-push button method. We've tried the following to no avail:
- /usr/openv/netbackup/bin/admincmd/nbdeployutil --gather --traditional --hoursago=720 –output=<folder name of your choice > --exclude-all-cli
- Modifying the PURGE_INTERVAL=30 in nbdeployutilconfig.txt
- for i in 'cat filename'
do
mkdir /tmp/nbdeploy/$i
echo $i >/tmp/nbdeploy/$i/master.txt
/usr/openv/netbackup/bin/admincmd/nbdeployutil --master $i --gather --capacity --hoursago=720 –output=/tmp/nbdeploy/$i --exclude-all-clients
/usr/openv/netbackup/bin/admincmd/nbdeployutil --master $i --capacity --report /tmp/nbdeploy/$i --output=/tmp/nbdeploy/$i
done
Bullets one and two returned 90 days. Bullet three was not the customer's preferred method. The config file is the closest to what the customer wants. I noticed there is a 'minimum value' that can be defined in the file, but where?
Excerpt from https://www.veritas.com/support/en_US/doc/24437881-131832103-0/v120885038-131832103:
If fewer than 90 days is indicated, nbdeployutil uses 90 days as the value. Data that is older than 180 days is purged.
Data to be purged = current date - purge_interval.
Minimum value = 90 days.
Anyone know where I can modify that value? Or am I just chasing my tail and this can't be done?
HI KameliaB
I'm not sure why your original option 1 didn't work - that is the way to change how far backup the nbdeployutil will report.
I do note that the example you provided indicated "traditional" rather than capacity, but assume that this was just a typo. Also you still need to generate the repoort from the gathered data (so a two step process).
I have just tested this on a test system I have and using the --hoursago=720 doies restrict the "look back" to 30 days.
Your original option 2 - the purge interval relates to the smartmeter automatic reporting (using nbdeployutil incrementally each week) and cleaning up after this period of time - it does not change the "look back" value.
Option 3 looks to be what you intended in option 1 with both the gather and report commands used - but for multiple master servers.
The only one button approach I know of is using OpsCenter NetBackup Licensing report, (this can with a few clicks generate reports for all master servers monitiored. Not sure it is possible to alter the "look back" default of 90 days though. I do not believe it is a parameter that can be set in the nbdeployutilconfig.txt file.