• Alessandro Rubini's avatar
    net: mini snmp v1 implementation · 5feff0eb
    Alessandro Rubini authored
    The "community" string is public. We have tree items only: the host
    name, the date and uptime.
    
    The code is designed to make it simple any addition. But we only have
    snmpget support, not snmpwak (i.e. "get next" query).
    
    This is run on an host build (CONFIG_HOST_PROCESS) where the time and
    date are not related to the real world:
    
       # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.1.5.0
       SNMPv2-MIB::sysName.0 = STRING: wrc
       # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.2.0
       HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 1970-0-1,19:52:34.0
       # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.2.0
       HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 1970-0-1,19:53:2.0
       # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.1.0
       [...] hrSystemUptime.0 = Timeticks: (94193300) 10 days, 21:38:53.00
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    5feff0eb
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
host Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ c93d7100
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrs_main.c Loading commit data...