scaleuptechnologies / scaleuptechnologies.utils / 1.2.5 / module / advanced_snmp_get Get SNMP Data from devices with lists, calculation | "added in version" 1.2.0 of scaleuptechnologies.utils" Authors: unknownscaleuptechnologies.utils.advanced_snmp_get (1.2.5) — module
Install with ansible-galaxy collection install scaleuptechnologies.utils:==1.2.5
collections: - name: scaleuptechnologies.utils version: 1.2.5
Get SNMP Data from devices, like IDRAC, Switches, group by lists, make divisions.
- name: Get values from dell idrac scaleuptechnologies.utils.advanced_snmp_get: host: 172.18.0.39 community: public snmp: service_tag: oid: "1.3.6.1.4.1.674.10892.5.1.3.2.0" express_code: oid: "1.3.6.1.4.1.674.10892.5.1.3.3.0" model: oid: "1.3.6.1.4.1.674.10892.5.1.3.12.0" bios_version: oid: "1.3.6.1.4.1.674.10892.5.4.300.50.1.8.1.1" snmp_bulk_blocks: power_supply: slot: oid: "1.3.6.1.4.1.674.10892.5.4.600.12.1.15.1" ratedWatt: oid: "1.3.6.1.4.1.674.10892.5.4.600.12.1.14.1" type: float divide_by: 10
host: description: Hostname or IP address of the device required: true type: str snmp: description: SNMP OIDS to get suboptions: divide_by: description: divide the value type: float oid: description: OID to get required: true type: str type: choices: - str - int - float default: str description: type to convert to type: dict community: default: public description: SNMP Community required: true type: str snmp_bulk_blocks: description: SNMP Blocks to get (see SNMP for syntax of a block) type: dict
data: description: The SNMP Data from the device returned: always sample: bios_version: 2.4.2 express_code: '13043577818' model: PowerEdge R420 power_supply: - ratedWatt: 666.0 slot: PSU.Slot.1 - ratedWatt: 666.0 slot: PSU.Slot.2 service_tag: 5ZPT522 type: complex