![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: Q: How to obtain the mountcnt of disks as shown in SHOW DEVICE (last column) not using SHOW DEVICE /OUTPUT etc... Extra info: SYS$GETDVI, item DVI$_MOUNTCNT returns only 0 or 1 depending on the device being mounted on the current node or not. any hints for a correct solution? The purpose is to check a system for correctness. i.e. are devices mounted everywhere in a cluster are shadow sets valid (correct volumes mounted on correct disks etc...) The Answer is : There is no direct means of obtaining the MOUNTCNT as displayed by SHOW DEVICE, as there is no programming interface to this information. The SHOW DEVICE code directly traverses kernel-mode data structures, counting up the numbers. Rather than using the approach that you presently seek, the Wizard suggests the use of a site-customized version of the DCL command procedure SYS$EXAMPLES:MSCPMOUNT.COM.
|