How does the cdm probe collect info on file system availability and utilization

Document ID : KB000034359
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

How does the cdm probe collect info on file system availability and utilization

 

Answer:

Windows

Disk volumes are enumerated using the FindFirstVolume, FindNextVolume, and
FindVolumeClose calls. GetVolumePathNamesForVolumeName is used to map vloume
name to drive letter. GetDiskFreeSpaceEx or GetDiskFreeSpace are used to collect disk size and usage. Share connectivity is checked by attempting to map the drive, using netAddConnection2

AIX
The list of mounted filesystems is found using the system call mntctl(). Space usage on
the filesystems is found using the system call statfs().

HP-UX
The list of mounted filesystems is found using the system call getmntent(). Space usage
on the filesystems is found using the system call statvfs().

Linux
The list of mounted filesystems is found using the system call getmntent(). Space usage
on the filesystems is found using the system call statvfs().

Solaris
The list of mounted filesystems is found using the system call getmntent(). Space usage
on the filesystems is found using the system calls statvfs() on 64bit platforms and
statvfs64() on 32bit platforms.

Tru64
The list of mounted filesystems is found using the system call getfsstat(). Space usage on
the filesystems is found using the system call statfs().