.. _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} | ||
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. | |
passwd | no | assumes ssh-key active | Login password | |
rpc | no | rpc to be executed | ||
user | no | $USER | Login username |