Re: Re : snmp_varlist_add_variable

2006-07-26 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 25/07

License question

2006-07-26 Thread sade
Hello, I am using net-snmp library in my application in order to send snmp traps. I do not redestribute/modify but simply linking into the library. As far as I understood from the license, I need to quote the copyright notice in my documentation. Do I need do anything else? Do I need to add ack

RE: Issue when enabling SNMPD (w/ pr & dskTables support) at an early boot level

2006-07-26 Thread vic
Hi Dave, Yes, indeed. I appreciate all your guidance and patience in helping me out. Since prTable is now working, I included my boot-up script as one of the process to watch. For now, I'll just educate my users to simply ignore the non-existence of the dskTable if the boot script is running. They

is this the right list for Net::SNMP?

2006-07-26 Thread apurcel1
The CPAN site refers to this as the mailing list for the Perl module. Before I start asking questions, just want to be sure Im asking the right people. ;) Can someone please confirm? Regards Anthony - Take Surveys. Earn Cash.

SNMPD and Subagent crashed

2006-07-26 Thread Pamidipati Suresh-G20238
Title: Message All,   We are using Net-snmp-5.2.2 as Master and Subagent. We observed that both snmpd and subagent are crashed in one scenario.   1. snmpd crashed in the function snmp_oid_compare(). One of the function argument, OID2 was having the value 0x0, which resulted in crash. 2. Suba

Re: net-snmp agent on different node

2006-07-26 Thread Dave Shield
On 26/07/06, Praveen Karoshi <[EMAIL PROTECTED]> wrote: > I have installed net-snmp on one node and set the user and password > >From the local machine if I query > I get the reply. > > But if I try the same from a different node, if I try giving the ip address > instead of localhost I get Timeout

net-snmp agent on different node

2006-07-26 Thread Praveen Karoshi
Hi I have installed net-snmp on one node and set the user and password according to this link http://www.netadmintools.com/art485.html >From the local machine if I query snmpget -v 3 -u netadmin -l authNoPriv -a MD5 -A netadminpassword localhost sysUpTime.0 I get the reply. But if I try the sam

RE: Issue when enabling SNMPD (w/ pr & dskTables support) at an early boot level

2006-07-26 Thread vic
Hi Dave, > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > > Behalf Of Dave Shield > Sent: Wednesday, July 26, 2006 5:12 PM > To: vic > Cc: net-snmp-users@lists.sourceforge.net > Subject: Re: Issue when enabling SNMPD (w/ pr & dskTables support) at an > > early

Re: indicate answer can't be provided

2006-07-26 Thread Dave Shield
On 26/07/06, Alon Marx <[EMAIL PROTECTED]> wrote: > In my MIB module, (a few scalars generated by mib2c) what should the > handler functions return in case they are temporarily unable to supply > the value. Should they simply set invalid values in the > snmp_set_var_typed_value function, or is ther

indicate answer can't be provided

2006-07-26 Thread Alon Marx
Hi, I assume it's written somewhere in the FAQ, but I'm unable to find it :( In my MIB module, (a few scalars generated by mib2c) what should the handler functions return in case they are temporarily unable to supply the value. Should they simply set invalid values in the snmp_set_var_typed_valu

Re: about modifying files generated by mib2c

2006-07-26 Thread Dave Shield
On 26/07/06, 蔷 <[EMAIL PROTECTED]> wrote: unsigned char * var_jmtest(...) { static long long_ret; int VAR; switch (vp->magic) { case FIRSTKEY: *write_method = write_firstKey; VAR = 1;/* XXX */ *var_len =sizeof(VAR); return (u_char *

Re: Issue when enabling SNMPD (w/ pr & dskTables support) at an early boot level

2006-07-26 Thread Dave Shield
On 26/07/06, vic <[EMAIL PROTECTED]> wrote: > I'm inclined to think that snmpd maybe looking for some environment > variables/values/or something similar which may not yet be available at that > very early stage in boot-up. That's quite possible. We do tend to assume that you'll be running within

RE: Issue when enabling SNMPD (w/ pr & dskTables support) at an early boot level

2006-07-26 Thread vic
Hi Dave! (everyone), My goodness! Don't you sleep at all? ;o) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Well, it's probably worth starting the agent with the flags > '-Ducd-snmp/disk' and see what gets logged. Also, you say it fails > when you have "d

Re: how to install net-snmp binary

2006-07-26 Thread Dave Shield
On 25/07/06, SAFDAR <[EMAIL PROTECTED]> wrote:     How I intall red hat binary on red hat linux. rpm -i net-snmp-{whatever}.rpm Dave - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel

Re: Issue when enabling SNMPD (w/ pr & dskTables support) at an early boot level

2006-07-26 Thread Dave Shield
On 26/07/06, vic <[EMAIL PROTECTED]> wrote: > My goodness! Don't you sleep at all? ;o) Yes - but not at ten o'clock in the morning! :-) > Snmpd is not running at all. I have enabled my call with -L f /var/log/file > but nothing gets written, not even why it refused to run. I presume that syslo

about modifying files generated by mib2c

2006-07-26 Thread
i generated .c and .h of my test mib by mib2c and also can snmptraslate my test mib tree under experimental nod as you can see[EMAIL PROTECTED] project]# snmptranslate -IR -Tp jmtest+--jmtest(72)   +-- -RW- INTEGER   firstKey(1)     Range: 0..100  and then i modified the files generated by

how to install net-snmp binary

2006-07-26 Thread SAFDAR
Hi,     How I intall red hat binary on red hat linux. Safdar Raza [EMAIL PROTECTED] Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta.- Take Surveys. Earn Cash. Influence the Future of IT Join Sour

Issue when enabling SNMPD (w/ pr & dskTables support) at an early boot level

2006-07-26 Thread vic
Hi Dave, everyone, I have managed to identify where loading of snmpd fails. As a backgrounder, I mentioned that I load snmpd (along with other network services) at a very early boot-up stage prior to executing /sbin/init. As added info, normal execution of linux services are done by /sbin/init

Re : snmp_varlist_add_variable

2006-07-26 Thread fab casta
No, It's not the same question. It's not a question of understanding, I understand exactly the need of the the 0 or index to distiguish a scalar or an element  of an array... I just need the reference in the RFC, if existing, to make explicit the absolut need of a 0 for a scalar...   thanks -