question on mib2c, tables, etc.

2012-05-17 Thread Michael Dorin
I am trying to make a subagent for the UPS-MIB. I generate the code with mib2c -c mib2c.conf upsMIB I select 1) ucd-snmp style code I get upsMIB.c I am trying to fill in var_upsAlarmTable, but am running into lots of little errors. Does anybody havae any example code I might be able to review?

Re: SNMP Agent V2C community string problem

2012-05-17 Thread Dave Shield
On 17 May 2012 13:58, George Rubin wrote: > ./configure ... --with-out-mib-modules=" mibII/vacm ..." That's the module that is concerned with access control - it's really an essential part of the agent. I'd need to check the code in detail, but I suspect that omitting this will allow access

SNMP Agent V2C community string problem

2012-05-17 Thread George Rubin
Hello, I've built net-snmp 5.7.1 for powerpc linux (eldk 5.1). I've configured it with the following line: ./configure --host=powerpc-linux --build=i686-pc-linux-gnu --target=ppc-denx-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc

Re: Problem on return value of netsnmp python bindings

2012-05-17 Thread Dave Shield
On 17 May 2012 03:16, 胡小根 wrote: > I am now using net-snmp python bindings. There comes a problem that the > function netsnmp.snmpwalk() returns only oid values, but do not return index. No - the function snmpwalk returns a set of 4-tuples: var.tag (the object OID) var.iid (the index)

Re: Problem installing a MIB

2012-05-17 Thread Dave Shield
On 16 May 2012 10:05, Jérôme BELLEGARDE wrote: > And when I try : /usr/local/sbin/snmpd -f -L -d -p > > I got : > > Warning: no access control information configured. >  (Config search path: > /usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/dialog/.snmp) How have you co

Re: EBU Tech 3323: SNMP for broadcasting transmitters

2012-05-17 Thread Dave Shield
On 17 May 2012 08:03, Giuseppe Modugno wrote: > I found a technical document (EBU Tech 3323) that talks about SNMP > implementation on broadcasting transmitters: > > http://www.ebu.ch/CMSimages/fr/tec_doc_t3323-2008_tcm7-58188.pdf > > One request appears strange: > > "Time stamps in TRAPS must be

Problem on return value of netsnmp python bindings

2012-05-17 Thread 胡小根
Hi net-snmp developers: I am now using net-snmp python bindings. There comes a problem that the function netsnmp.snmpwalk() returns only oid values, but do not return index. For example, if I want to poll ifDescr(1.3.6.1.2.1.2.2.1.2), netsnmp.snmpwalk() only return a tuple containing values but

EBU Tech 3323: SNMP for broadcasting transmitters

2012-05-17 Thread Giuseppe Modugno
I found a technical document (EBU Tech 3323) that talks about SNMP implementation on broadcasting transmitters: http://www.ebu.ch/CMSimages/fr/tec_doc_t3323-2008_tcm7-58188.pdf One request appears strange: "Time stamps in TRAPS must be synchronisable with a reference time (e.g. NTP)." From w