Retreives facts for device using SNMP
def test_fun(localhost):
facts = localhost.snmp_facts(host=duthost.mgmt_ip, version="v2c", community="public")
host
- IP for desired host to get lddp facts for- Required:
True
- Type:
String
- Required:
version
- SNMP version being used- Required:
True
- Type:
String
- Choices:
v2
v2c
v3
- Required:
community
- SNMP community- Required:
True
ifversion="v2"/"v2c"
,False
otherwise - Type:
String
- Required:
is_dell
- Whether NOS is dell or not- Required:
False
- Type:
Boolean
- Required:
is_eos
- Whether NOS is EOS or not- Required:
False
- Type:
Boolean
- Required:
level
- Authentication level, required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Choices:
authPriv
authNoPriv
- Required:
username
- Username for v3. Required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Required:
integrity
- Hashing algorithm desired. Required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Choices:
md5
sha
- Required:
authkey
- authentication key for v3. Required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Required:
privacy
- Encryption algorithm, required iflevel
isauthPriv
- Required:
True
iflevel="authPriv"
,False
otherwise - Type:
String
- Choices:
des
aes
- Required:
privkey
- Encryption key, required iflevel
isauthPriv
- Required:
True
iflevel="authPriv"
,False
otherwise - Type:
String
- Required:
Dictionary with system info gathered by SNMP. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
ansible_facts
ansible_sysdescr
- system descriptionansible_syslocation
- communitysnmp_lldp
- Dictionary with LLDP infolldpLocSysDesc
lldpLocSysName
lldpLockChassisId
lldpLocChassisIdSubtype
ansible_sysuptime
- uptime for device in secondsansible_sysname
- system nameansible_sysTotalBuffMemory
- (KB?) of buffer memoryansible_sysCachedMemory
- (KB?) of cached memoryansible_sysTotalMemory
- (KB?) of total memoryansible_sysobjectid
- system object idansible_sysTotalSharedMemory
- (KB?) of shared memoryansible_syscontact
- Contact info for deviceanisble_all_ipv4_addresses