whatisgithub

What is luasnmp?

garthk/luasnmp — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2012-10-28

CAudience · ops devopsComplexity · 3/5DormantSetup · moderate

In one sentence

LuaSNMP lets you write Lua scripts to talk to network devices using SNMP, so you can monitor and control routers, switches, and servers without writing low-level C code.

Mindmap

mindmap
  root((luasnmp))
    What it does
      Lua to SNMP bridge
      Wraps net-snmp library
      Handles SNMP traps
    Tech stack
      C
      Lua
      net-snmp
    Use cases
      Network monitoring
      Device automation
      Alerting on traps
    Audience
      Network administrators
    Platforms
      Linux and Unix
      Windows via Cygwin
      SNMP v1 v2c v3

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Query router and switch information from a Lua script instead of writing C code.

USE CASE 2

Build a custom network monitoring dashboard that collects SNMP metrics via Lua.

USE CASE 3

Listen for SNMP traps like a full disk or high temperature and trigger Lua-based alerts.

USE CASE 4

Automate SNMP-enabled device configuration changes using simple Lua scripts.

What is it built with?

CLuaSNMP

How does it compare?

garthk/luasnmpac000/find-flvacc4github/kdenlive-omnifade
Stars0
LanguageCCC
Last pushed2012-10-282013-04-05
MaintenanceDormantDormant
Setup difficultymoderatemoderatemoderate
Complexity3/52/52/5
Audienceops devopsdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires compiling from source and installing net-snmp plus Lua 5.0 or later.

No license information is stated in the explanation.

Copy-paste prompts

Prompt 1
Show me how to compile LuaSNMP from source and install it alongside Lua 5.1 on Linux.
Prompt 2
Write a Lua script using LuaSNMP that queries a router's uptime and interface stats over SNMP v2c.
Prompt 3
How do I use LuaSNMP to listen for SNMP traps and run a Lua callback when a disk-full alert comes in?
Prompt 4
Explain the difference between SNMP v1, v2c, and v3 and which one LuaSNMP recommends for encrypted communication.

Frequently asked questions

What is luasnmp?

LuaSNMP lets you write Lua scripts to talk to network devices using SNMP, so you can monitor and control routers, switches, and servers without writing low-level C code.

What language is luasnmp written in?

Mainly C. The stack also includes C, Lua, SNMP.

Is luasnmp actively maintained?

Dormant — no commits in 2+ years (last push 2012-10-28).

What license does luasnmp use?

No license information is stated in the explanation.

How hard is luasnmp to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is luasnmp for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.