The Question is:
Questions on how to query system information programmatically. If the OS can
show it on screen, there must be a better way (DCL or system service call)
than parsing the screen output.
1. Device mount count, i.e. the number in the last column from SHOW DEVICE. Is
lexical F$GETDVI(device, "MOUNTCNT") supposed to do this job? It always return
1 to me.
2. Shadow copying / merging percentage complete. I don't find anything other
than true or false of copying / merging.
The Answer is :
There is no documented API available for the cluster-wide mount
count displayed by SHOW DEVICE, only an API for acquiring the
node-specific mount count. There is also no documented API
available for reporting the shadowing completion percentage.