Deprecated

Removed in None

i

Reason:Updated modules released with more functionality | Alternative:nxos_snmp_server

cisco.nxos.nxos_snmp_user (7.0.0) — module

(deprecated, removed after 2024-01-01) Manages SNMP users for monitoring.

| "added in version" 1.0.0 of cisco.nxos"

Authors: Jason Edelman (@jedelman8)

Install collection

Install with ansible-galaxy collection install cisco.nxos:==7.0.0


Add to requirements.yml

  collections:
    - name: cisco.nxos
      version: 7.0.0

Description

Manages SNMP user configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- cisco.nxos.nxos_snmp_user:
    user: ntc
    group: network-operator
    authentication: md5
    pwd: test_password

Inputs

    
pwd:
    description:
    - Authentication password when using md5 or sha. This is not idempotent
    type: str

user:
    description:
    - Name of the user.
    required: true
    type: str

group:
    description:
    - Group to which the user will belong to. If state = present, and the user is existing,
      the group is added to the user. If the user is not existing, user entry is created
      with this group argument. If state = absent, only the group is removed from the
      user entry. However, to maintain backward compatibility, if the existing user belongs
      to only one group, and if group argument is same as the existing user's group, then
      the user entry also is deleted.
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manage the state of the resource.
    type: str

encrypt:
    description:
    - Enables AES-128 bit encryption when using privacy password.
    type: bool

privacy:
    description:
    - Privacy password for the user. This is not idempotent
    type: str

authentication:
    choices:
    - md5
    - sha
    description:
    - Authentication parameters for the user.
    type: str

Outputs

commands:
  description: commands sent to the device
  returned: always
  sample:
  - snmp-server user ntc network-operator auth md5 test_password
  type: list