ansible.builtin.nxos_snmp_community (v2.5.10) — module

Manages SNMP community configs.

| "added in version" 2.2 of ansible.builtin"

Authors: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.5.10

Description

Manages SNMP community configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ensure snmp community is configured
- nxos_snmp_community:
    community: TESTING7
    group: network-operator
    state: present

Inputs

    
acl:
    description:
    - ACL name to filter snmp requests or keyword 'default'.

group:
    description:
    - Group to which the community belongs.

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

access:
    choices:
    - ro
    - rw
    description:
    - Access type for community.

community:
    description:
    - Case-sensitive community string.
    required: true

Outputs

commands:
  description: commands sent to the device
  returned: always
  sample:
  - snmp-server community TESTING7 group network-operator
  type: list