Servidor remoto

Servidor remoto

  • #openSsh (ip, usuário, [senha])
  • #openTelnet (ip, usuário, senha)
  • __construct (conexão $ conn)
  • getUptime ()
  • getSoftware ()
  • getActiveUsers ()
  • isFileExists ()
  • getFileContents ()
  • getCpuLoad ()
  • getFreeMemory ()
  • getAvailableStorage ()
  • getLoad ()
  • isProcessRunning ()
  • countOpenPorts ()
  • countOpenConnections ()
  • countProcesses ()
  • hasRootAccess ()
  • reiniciar ()
  • desligar()
  • executeCommand (comando, bool delayExecution): Command

Comando

  • getInput (): WriteableStream
  • getOutput (): ReadableStream
  • getErrors (): ReadableStream
  • está terminado()
  • interromper (sinal)
  • tempo de execução
  • resultCode

WriteableStream

  • writeLine (linha)
  • escrever (string)

ReadableStream

  • Leia a linha()
  • countLines ()
  • eu envio()