Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP and Port number in snmp simulator #158

Open
shmn18 opened this issue Nov 2, 2020 · 6 comments
Open

IP and Port number in snmp simulator #158

shmn18 opened this issue Nov 2, 2020 · 6 comments

Comments

@shmn18
Copy link

shmn18 commented Nov 2, 2020

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

@tkekan
Copy link

tkekan commented Nov 5, 2020

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

@shmn18
Copy link
Author

shmn18 commented Nov 5, 2020

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
Copy link

tkekan commented Nov 6, 2020

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
Copy link
Author

shmn18 commented Nov 6, 2020

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
Copy link

mofikus commented Nov 13, 2020

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
Copy link

lextm commented Nov 14, 2022

This is answered and resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants