Documentation ¶
Index ¶
- func AbsPath() string
- func NtpServer(addr string)
- func ShellExecuteRemote(ip, port, user string, password interface{}, cmdStr string) (string, error)
- func ShellExecuteRemoteStream(ip, port, user string, password interface{}, cmdStr string) error
- func ShellScpRemote(ip, port, user string, password interface{}, src, dest string) (string, error)
- func TelnetConnTest(ipPortSlice []string, result chan []byte)
- type NtpMsg
- type NtpMsgRemote
- type NtpNetResult
- type TelnetTestMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShellExecuteRemote ¶
执行远程shell指令
func ShellExecuteRemoteStream ¶
执行远程shell指令(流式输出结果)
func ShellScpRemote ¶
func TelnetConnTest ¶
Example: $ ./op-tools mod telnet test from=str 172.16.4.128:22 172.16.4.129:22
Types ¶
type NtpMsgRemote ¶
type NtpMsgRemote struct { Code int `json:"code"` Message interface{} `json:"message"` }
type NtpNetResult ¶
type TelnetTestMsg ¶
Click to show internal directories.
Click to hide internal directories.