SNMP

I am looking for a way to query a device (such as a router or switch) via SNMP and have it display on a webpage, is this something that is possible with Xojo and if so how would I get that done.

It would be an agent running on the PC /Mac and then gather that information and upload to website

Any help would be appreciated

thanks
Chris

for MBS Xojo Network Plugin, I once made a NetSNMPMBS class to do this.

here is an old realbasic code for listening to icmp packets.
must certainly be adapted to run under xojo.
http://web.archive.org/web/20080706130642/http://www.boisseau.co.uk/code/

Hm, I got an email for an answer, but don’t see it here?

Well, I wrote the class for a client who just wanted to query something.
It could be extended if more is needed.

Wierd I was asking this

Thanks Christian I have had a look at this and it will work for some of what I want. But I also want to do a walk of the device and get all the information about it

Kinda like this

using this command

snmpwalk -v 2c -c <community_string> -O e <IP_Address>

SNMPv2-MIB::sysDescr.0 = STRING: DrayTek Corporation, Router Model: Vigor2860 Series, Version: 3.8.7_BT, Build Date/Time:Mar 9 2018 03:56:34
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.7367
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (16286500) 1 day, 21:14:25.00
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: DrayTek
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 78
IF-MIB::ifNumber.0 = INTEGER: 10
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.20.101.1 = INTEGER: 20
IF-MIB::ifIndex.21.101.1 = INTEGER: 21
IF-MIB::ifIndex.22.101.1 = INTEGER: 22
IF-MIB::ifIndex.23.101.1 = INTEGER: 23
IF-MIB::ifIndex.24.101.1 = INTEGER: 24
IF-MIB::ifIndex.25.101.1 = INTEGER: 25
IF-MIB::ifIndex.26.101.1 = INTEGER: 26
IF-MIB::ifIndex.27.101.1 = INTEGER: 27

ETC ETC

But currently it’s a “Security is not my problem” solution. :wink:

At work we often use Nano Station, Canopy and Wimax Beam Antennas to connect customers to the Internet and it would be nice to have a Mac/Win SNMPv3 solution within MBP Plugins. :slight_smile:

@Christian Schmitz, das soll keine Kritik sein. Wollte nur “witzig” sein :wink:

Actually I am looking for a way to just walk the device and get the information about it. it looks like this is doing an SNMPGet . Is there a way to just walk the device and find information about it.

Is there anyone who can help here … How would i do this in XOJO

You will find with this forum, if someone can answer you question, they will…

You could use a shell and call snmpwalk just like you did in your example.

Thanks for this. I am not sure how to call that and display in a cosole.

See docs for shell:

https://documentation.xojo.com/index.php/Shell