public interface CommandChannel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYNTAX_JUNOSCRIPT
command channel syntax
|
static java.lang.String |
SYNTAX_SNMP |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandSyntax()
Get command channel syntax
|
boolean |
isSupported()
Check if command channel is available
|
Response |
pushCommand(java.lang.String command,
int timeout)
send the command to network device.
|
static final java.lang.String SYNTAX_JUNOSCRIPT
static final java.lang.String SYNTAX_SNMP
Response pushCommand(java.lang.String command, int timeout) throws CommandException
command,
- command line for specific network device,
e.g. for Junos router, it should be Junos script
in XML format.timeout,
- time out before response arrived,
if it is -1, the router default timeout will be used.CommandException,
- thrown if anything failed.CommandException
boolean isSupported()
java.lang.String getCommandSyntax()