Information about cdm probe and ionode

book

Article ID: 193733

calendar_today

Updated On:

Products

NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

We need some information about the CDM probe and the Ionode.
Can you please tell us what is exactly the command used by the probe to retrieve the Ionode information?

Environment

Component : UIM - CDM WITH IOSTAT

Resolution

We are support "Inode" only in non-windows machine as shown below,

statfs() or statvfs() or statvfs64() system library functions are used to calculated QOS_INODE_USAGE all supported AIX5, HP_UNIX, Solaris and Linux platform
tru64_df_v5 or tru64_df_v2 system commands are used to calculated QOS_INODE_USAGE in Tru64 Unix platform


System Library Functional Prototype and Structure Variables:

AIX5 Platform: (Supported from Version 5)
Using statfs(const char *path, struct statfs *fsd) function

PATH: is the pathname of any file within the mounted filesystem
struct statfs fsd;
=> QOS_INODE_USAGE = PROPAGATE_ALL_ONES(fsd.f_files) - PROPAGATE_ALL_ONES(fsd.f_ffree)
=> inode_max_size = PROPAGATE_ALL_ONES(fsd.f_files)

HP_Unix and Linux Platforms:
Using "int statvfs(const char *path, struct statvfs *fsd);" function

PATH: is the pathname of any file within the mounted filesystem
struct statvfs fsd;
=> QOS_INODE_USAGE = PROPAGATE_ALL_ONES(fsd.f_files) - PROPAGATE_ALL_ONES(fsd.f_ffree)
=> inode_max_size = PROPAGATE_ALL_ONES(fsd.f_files)



Solaris Platform:
Using "int statvfs64(const char *path, struct statvfs64 *fsd);" or "int statvfs(const char *path, struct statvfs *fsd);" function
Note: statvfs64 used when _LARGEFILE64_SOURCE platforms

PATH: is the pathname of any file within the mounted filesystem
struct statvfs64 fsd; or struct statvfs fsd;
=> QOS_INODE_USAGE = PROPAGATE_ALL_ONES(fsd.f_files) - PROPAGATE_ALL_ONES(fsd.f_ffree)
=> inode_max_size = PROPAGATE_ALL_ONES(fsd.f_files)



Tru64 Unix Platform: =======> (Getting details from Command Line)
Using ./tru64_df_v5 or ./tru64_df_v2
PATH: is the pathname of any file within the mounted filesystem
=> QOS_INODE_USAGE = (fsd.f_files) - (fsd.f_ffree) (Copied last two values from command output fsd.f_files and fsd.f_ffree)
=> inode_max_size = (fsd.f_files)