O'Reilly logo

Essential SNMP by Kevin Schmidt, Douglas Mauro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Disk-Space Checker

OpenView’s agent has a fileSystemTable object that contains statistics about disk utilization and other filesystem parameters. At first glance, it looks extremely useful: you can use it to find out filesystem names, blocks free, etc. But it has some quirks, and we’ll need to play a few tricks to use this table effectively. Walking fileSystemTable.fileSystemEntry.fileSystemDir (.1.3.6.1.4.1.11.2.3.1.2.2.1.10) lists the filesystems that are currently mounted:[66]

[root][nms] /opt/OV/local/bin/disk_space> snmpwalk spruce \
            .1.3.6.1.4.1.11.2.3.1.2.2.1.10 fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680064.1 : DISPLAY STRING- (ascii): / fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680067.1 : DISPLAY STRING- (ascii): /var fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680068.1 : DISPLAY STRING- (ascii): /export fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680069.1 : DISPLAY STRING- (ascii): /opt fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680070.1 : DISPLAY STRING- (ascii): /usr fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.41156608.1 : DISPLAY STRING- (ascii): /proc fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.41680896.1 : DISPLAY STRING- (ascii): /dev/fd fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.42991617.1 : DISPLAY STRING- (ascii): /net fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.42991618.1 : DISPLAY STRING- (ascii): /home fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.42991619.1 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required