Deprecated

Removed in None

i

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

cisco.nxos.nxos_snmp_community (7.0.0) — module

(deprecated, removed after 2024-01-01) Manages SNMP community configs.

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

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

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 community configuration.

Usage examples

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

Inputs

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

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

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

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

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

Outputs

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