etingof / snmpsim

SNMP Simulator
http://snmplabs.com/snmpsim/
BSD 2-Clause "Simplified" License
376 stars 119 forks source link

IP and Port number in snmp simulator #158

Open shmn18 opened 3 years ago

shmn18 commented 3 years ago

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

tkekan commented 3 years ago

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

shmn18 commented 3 years ago

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?

tkekan commented 3 years ago

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

shmn18 commented 3 years ago

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

mofikus commented 3 years ago

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".

lextm commented 1 year ago

This is answered and resolved.