search cancel

How does the cdm probe check if a filesystem is available?

book

Article ID: 201338

calendar_today

Updated On:

Products

CA Unified Infrastructure Management SaaS (Nimsoft / UIM) DX SaaS DX Unified Infrastructure Management (Nimsoft / UIM) Unified Infrastructure Management for Mainframe

Issue/Introduction

Need to know exactly how UIM / DX IM checks if a filesystem is available. Is it trying to access the file system using specific commands, looks for specific string, or does a ping etc.?

Environment

Release : 9.X OR higher

Component : UIM - CDM WITH IOSTAT

Resolution

cdm

Windows

Disk information
Disk volumes are enumerated using the FindFirstVolume, FindNextVolume, and  FindVolumeClose calls. GetVolumePathNamesForVolumeName is used to map volume 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.

 

UNIX/LINUX

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().