Added in version 1.8
Manages SNMP community configuration on H3C switches.
parameter | required | default | choices | comments |
---|---|---|---|---|
hostname | yes | IP Address or hostname of the Comware v7 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/ |
- name: Config SNMP v3 User comware_snmp_user: state=present usm_user_name=gtest_w_ansbile sercurity_model=v3 user_group=gtest_w_ansbile auth_protocol=sha priv_protocol=3des auth_key=gtest_w_ansbile priv_key=gtest_w_ansbile username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: undo SNMP v3 User comware_snmp_user: state=absent usm_user_name=gtest_w_ansbile sercurity_model=v3 user_group=gtest_w_ansbile auth_protocol=sha priv_protocol=3des auth_key=gtest_w_ansbile priv_key=gtest_w_ansbile username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: Config SNMP v2c User comware_snmp_user: state=present usm_user_name=gtest_w_ansbile sercurity_model=v2c user_group=gtest_w_ansbile username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: undo SNMP v2c User comware_snmp_user: state=absent usm_user_name=gtest_w_ansbile sercurity_model=v2c user_group=gtest_w_ansbile username={{ username }} password={{ password }} hostname={{ inventory_hostname }}