snmp_facts – Retrieve facts for a device using SNMP¶
Synopsis¶
- Retrieve facts for a device using SNMP, the facts will be inserted to the ansible_facts key.
Parameters¶
Examples¶
- name: Gather facts with SNMP version 2
  snmp_facts:
    host: '{{ inventory_hostname }}'
    version: v2c
    community: public
  delegate_to: local
- name: Gather facts using SNMP version 3
  snmp_facts:
    host: '{{ inventory_hostname }}'
    version: v3
    level: authPriv
    integrity: sha
    privacy: aes
    username: snmp-user
    authkey: abc12345
    privkey: def6789
  delegate_to: localhost
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Patrick Ogenstad (@ogenstad)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
