Skip to main content

Utils.SSH

class Utils.SSH

Method Inventory

Methods

classmethod GetFileInfo(sftp As %Net.SSH.SFTP, filename As %String, ByRef datetime, ByRef size, ByRef delta) as %Status
sftp input is a %Net.SSH.SFTP that has already been connected to a server
classmethod GetSFTPObject(server="", verbose=1, username="", password="") as %Net.SSH.SFTP
Returns an instance of %Net.SSH.SFTP that is connected to a server and is ready for use. For use in retrieving files from and examining files on other servers (Algolia feeder files, report files).
classmethod GetSSHConnection(server As %String, username As %String = "", password As %String = "", verbose As %Integer = 0) as %Net.SSH.Session
Return SSH connection to the given server, using username and password args for authentication. For direct use in getting disk use and also for indirect use, via GetSFTPObject().
FeedbackOpens in a new tab