community / community.network / 5.0.2 / module / pn_snmp_vacm CLI command to create/modify/delete snmp-vacm Authors: Pluribus Networks (@rajaspachipulusu17)community.network.pn_snmp_vacm (5.0.2) — module
Install with ansible-galaxy collection install community.network:==5.0.2
collections: - name: community.network version: 5.0.2
This module can be used to create View Access Control Models (VACM), modify VACM and delete VACM.
- name: Create snmp vacm community.network.pn_snmp_vacm: pn_cliswitch: "sw01" state: "present" pn_user_name: "foo" pn_user_type: "rouser"
- name: Update snmp vacm community.network.pn_snmp_vacm: pn_cliswitch: "sw01" state: "update" pn_user_name: "foo" pn_user_type: "rwuser"
- name: Delete snmp vacm community.network.pn_snmp_vacm: pn_cliswitch: "sw01" state: "absent" pn_user_name: "foo"
state: choices: - present - absent - update description: - State the action to perform. Use C(present) to create snmp-vacm and C(absent) to delete snmp-vacm and C(update) to modify snmp-vacm. required: true type: str pn_auth: description: - authentication required. type: bool pn_priv: description: - privileges. type: bool pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str pn_user_name: description: - SNMP administrator name. type: str pn_user_type: choices: - rouser - rwuser description: - SNMP user type. type: str pn_oid_restrict: description: - restrict OID. type: str
changed: description: indicates whether the CLI caused changes on the target. returned: always type: bool command: description: the CLI command run on the target node. returned: always type: str stderr: description: set of error responses from the snmp-vacm command. returned: on error type: list stdout: description: set of responses from the snmp-vacm command. returned: always type: list