Class: Ansible::Ruby::Modules::Snmp_facts

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb

Overview

Retrieve facts for a device using SNMP, the facts will be inserted to the ansible_facts key.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#authkeyString?

Returns Authentication key, required if version is v3.

Returns:

  • (String, nil)

    Authentication key, required if version is v3



35
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 35

attribute :authkey

#communityString?

Returns The SNMP community string, required if version is v2/v2c.

Returns:

  • (String, nil)

    The SNMP community string, required if version is v2/v2c



19
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 19

attribute :community

#hostString

Returns Set to target snmp server (normally {inventory_hostname}).

Returns:

  • (String)

    Set to target snmp server (normally {inventory_hostname})



11
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 11

attribute :host

#integrity:md5, ...

Returns Hashing algoritm, required if version is v3.

Returns:

  • (:md5, :sha, nil)

    Hashing algoritm, required if version is v3



31
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 31

attribute :integrity

#level:authPriv, ...

Returns Authentication level, required if version is v3.

Returns:

  • (:authPriv, :authNoPriv, nil)

    Authentication level, required if version is v3



23
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 23

attribute :level

#privacy:des, ...

Returns Encryption algoritm, required if level is authPriv.

Returns:

  • (:des, :aes, nil)

    Encryption algoritm, required if level is authPriv



39
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 39

attribute :privacy

#privkeyString?

Returns Encryption key, required if version is authPriv.

Returns:

  • (String, nil)

    Encryption key, required if version is authPriv



43
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 43

attribute :privkey

#usernameString?

Returns Username for SNMPv3, required if version is v3.

Returns:

  • (String, nil)

    Username for SNMPv3, required if version is v3



27
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 27

attribute :username

#version:v2, ...

Returns SNMP Version to use, v2/v2c or v3.

Returns:

  • (:v2, :v2c, :v3)

    SNMP Version to use, v2/v2c or v3



15
# File 'lib/ansible/ruby/modules/generated/extras/network/snmp_facts.rb', line 15

attribute :version