DBMTables.Central.GetDiskUse
class DBMTables.Central.GetDiskUse
This class is responsible for retrieving disk use info from the doc. serversMethod Inventory
Methods
classmethod GetAllDiskUseInfo(username As %String = "", password As %String = "", verbose As %Boolean = 1) as %DynamicObject
Get disk use info for all servers, and return a json object (%DynamicObject) containing
serverName:diskUseInfoString pairs for all servers.
Sets ^SERVERDISKUSE("serverName") to the disk use string for that server, and
^SERVERDISKUSE("lastupdate") to the current date/time.
classmethod GetOneServerDiskUseInfo(ssh As %Net.SSH.Session, servername As %String, verbose As %Integer = 1) as %String
Return the string result of df -h / (on irisdocs servers) or df -lh (on all other servers),
which will contain relevant disk use information.
Since Windows doesn't use df, this method doesn't currently work there, the return from a server running Windows would be something like:
"'df' is not recognized as an internal or external command, operable program or batch file."
If an error occurs during processing that prevents collection of the disk use info,
the text of that error is returned.
Sets ^SERVERDISKUSE("servername") to the disk use string for this server, and
^SERVERDISKUSE("lastupdate") to the current date/time.