Platforms to show: All Mac Windows Linux Cross-Platform

NetSNMPMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Network MBS Network Plugin 17.3 ✅ Yes ❌ No ✅ Yes ✅ Yes All
The class to do SNMP queries.
Example
Var s as new NetSNMPMBS

s.Community = "demopublic"
s.IP = "test.net-snmp.org"

Var r as string = s.Query("system.sysUpTime.0")

MsgBox r

Performs a SNMP GET query.
Using version 1, no authentication and no security options.

Authentication Protocols

Constant Value Description
AuthProtocolAESPriv 6 AES Priv
AuthProtocolDESPriv 5 DES Priv
AuthProtocolHMACMD5 2 HMAC MD5
AuthProtocolHMACSHA1 3 HMAC SHA1
AuthProtocolNone 1 No authentication.
AuthProtocolNoPriv 4 No Priv

Security Levels

Constant Value Description
SecurityLevelAuthNoPriv 2 Auth means there is cryptographic authentication. It uses MD5 or SHA for this purpose. The authentication mechanism is actually applied to the associated user using the snmp-server user command. The NoPriv remains in this security model as described above.
SecurityLevelAuthPriv 3 As in the previous model, Auth means cryptographic authentication is employed.
Priv indicates that the whole SNMP packet is encrypted, which means if the packet is intercepted, it cannot be deciphered.
SecurityLevelNoAuth 1 NoAuth means no cryptographic authentication. Credentials (username and password) are still used, but there is no cryptographic mechanism to verify the authenticity of the message. NoPriv means no privacy of the contents of the SNMP messages, meaning there is no encryption of the payload.

Versions

Constant Value Description
Version1 0 Version 1
Version2c 1 Version 2c
Version2u 2 Version 2u (not supported by libnetsnmp)
Version3 3 Version 3

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Videos

Release notes

  • Version 24.4
    • Added more properties for NetSNMPMBS class for using SNMPv3.
  • Version 18.2
    • Fixed a problem on 64-bit Linux with NetSNMPMBS class causing stack checks to fail.
    • Fixed problem in NetSNMPMBS Query where a big query result could lead to overwritten memory.
    • Improved NetSNMPMBS class to better report parse errors with UnsupportedOperationException function.
  • Version 17.3

The items on this page are in the following plugins: MBS Network Plugin.


NetFSMountMBS   -   NetworkInterfaceMBS


The biggest plugin in space...