jcs:open() Function
Syntax
var $connection = jcs:open(remote-hostname, username, passphrase)
Description
Return a connection handle that can be used to execute remote procedure calls (RPCs) using the jcs:execute() extension function. The connection handle is closed with the jcs:close() function.
Parameters
- passphrase—User’s login password.
- remote-hostname—Domain name or IP address of the remote router, switch, or security device. If you are opening a local connection, do not pass this value.
- username—User’s login name.
Return Value
- $connection—Connection handle to the remote host.
The following example shows how to connect to a local device:
var $connection = jcs:open()
The following example shows how to connect to a remote device:
var $connection = jcs:open(remote-hostname)
The following example shows how the user bsmith with a passphrase password obtains a connection handle to the server fivestar:
var $connection = jcs:open("fivestar", "bsmith", "password");
Hide Navigation Pane
Show Navigation Pane
Download
SHA1