Added in version 1.8
Back uo current configuration to the specified file
parameter | required | default | choices | comments |
---|---|---|---|---|
flash | no | |||
arcstate | no | absent |
|
The switch of backup |
filename | no | my_file | Backup file | |
replacefile | no | Rolling file | ||
repswitch | no |
|
Configure rollback switch | |
y_or_no | no |
|
Configure the switch to save the current configuration during rollback. | |
hostname | yes | IP Address or hostname of the Comware 7 device that has NETCONF enabled | ||
username | yes | Username used to login to the switch | ||
password | yes | Password used to login to the switch | ||
port | no | 830 | NETCONF port number | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# backup config to flash:/llld/ans.cfg (in flash) - comware_config: filename=ans arcstate=present filefolder=flash:/llld/ username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # rollback config to netconf.cfg and save the current configuration(in flash) - comware_config: repswitch=true replacefile=netconf.cfg y_or_no=y username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # rollback config to netconf.cfg and do not save the current configuration comware_config: replacefile=netconf.cfg repswitch=true y_or_no=n username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
This modules backup the config to specified file in specified flash.-You can use the specified file for configuration distribution.