#snmp user netapp ansible playbook

1 messages · Page 1 of 1 (latest)

violet tinsel
#

Hello experts,

I'm not able to create an snmp user with authentication method "usm"using ansible module "netapp.ontap.na_ontap_user" as its asking to provide invalid authentication protocol. is there a separate module for snmp user creation with above attributes?

netapp.ontap.na_ontap_user:
state: present
name: <name>
applications: snmp
authentication_methond: usm
role_name: readonly
authentication_protocol: none

eternal bloom
violet tinsel
#

thanks will try it out

rich trout
#

We have a story for snnpv3 user but I don’t have an eta when that will go live.

violet tinsel
#

ok thanks, any comments on other issue i encounterd?

rich trout
#

could you show me the erorr it giveing you

green galleon
# violet tinsel ok thanks, any comments on other issue i encounterd?

You should be able to create SNMPv3 user using na_ontap_user module. I have already implemented it and it works fine.
Sharing the task here-

  • name: Configure SNMPv3 user
    netapp.ontap.na_ontap_user:
    vserver: "{{cluster_name}}"
    name: "{{user}}"
    state: present
    role_name: admin
    applications: snmp
    authentication_method: usm
    authentication_protocol: "{{authentication_protocol}}"
    authentication_password: "{{authentication_password}}"
    privacy_protocol: "{{privacy_protocol}}"
    privacy_password: "{{privacy_password}}"
    hostname: "{{inventory_hostname}}"
    username: "{{username}}"
    password: "{{password}}"
    https: true
    validate_certs: false
    when: enable_snmp == true
    tags:
    • ontap_config_snmpv3_user

Here, authentication method is "usm", and it works well for all authentication protocols, be it none, md5, sha, or sha2-256