.. _junos_rpc: junos_rpc - run given rpc +++++++++++++++++++++++++ :Author: Nitin Kumar, Juniper Networks .. contents:: :local: :depth: 1 Synopsis -------- .. versionadded:: 1.9 run given rpc Options ------- .. raw:: html
parameter | required | default | choices | comments |
---|---|---|---|---|
dest | no | None | Path to the local server directory where configuration will be saved. | |
filter_xml | no | This options can be used with get-config rpc only, to retrieve specific config | ||
format | no | xml |
|
text - configuration saved as text (curly-brace) format. xml - configuration saved as XML. json - configuration saved as json, supported only for devices >=14.2 Also with this format, rpc_reply attribute can be used with results |
host | yes | Set to {{ inventory_hostname }} | ||
kwargs | no | params need to be passed to rpc kwargs="interface_name=em0" or kwargs="interface_name=em0,media=True" kwargs={interface_name:em0} kwargs={interface_name:em0,media:True} kwargs={interface_name:em0,media:True} | ||
logfile | no | None | Path on the local server where the progress status is logged for debugging purposes. This option is used only with the console option. | |
mode | no | None | mode of console connection (telnet/serial). If mode is not provided SSH connection is used. | |
passwd | no | assumes ssh-key active | Login password | |
port | no | 830 | port number to use when connecting to the device | |
rpc | no | rpc to be executed | ||
ssh_private_key_file | no | None | This can be used if you need to provide a private key rather than loading the key into the ssh-key-ring/environment. if your ssh-key requires a password, then you must provide it via **passwd** | |
timeout | no | 0 | Set the NETCONF RPC timeout. Set this value to accommodate Cli commands that might take longer than the default timeout interval. Setting to 0 will use the PyEZ default (30 seconds). | |
user | no | $USER | Login username |