mellanox.onyx.onyx_snmp – Manages SNMP general configurations on Mellanox ONYX network devices
Note
This plugin 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 version 0.2.0: of mellanox.onyx
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: [“snmp-server enable”, “no snmp-server enable”, “snmp-server location \u003clocation_name\u003e”, “snmp-server contact \u003ccontact_name\u003e”, “snmp-server enable communities”, “no snmp-server enable communities”, “snmp-server enable mult-communities”, “no snmp-server enable mult-communities”, “snmp-server enable notify”, “snmp-server notify port \u003cport_number\u003e”, “snmp-server notify community \u003ccommunity_name\u003e”, “snmp-server notify send-test”, “snmp-server notify event \u003cevent_name\u003e”, “snmp-server enable set-permission \u003cpermission_type\u003e”, “no snmp-server enable set-permission \u003cpermission_type\u003e”, “snmp-server community \u003ccommunity_name\u003e \u003ccommunity_type\u003e”, “no snmp-server community \u003ccommunity_name\u003e.”, “snmp-server engineID reset.”] |
Authors
Sara-Touqan (@sarato)