etingof / snmpsim

SNMP Simulator

Home Page:http://snmplabs.com/snmpsim/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IP and Port number in snmp simulator

shmn18 opened this issue · comments

How to get the IP address and port number of the simulated network in the SNMP simulator?

the ip addr and port number is in the commandline that you specify to run the simulator.

Thank you for your message tkekan.

To simulate a network I run the command (snmpsim-command-responder --data-dir=./Desktop/snmprec --agent-udpv4-endpoint=127.0.0.1:1024)

./Desktop/snmprec is the directory where my snmprec file is.
Is 127.0.0.1 and 1024 are the ip address and port number of the simulated network?
Screenshot from 2020-11-05 09-21-29

This is a screenshot of the snmp simulator running. Is it correct?

Yes the simulator runs on 127.0.0.1 and port 1024. You can test this out doing a simple snmpget against that ip:port

I did a snmpwalk v2c and got an error. Is the command correct that I have used?
Screenshot from 2020-11-06 09-16-31

The community string "public" is incorrect. You will see in the output when you start the simulation that the community string is "device_192_168_184_21".

This is answered and resolved.