Re: Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Dave Shield
On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: [discussing "a single agent for each device"] > each device has an agent (main and sub-) and an IP address. The > user that wants to walk through two devA can do: > snmpwalk -v2c -c public -IR devA > snmpwalk -v2c -c public -IR devA >

Re: Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Giuseppe Modugno
On 7 Feb 2008 at 14:11, Dave Shield wrote: > On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: > > Now I understand... your solution to my doubt is to use tables! > Yup. ...so I didn't understand... > > If I consider an agent inside each device, I would have a simple information > > str

Re: Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Dave Shield
On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: > Now I understand... your solution to my doubt is to use tables! Yup. > If I have devices named A, B, C, D Assuming these are different types of device (dvdPlayer/dvdRecorder/VCR/oldFashionedFilmRememberThat) then yes. >enterpri

Re: Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Giuseppe Modugno
On 7 Feb 2008 at 12:46, Dave Shield wrote: > On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: > > Parameters for DVD records DVDREC2000 could be: record (on, off); time; > > input > > (front, rear); inputType (scart, composite,...); > Presumably each individual DVD recorder can only have

Re: Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Dave Shield
On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: > Here it is an example (it's not true). > > Suppose my company produces DVD recorders, DVD players, > audio/video mixers, and so on. Each product has a RS232 for remote > control purpose OK > and each product can be associated to a

Re: Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Giuseppe Modugno
On 7 Feb 2008 at 9:31, Dave Shield wrote: > On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: > > If I have just one SNMP agent serving many pieces of equipment, what could > > be > > the structure of the MIB? I think I must register a subtree for each > > combination of the pieces: The u

Re: error messages

2008-02-07 Thread Dave Shield
On 07/02/2008, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote: > Can I create a directory, where I can store all the mib > files so that snmpwalk or SNMP get or SNMP set will look for mib files > in that created directory location. Of course you can. "make install" should have done

Re: Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Dave Shield
On 07/02/2008, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: > If I have just one SNMP agent serving many pieces of equipment, what could be > the structure of the MIB? > I think I must register a subtree for each combination of the pieces: > The user with a machine composed by A and B pieces I have

Re: how to reduce the size of net-snmp

2008-02-07 Thread Dave Shield
On 07/02/2008, Amit Kumar <[EMAIL PROTECTED]> wrote: > i am using the net-snmp version 5.4 and to reduce the size i used some > of the configure options . but it reduced from 4.5 MB to 3.3 MB . > > i need it to reduced upto 1.5 MB . is there is any other options that i am > missing Please see t

RE: error messages

2008-02-07 Thread Siva Prakash Reddy G
Hi! Thanks Dave for your valid reply, >> I don't want to print these error message, how can I do it. > Snmpwalk -m "" . But above solution is not feasible to me, can I get any other alternate solution apart from changing the snmpwalk command. Can I

Re: infinite loop in handle_getnext_loop()?

2008-02-07 Thread Dave Shield
On 06/02/2008, Lisa Morgan <[EMAIL PROTECTED]> wrote: > netsnmp_register_instance( test ); OK - so you are registering individual instances (rather than scalar objects or whole tables). That helper will take care of the GETNEXT-specific processing, so your handler will only be called with GET re

Designing MIBs and subagents for several pieces of equipment

2008-02-07 Thread Giuseppe Modugno
Dear all, I'm now working on extending Net-SNMP main agent with dynamically loadable sub- agents. The sub-agent registers to main agent its OIDs and converts SNMP requests (GET and SET) received in the registered handler to RS232 commands for my piece of equipment. This technique can be improved