Re: how do I determine which device is being accessed??

This is a discussion on Re: how do I determine which device is being accessed?? within the SNMP Coders forums, part of the Networking and Network Related category; ----- Original Message ----- From: "Robert Story" <rstory@freesnmp.com> To: "Dan Miller (Kromos)" <dan@...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008
Dan Miller
 
Posts: n/a
Default Re: how do I determine which device is being accessed??

----- Original Message -----
From: "Robert Story" <rstory@freesnmp.com>
To: "Dan Miller (Kromos)" <dan@kromos.com>
Cc: <net-snmp-coders@lists.sourceforge.net>
Sent: Wednesday, January 16, 2008 09:50
Subject: Re: how do I determine which device is being accessed??


> On Tue, 15 Jan 2008 17:38:50 -0800 Dan wrote:
> DM(> 1. The init function generated netsnmp_register_scalar() calls for
> the
> first dozen fields in my mib, but stopped at the DevTblEntry which
> defines all my actual cards in the system. Do I have to call something
> else
> to register those structs??
>
> Yes, you need to use another handler type for tables (vs scalars).


Is there a way to tell mib2c to handle the SEQUENCE entry in my MIB?
It just stopped when it reached:
ip3DevTblEntry ::= SEQUENCE {

(BTW, I'm using net-snmp 5.4.1, I should have stated that in original
message)

>
> DM(> 2. in the init function, how do I tell it about multiple devices??
>
> You need to structure your mib to deal with multiple devices.


My mib *is* structured to deal with multiple devices, or at least it did in
the past.
The problem is that our existing code was for UCD snmpd, and doesn't compile
into net-snmp (even when I change headers to use the ucd syntax, though I
may well be "doing it wrong", since I didn't write the original modules).
>
> DM(> 3. When my individual handler is called, how do I know which device
> the
> request is for??
>
> That depends on the mib structure and the handler you are using.
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:39 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0