|
Core API 7.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommandChannel
This class is used to send command to network device.
Field Summary | |
---|---|
static String |
SYNTAX_JUNOSCRIPT
command channel syntax |
static String |
SYNTAX_SNMP
|
Method Summary | |
---|---|
String |
getCommandSyntax()
Get command channel syntax |
boolean |
isSupported()
Check if command channel is available |
Response |
pushCommand(String command,
int timeout)
send the command to network device. |
Field Detail |
---|
static final String SYNTAX_JUNOSCRIPT
static final String SYNTAX_SNMP
Method Detail |
---|
Response pushCommand(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()
String getCommandSyntax()
|
Core API 7.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |