S
S
SpeakeazyYT12019-10-15 22:17:24
linux
SpeakeazyYT1, 2019-10-15 22:17:24

Why is no information visible when querying via SNMP protocol?

Good evening.
There was a question regarding the operation of SNMP. Let's start with what I installed on Windows 10 - SNMP Agent Simulator ( snmplabs.com/snmpsim/quickstart.html).
And also, having connected via SSH, I entered the Raspbian system, where I installed the SNMP client (snmpwalk, snmpget, ...).
According to the snmplabs.com/snmpsim/quickstart.html#simulate-exis... instructions, I first downloaded the SNMP Emulator source archive - https://github.com/etingof/snmpsim/releases and uploaded it to a separate folder on the desktop. After installing SNMP Emulator (using the command pip install snmpsim) I, being in the folder with the unpacked archive with SNMP Emulator sources, I launched it with the command

snmpsimd.py --data-dir=./data --agent-udpv4-endpoint=10.0.1.18:1024

Console output:
18e5452af1.png
I go to the console to manage the Raspbian system, where, having previously installed SNMP on this OC, I enter the command snmpwalk -v2c -c public 10.0.1.18:1024 systemto read requests from the SNMP Simulator. As a result - I get, without saying that an error, but such a message:
SNMPv2-MIB::system = No more variables left in this MIB View (It is past the end of the MIB tree)
, which means that no information comes from SNMP Simulator.
9a7e404b51.png
I've been scratching my head over this problem for a few days now. My initial task is to get all the information from the SNMP Simulator in this form (for example):
$ snmpwalk -v2c -c public 127.0.0.1:1024 system
SNMPv2-MIB::sysDescr.0 = STRING: Linux zeus 4.8.6.5-smp #2 SMP Sun Nov 13 14:58:11 CDT 2016 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (126714301) 14 days, 15:59:03.01
SNMPv2-MIB::sysContact.0 = STRING: SNMP Laboratories, [email protected]
SNMPv2-MIB::sysName.0 = STRING: new system name
SNMPv2-MIB::sysLocation.0 = STRING: San Francisco, California, United States
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (126714455) 14 days, 15:59:04.55

*** Information provided from the site: snmplabs.com/snmpsim/quickstart.html#simulate-exis...
Please help or advise something.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Vasilyev, 2019-10-16
@vasilyevmn

Problems with the network, turn off the firewall, etc.
Just check for a ping to 10.0.1.18 and check if port 1024 is open.
But I guess there won't even be a ping.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question