lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Oh, here's a sample output from my simple decoder serving as an "snmp tunnel":

---- (in) 127.0.0.1 len:45
30 2b 02 01 01 04 06 70 75 62 6c 69 63 a1 1e 02 : 0+.....public...
04 58 72 b2 17 02 01 00 02 01 00 30 10 30 0e 06 : .Xr........0.0..
0a 2b 06 01 02 01 19 04 02 01 02 05 00          : .+...........
SEQUENCE [0]
  INTEGER 1
  OCTET-STRING "public"
  PDU-GetNextRequest [1]
    INTEGER 1483911703
    INTEGER 0
    INTEGER 0
    SEQUENCE [2]
      SEQUENCE [3]
        OID .1.3.6.1.2.1.25.4.2.1.2
        NULL
---- (out) 57
30 37 02 01 01 04 06 70 75 62 6c 69 63 a2 2a 02 : 07.....public.*.
04 58 72 b2 17 02 01 00 02 01 00 30 1c 30 1a 06 : .Xr........0.0..
0b 2b 06 01 02 01 19 04 02 01 02 00 04 0b 6b 65 : .+............ke
72 6e 65 6c 5f 74 61 73 6b                      : rnel_task
SEQUENCE [0]
  INTEGER 1
  OCTET-STRING "public"
  PDU-GetResponse [1]
    INTEGER 1483911703
    INTEGER 0
    INTEGER 0
    SEQUENCE [2]
      SEQUENCE [3]
        OID .1.3.6.1.2.1.25.4.2.1.2.0
        OCTET-STRING "kernel_task"

-joe

On May 13, 2007, at 3:01 PM, Richard Ranft wrote:

Hm, can any of this be tied in with the host scripting system?  I have no
idea, just throwing that out there....

Rich

-----Original Message-----
[mailto:lua-bounces@bazar2.conectiva.com.br]On Behalf Of Herbert Leuwer
Sent: Saturday, May 12, 2007 1:09 PM
To: Lua list
Subject: Re: can luasnmp be used to write an agent?


LuaSNMP is a binding to the net-snmp client library and does not provide
any functionality to program an agent.

A good idea though - I'm also thinking about this.

Herbert

Sam Roberts schrieb:
I don't know enough about snmp to see from the docs whether luasnmp is
the right tool for me.  I would like to publish snmp information from an
app written in lua, I think this means being an "agent".

Can I do this with luasnmp, http://luasnmp.luaforge.net/, or is it
just for writing managers that interact with existing agents?

Thanks
Sam