mellanox.onyx.onyx_snmp module – Manages SNMP general configurations on Mellanox ONYX network devices
Note
This module is part of the mellanox.onyx collection (version 1.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install mellanox.onyx
.
To use it in a playbook, specify: mellanox.onyx.onyx_snmp
.
New in mellanox.onyx 0.2.0
Synopsis
This module provides declarative management of SNMP on Mellanox ONYX network devices.
Parameters
Parameter |
Comments |
---|---|
Enables/Disables community-based authentication on the system. Choices:
|
|
Sets the SNMP contact name. |
|
Sets SNMPv3 engineID to node unique value. Choices:
|
|
Sets the SNMP location. |
|
Enables/Disables multiple communities to be configured. Choices:
|
|
Sets the default community for SNMP v1 and v2c notifications sent to hosts which do not have a community override set. |
|
Enables/Disables sending of SNMP notifications (traps and informs) from thee system. Choices:
|
|
Specifys which events will be sent as SNMP notifications. Choices:
|
|
Sets the default port to which notifications are sent. |
|
Sends a test notification. Choices:
|
|
List of snmp communities |
|
Configures snmp community name. |
|
Add this community as either a read-only or read-write community. Choices:
|
|
Used to decide if you want to delete the given snmp community or not Choices:
|
|
Allow SNMPSET requests for items in a MIB. |
|
Configures the request type. Choices:
|
|
Enables/Disables the request. Choices:
|
|
Enables/Disables the state of the SNMP configuration. Choices:
|
Examples
- name: Configure SNMP
onyx_snmp:
state_enabled: yes
contact_name: sara
location: Nablus
communities_enabled: no
multi_communities_enabled: no
notify_enabled: yes
notify_port: 1
notify_community: community_1
notify_send_test: yes
notify_event: temperature-too-high
snmp_communities:
- community_name: public
community_type: read-only
state: absent
snmp_permissions:
- state_enabled: yes
permission_type: MELLANOX-CONFIG-DB-MIB
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The list of configuration mode commands to send to the device Returned: always. Sample: |