SNMP library for LabVIEW

SNMP (Simple Network Management Protocol) is a fairly common protocol for communicating with network equipment. It's fast, lightweight and standardized. Unfortunately it's not quite as simple as its name implies and LabVIEW doesn't support it natively.

Some years ago I was in the necessity of using SNMP from a LabVIEW system to control some hardware. I started looking for already implemented solutions and found a library developed by Mark Yedinak (great work!). It was useful since it demonstrated it could be done and how, but I needed more control over the operations, so I had to read the protocol down to the low level bytes and implement what I need by myself. Yeah, pretty hard and with time constraints no less. Anyway, here it is.

Download (Library in LLB file for LabVIEW 2016)

See the examples folder to grasp the basic use. Probably you'll need no more than these sets of VIs to send and retrieve data and to get traps sent by your equipment. To integrate in a program, use the function VIs: Open, then GetRequest / SetRequest / GetNextRequest / GetBulkRequest, then Response and finally Close. Traps should be used in a loop after opening ports.

I've using this library for years with wildy different gear (routers, switches, modems, antennas, downconverters, PDUs...) and only needed minor tweaks. That been said, SNMP is a wide field where you usually only need the most common functionalities and data types, but you could find problems if you go past that zone.

Particularly SNMP differs between versions. V1 and V2c are common and for the most part easy (just some data types change), but V3 is another beast. I haven't put encryption in these functions, if you need it you'll have to add it on your own (it's just I haven't found any equipment that requires it).

Comentarios

Entradas populares de este blog

Base64 Encoding

Retrieve CPU temperature