Added in version 1.8
Manages SNMP group 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 group" comware_snmp_group: state=present version=v2c group_name=wdz_group security_level=noAuthNoPriv acl_number=2000 username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: "Undo SNMP group" comware_snmp_group: state=absent version=v2c group_name=wdz_group security_level=noAuthNoPriv acl_number=2000 username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: Config SNMP V3 group comware_snmp_group: state=present group_name=test_wl version=v3 security_level=authentication acl_number=3000 write_view='testv3c' username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: Config SNMP V3 group comware_snmp_group: state=absent group_name=test_wl version=v3 security_level=authentication acl_number=3000 write_view='testv3c' username={{ username }} password={{ password }} hostname={{ inventory_hostname }}