RE: Creating a MIB?

2009-08-03 Thread Mike Ayers
> From: Anthony Davis [mailto:ada...@star.net.uk]
> Sent: Wednesday, July 29, 2009 1:52 AM

> OK great, thanks for the info, don't suppose anyone has the oid for the dev 
> stack
> do they please?

.1.3.6.1.4.1.2021.13

See the UCD-SNMP-MIB for details.


HTH,

Mike

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Speeding Up SNMPv3 / C Net-SNMP-v5.4.1

2009-08-03 Thread Mike Ayers
> From: steffen.neu...@computacenter.com
> [mailto:steffen.neu...@computacenter.com]
> Sent: Wednesday, July 29, 2009 5:08 AM


> 1. Is there any less time consuming alternative for the Net-SNMP function
> init_snmp() to get SNMPv3 requests running?
> Without using init_snmp() we get an error in snmp_synch_response () for
> SNMPv3 "Unkonwn engine ID". With using init_snmp() - it works,
> but in charge for waste a lot of time for searching a lot of files, loading 
> configs
> and MIBs and so on and this each pollcycle and a lot of instances for this 
> Nagios
> Plugin.

Nagios plugin?  init-snmp()?  There's quite a leap between the two, and 
I have no idea how you're crossing them, but the Frankenstein experiments won't 
help.  The one tip I can give is to store the remote engineIDs on the client to 
skip the discovery phase.

> 2. Is there an option and an example to can cache Authorization and Priveledge
> Keys that will be generated by the NetSNMP function "generate_Ku" normaly at
> each poll cycle
> the SNMPv3 request will take place?

Just store and use the keys!

> I imagine that it could speed up SNMPv3
> dramatically, if you can read the keys from the cache, instead to generate 
> same
> keys each polling cycle.

I think your terminology is wrong, but if you have a cache, cache the 
keys.


HTH,

Mike

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Question on pass_persist feature of net-snmp

2009-08-03 Thread Mark Hennelly
Hi Dave,

Thanks a lot for your response. After reading your post, I used the snmpconf
tool to configure the access control on the agent, following the tutorial on
this page
http://net-snmp.sourceforge.net/tutorial/tutorial-5/demon/snmpd.html#location

Currently I have the following line in the snmpd.conf file to allow access
for the OID
* rocommunity public default .1.3.6.1.3.1.1
*
However, when I execute the snmpget command, my Java program is still not
being called and I get an error, although a different error to the one I got
previously.
*EMNETS-MIB::emnetsMIB = No Such Instance currently exists at this OID*

Could you tell me if the line "*rocommunity public default .1.3.6.1.3.1.1*"
is sufficient for allowing access to the OID?

Regards,
Mark







On Sat, Aug 1, 2009 at 3:57 PM, Dave Shield wrote:

> 2009/7/29 Mark Hennelly :
> > It appears that my Java program is not being executed at all, I was
> > wondering if anyone knew of a possible reason for this not working
>
> You haven't given us much to go on, but my immediate reaction would
> be to check the access control settings.   If the agent isn't configured
> to allow access to this particular OID, then it would never get as far
> as calling your Java program.
>
> See the FAQ for more information.
>
> Dave
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: ucd-snmp vs. net-snmp (foot print)

2009-08-03 Thread Bart Van Assche
On Fri, Jul 24, 2009 at 10:58 PM, Dave Shield wrote:
> Unfortunately, we can't really provide you with any significant implementation
> experience of running the Net-SNMP agent on embedded systems.   I keep
> putting out a plea for those who have done this to report back, but nobody
> ever seems to bother.

One aspect of Net-SNMP that should be documented with regard to
embedded systems is whether or not Net-SNMP assumes that the system it
is running on has a hostname. On some embedded systems the hostname
(the string returned by gethostname()) has been left empty.

Additionally, on many embedded systems DNS has not been set up (empty
/etc/resolv.conf). People deploying Net-SNMP on such an embedded
system need to know which components of Net-SNMP rely on access to a
DNS server, if there are any such components.

Bart.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: tkmib

2009-08-03 Thread Kim, HC
Hi Dave,

Thanks for your quick response. I can install it in the Linux machine now
and could run it in my system.

Then, I can't accept a specific MIB file in the "Load new MIB file menu"
from the /usr/share/snmp/mibs/SAF-AMF-MIB.txt file created by "OpenSAF"
projects.

Anyway, would you please explain how to set and get the MIB information to
the TKMIB screen from the physical MIB file?

Regards,
HC

-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On
Behalf Of Dave Shield
Sent: Monday, August 03, 2009 11:06 PM
To: Kim, HC
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: tkmib

2009/8/3 Kim, HC :
> I am looking for the tkmib (A Graphical MIB browser) for net-snmp. Would
you
> please help me where I can get the download version from the web site?

You can get the source code from the main download page
   (http://www.net-snmp.org/download.html)
This includes 'tkmib', which is in the directory 'local'

Dave



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: tkmib

2009-08-03 Thread Dave Shield
2009/8/3 Kim, HC :
> I am looking for the tkmib (A Graphical MIB browser) for net-snmp. Would you
> please help me where I can get the download version from the web site?

You can get the source code from the main download page
   (http://www.net-snmp.org/download.html)
This includes 'tkmib', which is in the directory 'local'

Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


tkmib

2009-08-03 Thread Kim, HC
Dear Sir.,

 

I am looking for the tkmib (A Graphical MIB browser) for net-snmp. Would you
please help me where I can get the download version from the web site?

 

Regards,

HC

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: ucd-snmp vs. net-snmp (foot print)

2009-08-03 Thread Bart Van Assche
2009/8/3 Juliana Purjo :
>> From: d.t.shi...@liverpool.ac.uk
>> Given that in most environments, run-time size is not a significant concern,
>> using a separate buffer for each object feels to be a simpler, and more
>> (time-)efficient approach.
>
> Also in embedded Linux, the executable size is more important than runtime
> memory size. The flash sizes are still measured in single digit megabytes...
> And the linked application size seems to be the same whether you have 100kb
> of static buffer or 1kb of static buffer, probably the number of static
> buffers also does not make a difference.

Regarding runtime size: many embedded systems use SDRAM memory. The
smallest SDRAM modules being sold today that I know of are 64 MB in
size. And I know of embedded systems with 32 MB RAM in which UCD-SNMP
has been deployed successfully.

Regarding static buffers: the space occupied in an executable by a
static buffer that has been stored by the compiler in a BSS section is
independent of the buffer size.

Regarding executable size: a filesystem like cramfs, cromfs or
squashfs can be a great help to reduce the amount of non-volatile
storage occupied by an executable.

Bart.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


[SPAM] about 5.4.2.1. insert time very long

2009-08-03 Thread brenden . lai


Dear all :
   I have a question about  CONTAINER_INSERT function , . 
I use CONTAINER_INSERT to insert multi index data which is 18 X 512 volumn in net-snmp 5.1.3 . It works.
But when I upgrade to  net-snmp 5.4.2.1 . CONTAINER_INSERT take more time after insert  more and more entry . 
Shall I change my code architecture?
Here is code
void
init_quanta_s31elLogTable(void)
{
    s31elLogTable_context *context;
    netsnmp_index   index;
    oid index_oid, sub_index_oid, temp_index_oid[2];
    int time1,time2 ; 
    time1 = clock();
 
#ifdef s31elLogTable_MULTI_INDEX
    DEBUGMSGTL(("mySnmp",
    "Initial 's31elLogTable' table (multi-index)...\n"));
#else
    DEBUGMSGTL(("mySnmp", "Initial 's31elLogTable' table...\n"));
#endif
 
    initialize_table_s31elLogTable();
 
    for (index_oid = 1; index_oid <= s31elLogTable_ROW_MAX; index_oid++) {
    
    for (sub_index_oid = 1; sub_index_oid <= s31elLogTable_SUB_ROW_MAX;
 sub_index_oid++) {       
    temp_index_oid[0] = index_oid;
    temp_index_oid[1] = sub_index_oid;
    index.oids = temp_index_oid;
    index.len = 2;
 
    context = SNMP_MALLOC_TYPEDEF(s31elLogTable_context);
    s31elLogTable_extract_index(context, &index);
    time1 = clock();
    CONTAINER_INSERT(cb.container, context);
    time2 = clock();
    system_printf("extract_index take %d\n",time2-time1);
    }
    }
}
Here is mib file :
s31elLogTable OBJECT-TYPE
   SYNTAX   SEQUENCE OF S31elLogEntry
   ACCESS not-accessible
   STATUS   mandatory
   DESCRIPTION
 "A table containing Event Log records."
   ::={ s31el2 3 }
 
 
s31elLogEntry OBJECT-TYPE
    SYNTAX  S31elLogEntry
    ACCESS  not-accessible
    STATUS  mandatory
    DESCRIPTION
    "This table presents the list of all events which are present in the
 MMB event log."
    INDEX { s31elLogSource,s31elLogId}
    ::= { s31elLogTable 1 }
 
S31elLogEntry ::= SEQUENCE {
    s31elLogSource  INTEGER,
    s31elLogTime DisplayString,
    s31elLogSeverity  DisplayString,
    s31elLogId   INTEGER,
    s31elLogText    DisplayString
}
 
 
Regards,
Brenden Lai--- 本郵件來自HiNet WebMail -
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: ucd-snmp vs. net-snmp (foot print)

2009-08-03 Thread Juliana Purjo


 

> Date: Mon, 3 Aug 2009 08:34:28 +0100
> Subject: Re: ucd-snmp vs. net-snmp (foot print)
> From: d.t.shi...@liverpool.ac.uk
> To: jpu...@live.com
> CC: net-snmp-users@lists.sourceforge.net
> 
> 2009/8/3 Juliana Purjo :
> > But I fail to see the need
> > to have separate buffers for each objects.
> 
> Remember that a single SNMP request may contain several different
> MIB objects - possibly from different areas of the overall MIB tree.
> 
> If the agent attempted to re-use a single shared buffer for implementing
> multiple objects, then there is a very real danger that the processing for
> one object could over-write the processing for another. And introducing
> multiple such buffers would then need some mechanism for indicating
> which buffers were available. Extra complexity, additional overheads,
> and more to go wrong.
> 
> Given that in most environments, run-time size is not a significant concern,
> using a separate buffer for each object feels to be a simpler, and more
> (time-)efficient approach.


Also in embedded Linux, the executable size is more important than runtime 
memory size. The flash sizes are still measured in single digit megabytes... 
And the linked application size seems to be the same whether you have 100kb of 
static buffer or 1kb of static buffer, probably the number of static buffers 
also does not make a difference.


> 
> >   According to my understanding, as net-snmp is not multithreaded,
> > (without knowing the architecture very well) I think it might work to reset
> > the static buffer "unused area" pointer in the beginning of each request,
> 
> No - that wouldn't work.
> Although the agent itself is not multi-threaded, it is quite feasible for the
> processing of multiple requests to be interleaved - particularly if they 
> involve
> one or more AgentX subagents, or similar "delegated" or "delayed" MIB
> modules.
> 


Okay, more complicated than I thought... I agree the implementation effort 
probably is not worth the trouble.

 

> >> It would be fair to say that the Net-SNMP agent is not really geared
> >> towards embedded systems, where code size may well be of greater concern.
> >
> > Is there interest towards such tweaks?


My meaning was more to ask whether the project is open for such help.


> I have no idea. Given that we do get occasional queries about support
> for embedded systems, then possibly, yes.
> But given that nobody can be bothered to feed back any of their experiences
> in using this software on such systems, then perhaps no.


Out of personal curiosity I am interested in doing some experimentation... If 
this curiosity ever channels into action, I will let you know (just doing 
simple test compilation with bare minimum configuration would give some hint 
about the executable size difference, even doing this with the x86/x86_64 tool 
chain).


> Remember that this is an Open Source project. Nobody is paid to work
> on the code, or gets any recompense for their involvement with it.
> The bottom line is - if you need something doing, how badly?
> Do you need it enough to do the work yourself?


I remember very well this is an Open Source project, and I am very thankful for 
the work you and other people are doing to help this project, whether by 
answering uninformed questions or improving net-snmp...


> >> You'd probably need to use configure to select the MIB modules you want
> >> to include, then manually tweak the Makefiles (such as 'helpers/Makefile')
> >> to omit anything that these don't actually use.
> >
> > And I think in a perfect world, much of this tweaking work
> > could be done by an intelligent linker...?
> 
> The question is more - what object files would need to be linked.
> It's conceivable that an intellegent linker might be able to omit
> unnecessary modules, but I'm not entirely convinced.
> Particularly since the helper code ends up in a different library
> from the MIB implementation code. (And dynamic loading of
> modules muddies the water further, since such a module might
> require one of the hitherto unused helpers).


Yes, the linker could only optimize when statically linking the net-snmp... And 
this too is just hypothetical, meaningless babbling (unless done in a proper 
tool chain forum).


> I'm inclined to think that such selection is best done as part of constructing
> the build environment - perhaps by seeding the MIB module header files
> with suitable "config_require" directives, and stripping down the default
> list to the bare minimum.

 

Okay.


> 
> 
> Dave


_
Share your memories online with anyone you want.
http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best

snmpd not responding

2009-08-03 Thread arif hussain
Hi,

I am using 5.0.9 version,

i am able to build snmpd,
after loading it to h/w ,

$/usr/sbin/snmpd -f -L -D

It wont print anything (version number), and also no response to any snmp
commands,

What maybe the problem  ??



Thank's
-Arif
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Passing Stream of 16bit integer over snmp.

2009-08-03 Thread Dave Shield
2009/8/3 Sathish Babu :
> My requirement is to get the stream of 16 bit integer from an Agentx
> subagent. The size of the stream is variable.

Can you expand a bit on exactly what you are trying to model here.

If this is effectively an array of integer values, then SNMP would
normally structure this as a table, containing an integer-based column.

That may or may not be suitable for your requirements, but we'd
need to know a bit more detail of what you are trying to do,
before we could offer sensible suggestions.

Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: ucd-snmp vs. net-snmp (foot print)

2009-08-03 Thread Dave Shield
2009/8/3 Juliana Purjo :
>  But I fail to see the need
> to have separate buffers for each objects.

Remember that a single SNMP request may contain several different
MIB objects - possibly from different areas of the overall MIB tree.

   If the agent attempted to re-use a single shared buffer for implementing
multiple objects, then there is a very real danger that the processing for
one object could over-write the processing for another.   And introducing
multiple such buffers would then need some mechanism for indicating
which buffers were available.   Extra complexity, additional overheads,
and more to go wrong.

Given that in most environments, run-time size is not a significant concern,
using a separate buffer for each object feels to be a simpler, and more
(time-)efficient approach.



>  According to my understanding, as net-snmp is not multithreaded,
> (without knowing the architecture very well) I think it might work to reset
> the static buffer "unused area" pointer in the beginning of each request,

No - that wouldn't work.
Although the agent itself is not multi-threaded, it is quite feasible for the
processing of multiple requests to be interleaved - particularly if they involve
one or more AgentX subagents, or similar "delegated" or "delayed" MIB
modules.


>> It would be fair to say that the Net-SNMP agent is not really geared
>> towards embedded systems, where code size may well be of greater concern.
>
> Is there interest towards such tweaks?

I have no idea.   Given that we do get occasional queries about support
for embedded systems, then possibly, yes.
But given that nobody can be bothered to feed back any of their experiences
in using this software on such systems, then perhaps no.

Remember that this is an Open Source project.  Nobody is paid to work
on the code, or gets any recompense for their involvement with it.
The bottom line is - if you need something doing, how badly?
Do you need it enough to do the work yourself?




>> You'd probably need to use configure to select the MIB modules you want
>> to include, then manually tweak the Makefiles (such as 'helpers/Makefile')
>> to omit anything that these don't actually use.
>
> And I think in a perfect world, much of this tweaking work
> could be done by an intelligent linker...?

The question is more - what object files would need to be linked.
It's conceivable that an intellegent linker might be able to omit
unnecessary modules, but I'm not entirely convinced.
Particularly since the helper code ends up in a different library
from the MIB implementation code.   (And dynamic loading of
modules muddies the water further, since such a module might
require one of the hitherto unused helpers).

I'm inclined to think that such selection is best done as part of constructing
the build environment - perhaps by seeding the MIB module header files
with suitable "config_require" directives, and stripping down the default
list to the bare minimum.


Dave

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Passing Stream of 16bit integer over snmp.

2009-08-03 Thread Sathish Babu
Hi Team,

My requirement is to get the stream of 16 bit integer from an Agentx 
subagent. The size of the stream is variable.
Can anyone suggest me a best type(Eg: INTEGER, OCTET STRING etc) which I 
should use for building this mib?

Thanks & Regards,
Sathish.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users