junos_get_config¶
Synopsis¶
Added in version 1.2.0
Retrieve the configuration of a device running Junos and save it to a file. Note unicode chars will be converted to ‘??’ as also done in PyEZ
Options¶
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| dest | yes | None |
Path to the local server directory where configuration will be saved. |
|
| filter | no | None |
Defines heircachy of configuration to retrieve. If omitted entire configuration is retrieved. Format is slash notation ex groups/routeinst/routing-instances/ISP-1 |
|
| format | no | text |
|
text - configuration saved as text (curly-brace) format xml - configuration saved as XML |
| host | yes |
Set to {{ inventory_hostname }} |
||
| logfile | no | None |
Path on the local server where the progress status is logged for debugging purposes |
|
| options | no | None |
Additional options to pass to get_config. Refer to jnpr.junos.rpcmeta.get_config for details. |
|
| passwd | no | assumes ssh-key active |
Login password |
|
| port | no | 830 |
TCP port number to use when connecting to the device |
|
| user | no | $USER |
Login username |
Important
Requires junos-eznc >= 1.2.2