Recent

Author Topic: SNMP example  (Read 2201 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
SNMP example
« on: November 17, 2020, 10:18:44 am »
Hi guys, I need to know how I can retrieve the NAT table through the SNMP protocol using synapse. Because I have to figure out which ports my application exits on the internet. Are there any examples to do this? Can anyone help me make it happen?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: SNMP example
« Reply #1 on: November 17, 2020, 11:01:04 am »
hello,
you can have a look here. Sorry it is in french but there is a project.

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: SNMP example
« Reply #2 on: November 17, 2020, 12:10:27 pm »
Hi JP, thanks for reporting. Unfortunately that forum doesn't let me register. It says "File not found." when I register. Can you attach the project here?
Thanks
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

MarkMLl

  • Hero Member
  • *****
  • Posts: 8551
Re: SNMP example
« Reply #3 on: November 17, 2020, 01:23:07 pm »
Hi guys, I need to know how I can retrieve the NAT table through the SNMP protocol using synapse. Because I have to figure out which ports my application exits on the internet. Are there any examples to do this? Can anyone help me make it happen?

Don't. Start off with the standard command-line tools, find and install the relevant MIBS if necessary, then look to see to what extent the router's you're looking at make the information available.

As I've said in a different thread, you're likely to find that different routers support this to a different extent, and you're likely to find that SNMP is only available internally... and not always then.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: SNMP example
« Reply #4 on: November 17, 2020, 01:34:31 pm »
MarkMLI sorry but I have no experience with SNMP, what are the standard tools? What guides can I start following?
I also replied to you from the other thread to ask you a few things.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: SNMP example
« Reply #5 on: November 17, 2020, 03:26:34 pm »
Hi JP, thanks for reporting. Unfortunately that forum doesn't let me register. It says "File not found." when I register. Can you attach the project here?
Thanks

in attachments the project  ;)
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

 

TinyPortal © 2005-2018