Agent functions

The value of the Operations attribute for this agent is OnOff.

AIX, HP-UX, and Solaris: For a file system, it mounts a block device on the directory. If the mount process fails, the agent attempts to run the fsck command on the raw device to remount the block device.

For the NFS client, it mounts a remote NFS file system to a specified directory. The remote NFS file system is specified in the BlockDevice attribute.

Linux: Mounts a block device on the directory. If the mount process fails for non-nfs mounts, the agent attempts to run the fsck command on the device to remount the block device. If filesystem type is NFS, agent mounts the remote NFS file system to a specified directory. The remote NFS file system is specified in the BlockDevice attribute.

Determines if the file system or NFS client is mounted.

AIX and Solaris: Checks mount status using the stat and statvfs commands for the file system. Use the mount comand for for the NFS client mount.

The Mount info agent function executes the command:

AIX and Solaris:

df -k mount_point

Linux:

df -h mount_point

HP-UX:

bdf mount_point

The output displays Mount resource information:

Size Used Avail Use%

To initiate the info agent function, set the InfoInterval timing to a value greater than 0. In this example, the info agent function executes every 60 seconds:

haconf -makerw

hatype -modify Mount InfoInterval 60

The command to retrieve information about the Mount resource is:

hares -value mountres ResourceInfo

Output includes:

Size 2097152

Used 139484

Available 1835332

Used% 8%