Added in version 1.8
Manages SNMP target host 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 TagetHost comware_snmp_target_host: state=absent target_type=trap server_address=10.1.1.1 usm_user_name=Uv3 sercurity_model=v3 security_level=authentication vpnname=testvpn username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: Undo SNMP v3 TagetHost comware_snmp_target_host: state=absent target_type=trap server_address=10.1.1.1 usm_user_name=Uv3 vpnname=testvpn username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: Config SNMP TagetHost comware_snmp_target_host: state=present target_type=trap server_address=100.1.1.1 usm_user_name=testuv2c sercurity_model=v2c username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: Undo SNMP TagetHost comware_snmp_target_host: state=present target_type=trap server_address=100.1.1.1 usm_user_name=testuv2c sercurity_model=v2c vpnname=testvpn username={{ username }} password={{ password }} hostname={{ inventory_hostname }}