Cisco Systems OL-27172-01 Mobility Aid User Manual


 
20-4
Cisco Broadband Access Center 3.8 Administrator Guide
OL-27172-01
Chapter 20 Cisco BAC Support Tools and Advanced Concepts
Using the disk_monitor.sh Tool
Following a successful export from the Cisco BAC backup database, the Device Export tool creates a
device file, which contains the list of device records that are successfully exported from the Cisco BAC
backup database. The filename is bac-device-details-yyyyMMdd-HHmmss.csv:
Where yyyyMMdd-HHmmss identifies the time the file was generated.
Using the disk_monitor.sh Tool
Monitoring available disk space is an important system administration task. You can use a number of
custom written scripts or commercially available tools to do so. The disk_monitor.sh tool is a sample
tool to accomplish this.
The disk_monitor.sh tool, located in the BPR_HOME/rdu/sample/tools directory, sets threshold values
for one or more file systems. When these thresholds are surpassed, an alert is generated through the
syslog facility, at 60-second intervals, until additional disk space is available.
Note Cisco recommends that, at a minimum, you use the disk_monitor.sh script to monitor the BPR_DATA
and BPR_DBLOG directories.
Syntax Description
# ./disk_monitor.sh file system-directory x
file system-directory—Identifies any directory in a file system to monitor.
x—Identifies the percentage threshold applied to the specified file system.
Example 20-4 Monitoring Disk Space
Assume that you want to be notified when a file system (/var/CSCObac, for example) with database logs
reaches 80% of its capacity. Enter the command:
# ./disk_monitor.sh /var/CSCObac 80&
When the database logs disk space reaches 80% capacity, an alert is sent to the syslog file:
Dec 7 8:16:03 perf-u80-1 BPR: [ID 702911 local6.warning] File system /var/bpr usage is 81%
(threshold is 80%)
Note Make sure to configure Solaris or Linux to this on start-up, so that it is started after system reboots
automatically.