jeisenbath / ansible-collection-solarwinds-orion

An Ansible collection for managing nodes in Solarwinds Orion
10 stars 1 forks source link

update_node module ability to update polling method to SNMPv3 #14

Open Andyjb8 opened 7 months ago

Andyjb8 commented 7 months ago

Can the solarwinds.orion.orion_update_node module update a node that is currently using polling method of ICMP to SNMPv3?

These fields didn't seem to be valid under properties

- name: Update node to SNMP polling
  solarwinds.orion.orion_update_node:
    hostname: "{{ solarwinds_server }}"
    username: "{{ solarwinds_user }}"
    password: "{{ solarwinds_pass }}"
    name: "{{ node_name }}"
    properties:
      polling_method: SNMP
      snmp_version: 3
      snmpv3_auth_key: "{{ snmpv3_auth_pass}}" 
      snmpv3_auth_method: SHA1
      snmpv3_priv_key: "{{ snmpv3_priv_pass}}"
      snmpv3_priv_method: AES128
      snmpv3_username:  "{{ snmpv3_user}}"
  delegate_to: localhost
jeisenbath commented 7 months ago

The examples in the module should reflect it, but the "properties" you pass are the fields in the Orion database. One of the examples listed is for updating to snmpv2, I haven't worked out what fields you'd need to update one to snmp v3

jeisenbath commented 1 week ago

Just following up on this, were you ever able to work out the properties or is this something that still needs to be worked out? I do believe its a good example to add to documentation.

Andyjb8 commented 3 days ago

I just open PR 28

I realized I didn't test to see if it impacted updating other proprieties besides SMMPv3.

Also, if node is already running SNMPv3 I think we would want it to update the SNMPv3 credentials, as that could be used if you wanted to change them. However I was getting a error as I stated in PR.