Core API 6.4

net.juniper.smgt.sae.router.command
Interface CommandChannel

All Known Implementing Classes:
UnsupportedCommandChannel

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

SYNTAX_JUNOSCRIPT

public static final String SYNTAX_JUNOSCRIPT
command channel syntax

See Also:
Constant Field Values

SYNTAX_SNMP

public static final String SYNTAX_SNMP
See Also:
Constant Field Values
Method Detail

pushCommand

public Response pushCommand(String command,
                            int timeout)
                     throws CommandException
send the command to network device.

Returns:
Response, the response message from network device.
Throws:
CommandException, - thrown if anything failed.
CommandException

isSupported

public boolean isSupported()
Check if command channel is available

Returns:
true if command channel is available

getCommandSyntax

public String getCommandSyntax()
Get command channel syntax

Returns:
one of the command syntax e.g. 'JUNOScript', 'JUNOSe_SNMP'

Core API 6.4