Utils.GetServerInfo
class Utils.GetServerInfo
This class is responsible for getting information from/about the doc. serversMethod Inventory
- ArchiveDirs()
- GetDirectBaseURL()
- GetIsOnCodeReload()
- GetIsOnDailyLoad()
- GetServerGroup()
- GetServerListForReporting()
- GetServerTimes()
- HasDocBookJ()
- HasExeFile()
- PromptForServerCredentials()
Parameters
parameter FILETOCHECK = /staging/learning/website/landing/index.html;
Methods
classmethod ArchiveDirs(verbose As %Boolean = 1)
look at what we have locally for each server
and ask whether to move anything that doesn't match instance inventory
classmethod GetIsOnCodeReload(instanceName As %String, hostName As %String, instanceProduct As %String) as %Boolean
classmethod GetIsOnDailyLoad(instanceName As %String, hostName As %String, instanceProduct As %String) as %Boolean
classmethod GetServerTimes(username As %String = "", password As %String = "", verbose As %Boolean = 1)
classmethod HasDocBookJ(sftp As %Net.SSH.SFTP = "", server As %String = "", instancedirectory As %String = "")
Utility method. This method checks to see if there is a /csp/docbookj directory
in instancedirectory. If there is, the method returns 1. Otherwise it returns 0.
classmethod HasExeFile(sftp As %Net.SSH.SFTP = "", server As %String = "", instancedirectory As %String = "", verbose As %Boolean = 1)
Utility method. This method checks to see if there is a
cache.exe or iris.exe file in instancedirectory/bin. If there is, the method returns 1.
If there is no .exe file, the method returns 0.
classmethod PromptForServerCredentials()