Last Updated: October 01, 2016
·
253
· wapmorgan

RemoteServer

RemoteServer

  • #openSsh(ip, user, [password])
  • #openTelnet(ip, user, password)
  • __construct(Connection $conn)
  • getUptime()
  • getSoftware()
  • getActiveUsers()
  • isFileExists()
  • getFileContents()
  • getCpuLoad()
  • getFreeMemory()
  • getAvailableStorage()
  • getLoad()
  • isProcessRunning()
  • countOpenPorts()
  • countOpenConnections()
  • countProcesses()
  • hasRootAccess()
  • reboot()
  • powerOff()
  • executeCommand(command, bool delayExecution) : Command

Command

  • getInput() : WriteableStream
  • getOutput() : ReadableStream
  • getErrors() : ReadableStream
  • isFinished()
  • interrupt(signal)
  • executionTime
  • resultCode

WriteableStream

  • writeLine(line)
  • write(string)

ReadableStream

  • readLine()
  • countLines()
  • isEnd()