Re: HELP - Net-SNMP AgentX - Problem with new MIB and snmpset

2021-05-14 Thread Wes Hardaker via Net-snmp-coders
Simone Moni writes: >         if ($request_info->getMode() == MODE_GET) { >             # ... generally, you would calculate value from oid >             if ($oid == new > NetSNMP::OID(".1.3.6.1.4.1.193.37.10.11.64.10.1.2.0")) { >             $request->setValue(ASN_OCTET_STR, $default_SP); >    

Re: --help and -h don't provide the same ouput

2017-08-15 Thread Bill Fenner
This works on UNIX. It may be a difference in how getopt is implemented in the Windows libc? I recommend filing a bug report at http://www.net-snmp.org/bugs/ . Bill On Wed, Aug 2, 2017 at 9:38 AM, cryptoservices--- via Net-snmp-coders < net-snmp-coders@lists.sourceforge.net> wrote: > Dear r

Re: Help to get started to integrate an agent module

2017-05-03 Thread Murali Karicheri
On 05/03/2017 01:02 PM, Murali Karicheri wrote: > On 05/03/2017 12:15 PM, Murali Karicheri wrote: >> Hello Coders, >> >> I am exploring how to add a agent mib module to net-snmp. I have the MIB >> definition >> text file which in this case is IEC-62439-3-MIB.txt that have copied to mibs >> folder

Re: Help to get started to integrate an agent module

2017-05-03 Thread Murali Karicheri
On 05/03/2017 12:15 PM, Murali Karicheri wrote: > Hello Coders, > > I am exploring how to add a agent mib module to net-snmp. I have the MIB > definition > text file which in this case is IEC-62439-3-MIB.txt that have copied to mibs > folder > of net-snmp source tree (fetched from git://git.code

RE: Help porting net-snmp to an embedded platform

2016-04-28 Thread Moreno Floris
the meantime, thanks again MF -Original Message- From: NetSNMP Mailbox [mailto:net-snmp-m...@freesnmp.com] On Behalf Of Robert Story Sent: lunedì 25 aprile 2016 19:41 To: Moreno Floris Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Help porting net-snmp to an embedded platform On W

Re: Help porting net-snmp to an embedded platform

2016-04-25 Thread Robert Story
On Wed, 13 Apr 2016 08:53:51 + Moreno wrote: MF> first of all I'd like to make sure I'm writing in the correct MF> mailing list. The fact is I'm not developing an external MF> application nor am I improving net-snmp code in any way. You're in the right place. MF> At this stage, everything wor

RE: Help Please

2014-03-21 Thread Srinivasa Rao Katta
own time. Thanks, Srinivas Srinivasa Rao Katta(System Administrator), skatt...@hotmail.com, > Date: Thu, 20 Mar 2014 21:58:46 +0100 > From: h...@hlangeveld.nl > To: skatt...@hotmail.com > Subject: Re: Help Please > > Hi Srinivas, > > On Solaris, having an

Re: Help! Convert OCTET string to READABLE string

2013-12-16 Thread Bill Fenner
This is a limitation in the execute / pass / pass_persist infrastructure: the truncation happens when creating the output to send to the script. setPass() sets up the command string and the arguments into passthru->command, which is a statically allocated buffer. setPassPersist() has the same prob

Re: Help! Convert OCTET string to READABLE string

2013-12-13 Thread namgmail
On 12/13/2013 1:52 PM, Niels Baggesen wrote: On Thu, Dec 05, 2013 at 06:04:22PM +0800, namgmail wrote: Hi Niels, This is my full command: Sender: update="a1 a1 a2 a3 ...a400 " #long string count from a1 to a400 snmpset -v1 -c private 192.168.4.113 *.1.3.6.1.4.1.5*

Re: Help! Convert OCTET string to READABLE string

2013-12-12 Thread Niels Baggesen
On Thu, Dec 05, 2013 at 06:04:22PM +0800, namgmail wrote: > Hi Niels, > > This is my full command: > > Sender: > update="a1 a1 a2 a3 ...a400 " #long string count from > a1 to a400 > snmpset -v1 -c private 192.168.4.113 *.1.3.6.1.4.1.5* > *s* "${update}" I would like

Re: Help! Convert OCTET string to READABLE string

2013-12-05 Thread namgmail
Hi Niels, This is my full command: Sender: update="a1 a1 a2 a3 ...a400 " #long string count from a1 to a400 snmpset -v1 -c private 192.168.4.113 *.1.3.6.1.4.1.5* *s* "${update}" Receiver: +>Added 1 more line in '/'/etc/snmp/snmpd.conf/" *pass* *.1.

Re: Help! Convert OCTET string to READABLE string

2013-12-03 Thread Niels Baggesen
Den 04-12-2013 07:09, namgmail skrev: > Now it work if i add "-Oa" or"-OT" in the snmpset command.I can see > readable string . > > But it shows only half of string not full string... Are you it isn't the agent that truncates the string? Try adding -d to the snmpset command to see the packets c

Re: Help! Convert OCTET string to READABLE string

2013-12-03 Thread namgmail
On 12/4/2013 6:55 AM, Magnus Fromreide wrote: Hi Magnus Fromreide, Thank you so much for your valuable suggestions. Now it work if i add "-Oa" or"-OT" in the snmpset command.I can see readable string . But it shows only half of string not full string... Thanks, Have a nice working day! Nam.

Re: Help! Convert OCTET string to READABLE string

2013-12-03 Thread Magnus Fromreide
On Tue, 2013-12-03 at 10:22 +0800, namgmail wrote: > Hi pro, > > I have a problem with SNMPSET ,this is my command: > > snmpset -v1 -c private > 192.168.x.x.1.3.6.1.4.1.426.8.1.20.5.1.1 s > > > If it's short string it work fine but with long string it automatic > convert to

Re: Help Please

2013-09-03 Thread Niels Baggesen
Den 03-09-2013 20:29, Srinivasa Rao Katta skrev: Now,/usr/local/sbin/snmpd was running fine on the server and it was build by V5-7 patch and it was not showing hard disk zfs volumes on net-snmp server. It was showing cpu,memory and swap and nics except zfs file systems. Good. So, it just does

Re: Help Please

2013-08-29 Thread Niels Baggesen
Den 29-08-2013 00:40, Srinivasa Rao Katta skrev: > Gone to net-snmp web site and downloaded the following source tar ball; > > net-snmp_V5-7-patches_snapshot_20130828_0403.tar.gz > > I have extracted the net-snmp_V5-7-patches_snapshot_20130828_0403.tar > under my existing net-snmp-5.7.2 source roo

Re: Help Please

2013-08-28 Thread Niels Baggesen
On Fri, Aug 23, 2013 at 12:50:14PM -0400, Srinivasa Rao Katta wrote: > Niels, > > Thanks for the information. > > I run the "/usr/local/sbin/snmpd -Dall" on the cmd line prompt and Please > find attached /var/log/snmpd.log for output. > > I set the following 64 bit lib path before to run the

Re: Help Please

2013-08-22 Thread Niels Baggesen
Den 23-08-2013 00:01, Srinivasa Rao Katta skrev: > > Niels, > > Thanks for the information. > > Please find attached text file,Which has gdb information. > > Please let me know,If You have any questions or concerns. I sure have concerns about the fact that gdb does not work on that system :-( Tha

Re: Help Please

2013-08-22 Thread Niels Baggesen
Den 22-08-2013 12:16, Srinivasa Rao Katta skrev: > As per your advise,I have compiled net-snmp 5.7.2 with "--with-cc="gcc > -m64" option and now I was not getting following error mesg in the > /var/log/snmpd.log file; [snip] > Here is the new /var/log/snmpd.log information; > > root@M5000

Re: Help Please

2013-08-21 Thread Niels Baggesen
Den 21-08-2013 21:16, Srinivasa Rao Katta skrev: > File system /Zones3 was 3.0 TB size. > > Could you please let me know,How can I fix this problem. You should compile net-snmp as a 64-bit application when you have such large file systems. Try option "--with-cc="gcc -m64" to configure. > Net-snm

Fwd: Re: Help with creating a dymically loaded module

2012-06-18 Thread Niels Baggesen
Oprindelig meddelelse Subject: Re: Help with creating a dymically loaded module Date: Mon, 18 Jun 2012 19:48:59 +0200 From: Niels Baggesen To: Cyrus Virus CC: net-snmp-coders@lists.sourceforge.net Den 13-06-2012 20:18, Cyrus Virus skrev: >> sudo snmpd

Re: Help with creating a dymically loaded module

2012-06-18 Thread Niels Baggesen
Den 13-06-2012 20:18, Cyrus Virus skrev: >> sudo snmpd -f -L nstAgentPluginObject.so, dldmod You lost the -D when copying from the wiki, and added a significant blank ... % snmpd -f -L -DnstAgentPluginObject,dlmod /Niels -- Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net The

Re: Help with creating a dymically loaded module

2012-06-18 Thread Dave Shield
On 13 June 2012 19:18, Cyrus Virus wrote: > I can compile the code using the make file, but when I try to run it I > get this error: > >> sudo snmpd -f -L nstAgentPluginObject.so, dldmod Where did you find that command? The instructions for loading the dynamic module in the tutorial you mentioned

Re: Re: help needed wrt net-snmp windows 64bit

2012-02-29 Thread Fulko Hew
On Wed, Feb 29, 2012 at 12:52 PM, Bart Van Assche wrote: > On Feb 29, Markus Gaugusch wrote: > > On Feb 29, Vijaya Simha Reddy Aedavelli > wrote: > > > I want to develop the snmp agent, using net-snmp on Windows 64bit > > > OS(Windows 7/8). Is this possible? > > > > > > I've seen Win32 is availa

Re: Re: help needed wrt net-snmp windows 64bit

2012-02-29 Thread Bart Van Assche
On Feb 29, Markus Gaugusch wrote: > On Feb 29, Vijaya Simha Reddy Aedavelli wrote: > > I want to develop the snmp agent, using net-snmp on Windows 64bit > > OS(Windows 7/8). Is this possible? > > > > I've seen Win32 is available. What about 64bit? > > Just compile it yourself, there is some infor

Re: help needed wrt net-snmp windows 64bit

2012-02-29 Thread Markus Gaugusch
Just compile it yourself, there is some information in the list archives available. On Feb 29, Vijaya Simha Reddy Aedavelli wrote: > Hi, > > I want to develop the snmp agent, using net-snmp on Windows 64bit > OS(Windows 7/8). Is this possible? > > I've seen Win32 is available. What about 64bit?

Re: HELP

2011-11-29 Thread Dave Shield
On 9 November 2011 05:03, Deepak MVK wrote: > I was successfully able to install net-snmp5.7.1 on my ubuntu laptop. > However when I try to read the version number using snmpget --version I am > getting this error: > snmpget: error while loading shared libraries: libnetsnmp.so.30: > c

RE: Help on the error: failed to create group entry

2011-06-20 Thread ZHAO Jing G
Wes, Thanks a lot for your explanations. Best Regards, Jing -Original Message- From: Wes Hardaker [mailto:harda...@users.sourceforge.net] Sent: 2011年6月17日 21:58 To: ZHAO Jing G Cc: Dave Shield; net-snmp-coders@lists.sourceforge.net Subject: Re: Help on the error: failed to create

Re: Help on the error: failed to create group entry

2011-06-17 Thread Wes Hardaker
> On Mon, 13 Jun 2011 15:51:02 +0800, "ZHAO Jing G" > said: ZJG> So could you please confirm that 32 will be the max length? Yes, USM user names should not be longer than 32 characters. Or more correctly, it's not the USM that limits it, it's really the VACM. -- Wes Hardaker Please ma

RE: Help on the error: failed to create group entry

2011-06-14 Thread ZHAO Jing G
lease confirm that 32 will be the max length? Thanks a lot! Best Regards, Jing -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: 2011年6月13日 15:37 To: ZHAO Jing G Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Help o

Re: Help on the error: failed to create group entry

2011-06-13 Thread Dave Shield
On 13 June 2011 06:48, ZHAO Jing G wrote: > It seems the problem comes about when I tried with a long security name: > >My security name is: sec_testuser_ hss01hssdhusahalcate Is there a space in that security name? That is likely to confuse the config parser. Try omitting the space. > is

Re: Help on net-snmp subagent -Crash

2010-10-17 Thread Sathish Chandrasekaran
r set operation.Any know issues or what is the proper place to put break point and debug this.Any suggestion to rootcause this issue ?         Regards, -Sathish       --- On Wed, 13/10/10, Wes Hardaker wrote: From: Wes Hardaker Subject: Re: Help on net-snmp subagent -Crash To: "Sathish Chan

Re: Help on net-snmp subagent -Crash

2010-10-13 Thread Wes Hardaker
You're almost certainly going to need to run it in a debugger... Some useful information on doing so can be found at: http://www.net-snmp.org/wiki/index.php/Debugger -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net -

Re: Help needed

2010-09-10 Thread Dirk-Willem van Gulik
Op 10 sep 2010, om 15:24 heeft Katta, Srinivasa (Contractor) het volgende geschreven: > installed the net-snmp-5.4.2.1(got binary pkg from Sun freeware) on solaris > 9 and it is installed without any problem. > .. > error on subcontainer 'interface container' insert (-1) > You can ignore tha

Re: Help needed

2010-09-10 Thread Wes Hardaker
> On Fri, 10 Sep 2010 09:24:21 -0400, "Katta, Srinivasa (Contractor)" > said: KS(> error on subcontainer 'interface container' insert (-1) That's from an old bug you can actually fairly safely ignore the messages from. KS(> fw1# /usr/local/bin/snmpget -v 2c -c public localhost sysDesc

Re: Help

2010-07-08 Thread Max
On Thu, Jul 8, 2010 at 11:51 PM, Wes Hardaker wrote: >> On Thu, 8 Jul 2010 09:13:43 +0200, "OMRI Elaid" >> said: > > OE> Could you please send me the exact format of a trap snmp (in details). > > -- BEGIN SNMPv3Message                                      (MPC section 6) Nicely stated!

Re: Help

2010-07-08 Thread Wes Hardaker
> On Thu, 8 Jul 2010 09:13:43 +0200, "OMRI Elaid" > said: OE> Could you please send me the exact format of a trap snmp (in details). -- BEGIN SNMPv3Message (MPC section 6) SNMPv3Message ::= SEQUENCE { -- identify the layout of the SNMPv3Message

Re: Help in getting inform work in v3

2010-04-13 Thread Dave Shield
On 13 April 2010 06:02, Manjit wrote: > Hi, > How to configure a user for noauth using snmptrapd.conf. $ man snmptrapd.conf authUser TYPES [-s MODEL] USER [LEVEL [OID | -v VIEW ]] authorises SNMPv3 notifications with the specified user to trig- ger the t

Re: Help in getting inform work in v3

2010-04-12 Thread Manjit
Hi, How to configure a user for noauth using snmptrapd.conf. Regards, Manjit Wes Hardaker wrote: >> On Mon, 12 Apr 2010 06:20:44 -0700, Fatima Peter >> said: >> > > FP> So, for "noauth" user, we have to specify "disableAuthorization yes" > FP> in the snmptrapd confgurati

Re: Help in getting inform work in v3

2010-04-12 Thread Wes Hardaker
> On Mon, 12 Apr 2010 06:20:44 -0700, Fatima Peter > said: FP> So, for "noauth" user, we have to specify "disableAuthorization yes" FP> in the snmptrapd confguration. You don't have to; instead you need to still configure a user in the usmTable for snmptrapd and authorization that allow

Re: Help in getting inform work in v3

2010-04-12 Thread Fatima Peter
What Manjit says seems to be correct. It worked fine even when I specify the "-e ", it goes through engineID discovery first. I also found that the engineID of "snmptrapd" changes at every invocation as 2nd part of engineID seems to be the "start time" of snmptrapd. Thanks, Fatima On Mon, Apr 12

Re: Help in getting inform work in v3

2010-04-12 Thread Manjit
Hi All, I believe if you send a snmp inform request with *noauth p*rotocol, snmptrapd.conf need to be configure differently: Follwing are working for me : snmptrap -d -Ci -v 3 -l noauth -u informtest localhost 0 .1.3.6.1.6.3.1.1.5.4.0 Content of snmptrapd.conf : disableAuthorization yes Or you

Re: Help in getting inform work in v3

2010-04-12 Thread Dave Shield
On 9 April 2010 16:30, Fatima Peter wrote: >   If we remove the "engineID" from "snmptrap", I think the other end > will reject due to engineID. Not quite. If you remove engineID from the "snmptrap -Ci" call, then the client will first probe the trap receiver to determine the appropriate engine I

Re: help : mib2c conversion for OBJECT-GROUP

2010-04-12 Thread Dave Shield
On 10 April 2010 04:24, Vivekanandan wrote: > How can i utilize the system MIB from my Enterprise MIB.. > for example SysLocation(1.3.6.1.2.1.1.6).i want add this parameter to my > Enterprise MIB. Sorry - that doesn't make sense. The agent will provide information from a wide range of MI

Re: help : mib2c conversion for OBJECT-GROUP

2010-04-09 Thread Vivekanandan
Hello sir, Thanks for response. How can i utilize the system MIB from my Enterprise MIB.. for example SysLocation(1.3.6.1.2.1.1.6).i want add this parameter to my Enterprise MIB. *snmp query for 1.3.6.1.4.1.1000.1.sysLocation > snmp agent snmp Response should be output of 1.3.6.1

Re: Help in getting inform work in v3

2010-04-09 Thread Fatima Peter
Dave, If we remove the "engineID" from "snmptrap", I think the other end will reject due to engineID. I an anycase, I tried it and here is what I found. "snmptrapd" responds to the first message probably with the engineID which "snmptrap" is not responding to correctly. At the "snmptrap" end: "

Re: Help in getting inform work in v3

2010-04-09 Thread Manjit
To receive inform the snmptrapd.conf need not to have -e engineID . Please check http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd_to_receive_SNMPv3_notifications#Configuring_a_SNMPv3_INFORM_User If you remove -e from snmptrap command then also snmptrapd will receive infrom because

Re: Help in getting inform work in v3

2010-04-09 Thread Dave Shield
On 9 April 2010 11:53, Fatima Peter wrote: > snmptrap is sending inform message but is not getting inform response > back. I enabled debug with -d and here is the exchange. If I entered > just ".1.3.6.1.6.3.1.1.5.4.", I got an usage error: The t->local etc > are output from snmptrap. It is sending

Re: Help in getting inform work in v3

2010-04-09 Thread Fatima Peter
Thanks Dave for the response. snmptrap is sending inform message but is not getting inform response back. I enabled debug with -d and here is the exchange. If I entered just ".1.3.6.1.6.3.1.1.5.4.", I got an usage error: The t->local etc are output from snmptrap. It is sending INFORM(A6) but getti

Re: Help in getting inform work in v3

2010-04-09 Thread Dave Shield
On 9 April 2010 03:16, Fatima Peter wrote: > I sent an inform message to the trap-server with the following command: > > $ sudo snmptrap Why "sudo"? Sending an SNMP request does not require special privileges, so there seems no reason to run this as root. > -Ci -v 3 -e 0x80001f888085b

Re: help : mib2c conversion for OBJECT-GROUP

2010-04-09 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 8 Ap

Re: help : mib2c conversion for OBJECT-GROUP

2010-04-08 Thread Dave Shield
On 8 April 2010 07:04, Vivekanandan wrote: > how to use MIB2C for object-group. You don't. OBJECT-GROUP is purely a housekeeping structure. It's not actually used within the agent. Dave -- Download Intel® Parallel Stud

Re: Help in getting inform work in v3

2010-04-07 Thread Fatima Peter
I meant: snmpd-trapsess -v 3 -t 1 -r 3 -e 0x80001f888085b94c4882d8bc4b -l noauth -u inter -Ci 10.10.16.118:162 or snmpd-trapsess -v 3 -t 1 -r 3 -e 0x80001f888085b94c4882d8bc4b -l noauth -u inter -n inter -Ci 10.10.16.118:162 Here is my snmptrapd.conf file: " # snmptrapd.conf doNotRetainNotifica

Re: Help with Trap configuration - Specifying trap port with :port

2010-04-06 Thread Fatima Peter
Thanks Dave. I am afraid we were doing both :-). i.e create_trap_session( "localhost:162", 162, "public", SNMP_VERSION_1, SNMP_MSG_TRAP); It is possible the call to snmp_log was removed in the older code. Thanks very much for the quick response, Fatima On Tue, Apr 6, 2010 at 12:24 AM, Dav

Re: Help with Trap configuration - Specifying trap port with :port

2010-04-06 Thread Dave Shield
On 6 April 2010 03:18, Fatima Peter wrote: > Hello All, >   I am not sure whether this is new issue or has been discussed already. > We used to be able to specify trap while creating trap session like > "host:port" in earlier versions. But in net-snmp.5.5, we seem to be > getting the following not

Re: Help with vacm access mask issue

2010-03-23 Thread Dave Shield
On 23 March 2010 13:15, Fatima Peter wrote: > .. My understanding of the mask is "1 means that the oid > tree is in view and "0" means not in view. Another colleague told me > that "1" means that we need an exact match and "0" means the view does > not care about the "oid" tree. See RFC 3415,

Re: Help with vacm access mask issue

2010-03-23 Thread Fatima Peter
Hi Dave, Thanks for the input. I didn't know what "rocommunity global" does and I will try retesting with rocommunity removed and post the results. But, it does not look like the results match the function of "vacm mask", isn't it. My understanding of the mask is "1 means that the oid tree is i

Re: Help with vacm access mask issue

2010-03-23 Thread Dave Shield
On 22 March 2010 15:20, Fatima Peter wrote: > #   sec.name  source  community > com2sec test1 10.10.0.0/16    global > > rocommunity global If you are running view tests using the community name "global", then it's not really sensible to configure full access for this community st

Re: Help with vacm access mask issue

2010-03-22 Thread Fatima Peter
Hi Robert, Find below snmpd.conf file followed by results of my test: " # First, map the community name (COMMUNITY) into a security name # (local and mynetwork, depending on where the request is coming # from): #

Re: Help with vacm access mask issue

2010-03-22 Thread Robert Story
On Sun, 21 Mar 2010 19:06:52 -0700 Fatima wrote: FP> Hi, FP>We are using net-snmp version 5.5 and we have run into the vacm FP> mask issue. We followed the example given in FP> http://www.insanum.com/docs/vacm.html, namely: FP> FP> (A) subtree: 1.3.6.1.2.1 FP> mask: 1 1 1 1 1 1 FP> (B

Re: help needed [snmpconf utility]

2009-11-30 Thread Dave Shield
2009/11/19 sandeep patra : > But using the snmpconf utility, I am able to generate only the following line > master  agentx > but not able to create the line responsible for generating agentxsocket at > the default location /var/agentx/master. > > Please help me in this regard. That doesn't ma

Re: Help need for Snmp V3 trap

2009-11-18 Thread Wes Hardaker
> On Thu, 5 Nov 2009 00:48:04 -0500, "Senthil Nathan" > said: SN> snmpsess -v 3 -l authPriv -u user1 a MD5 -A user123 -x DES -X user1234 SN> trapsess -v 3 -l authPriv -u user1 -a MD5 -A user123 -x DES -X user1234 ... SN> The confugrations for /var/net-snmp/snmpd.conf Those configurati

Re: Help needed:writing a dynamically loadable module

2009-09-14 Thread Wes Hardaker
> On Mon, 14 Sep 2009 10:59:31 +0530, Hemant Soundankar > said: HS> Error: couldn't open a master agentx socket to listen on (): It means you don't have permission to open the default agentx socket. If you're running it as yourself, or another user that is not root, then you could have

Re: Help!! (extending net-snmp agent)

2009-09-10 Thread Hemant Soundankar
Hello Sir, Thank you for the reply. I restarted the master agent without the ifTable mib and the subagent executed successfully. -Hemant Soundankar On Thu, Sep 10, 2009 at 1:38 AM, Magnus Fromreide wrote: > On Thu, Sep 10, 2009 at 01:20:11AM +0530, Hemant wrote: > > Hello Sir, > >I am new to

Re: Help!! (extending net-snmp agent)

2009-09-09 Thread Magnus Fromreide
On Thu, Sep 10, 2009 at 01:20:11AM +0530, Hemant wrote: > Hello Sir, >I am new to net-snmp so please bear with me. This problem might be silly > for you. > I tried to extend snmp agent by running down the tutorial provided on > http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/ >

Re: help! how to write subagent?

2009-09-03 Thread Magnus Fromreide
On Thu, 2009-09-03 at 09:56 +0100, Dave Shield wrote: > 2009/9/2 Magnus Fromreide : > > This looks like patch 1681035. (r15961) > > It is solved on HEAD and works in 5.5rc3 > > > > What version are you using? > > Note that this particular patch is also included > in releases 5.3.3 and 5.4.2 Yes,

Re: help! how to write subagent?

2009-09-03 Thread Dave Shield
2009/9/2 Magnus Fromreide : > This looks like patch 1681035. (r15961) > It is solved on HEAD and works in 5.5rc3 > > What version are you using? Note that this particular patch is also included in releases 5.3.3 and 5.4.2 Dave -

Re: help! how to write subagent?

2009-09-02 Thread Magnus Fromreide
On Wed, 2009-09-02 at 14:56 +0530, ashutosh shanker wrote: > hi, > > i have tried the example given on net-snmp site. but it is giving me > an error message > > generating the tmporary code file: netsnmptmp.12086.c > voidinit_nstAgentSubagentObject(void); > checking for init_nstAge

Re: help regarding Snmptrap

2009-09-02 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. ] 2009/9/

Re: help regarding Snmptrap

2009-09-02 Thread Dave Shield
2009/9/2 ashutosh shanker : > can sm one tell me how to generate trap for the events happening to the > objects of my MIB. First question - what circumstances should trigger this trap? How should the agent know that a trap is required? A couple of examples would be useful. Dave

Re: help needed regarding registering callback functions

2009-09-01 Thread Dave Shield
2009/9/1 sandeep patra : > I am writing a snmp subagent (say name xyz), whose purpose is to capture all > v2traps send out by the snmp master agent. I'm not sure that will be possible. The master agent and the subagent are separate processes. The only communication between them is as specified in

Re: Help needed to monitor CPU utilization for a particular running process

2009-08-28 Thread Dave Shield
2009/8/28 sandeep patra : > So if within a time duration of 1 minute this couter gets incremented by x > then the CPU utilization percentage would be equals to = (x / (60 * 100)) Probably, yes. Though I suggest you do some testing to verify this. (Particularly if you've got a multi-CPU system).

Re: Help needed to monitor CPU utilization for a particular running process

2009-08-28 Thread sandeep patra
Thank You very much Dave. I was just comparing with the output of top command which gives me percentage of CPU utilization of each process. Yes it should be over a time period. So if within a time duration of 1 minute this couter gets incremented by x then the CPU utilization percentage would be e

Re: Help needed to monitor CPU utilization for a particular running process

2009-08-28 Thread Dave Shield
2009/8/28 sandeep patra : > I think HOST-RESOURCES-MIB::hrSWRunPerfCPU > would provide me "the number of centi-seconds of the total system CPU > resource that a running process is consuming" Yes - this gives you the raw data that you need. > but i want to monitor the current percentage of CPU a p

Re: Help needed to monitor CPU utilization for a particular running process

2009-08-28 Thread sandeep patra
Hi Dave, I think HOST-RESOURCES-MIB::hrSWRunPerfCPU would provide me "the number of centi-seconds of the total system CPU resource that a running process is consuming" but i want to monitor the current percentage of CPU a perticular process is consuming. (e.g. 10% of CPU) I have seen that HOST-RE

Re: Help needed to monitor CPU utilization for a particular running process

2009-08-28 Thread Dave Shield
2009/8/28 sandeep patra : > I am using DISMAN-EVENT-MIB for monitoring system resources > and for generating traps when some threashold reaches. > I want the snmp master agent to generate Trap when a process > eats  (say greater than 10%) of CPU. How can I do this? That sounds like the object HOST

Re: help

2009-08-28 Thread Dave Shield
2009/8/28 ashutosh shanker : > I have plannet to monitor the status of TCP/IP ports status. What exactly do you mean by that? There is already a MIB table to report on the status of TCP ports (TCP-MIB::tcpConnectionTable). Is this suitable for your needs? If not, why not? What functionality i

Re: help me with MIB

2009-08-28 Thread Dave Shield
2009/8/28 ashutosh shanker : > I am new to this field, I don't know how to express my problem. > I have post my problem couple of hours back and still not recieved any > reply. Two hours? That's an incredibly long time to wait - particularly since it's only 8 am in the UK, and barely turned midnig

RE: help me with MIB

2009-08-28 Thread raja.singh
Ashutosh, Are you sure that your SNMP request is reaching to to Agent. Please attach the log for more clarification. From: ashutosh shanker [mailto:ashutoshshanke...@gmail.com] Sent: Friday, August 28, 2009 12:21 PM To: net-snmp-coders@lists.sourceforge.net S

Re: Help regarding context name

2009-08-27 Thread Deepali Singalkar
My intention wasn't the demand for dynamic context names. On Thu, Aug 27, 2009 at 12:59 PM, Dave Shield wrote: > 2009/8/26 Deepali Singalkar : > > When is the support for dynamic context names expected? > > When someone writes the necessary code. > > Remember, this project is effectively

Re: Help regarding context name

2009-08-27 Thread Dave Shield
2009/8/26 Deepali Singalkar : >     When is the support for dynamic context names expected? When someone writes the necessary code. Remember, this project is effectively a part-time hobby for most of those involved with it. All of the core developers have other (paid) employment, and this mu

Re: Help regarding context name

2009-08-26 Thread Deepali Singalkar
Thanks for clarification! When is the support for dynamic context names expected? On Wed, Aug 26, 2009 at 10:47 PM, Wes Hardaker < harda...@users.sourceforge.net> wrote: > > On Wed, 26 Aug 2009 12:53:01 +0530, Deepali Singalkar < > deepali.singalk...@gmail.com> said: > > DS> Here I n

Re: Help regarding context name

2009-08-26 Thread Wes Hardaker
> On Wed, 26 Aug 2009 12:53:01 +0530, Deepali Singalkar > said: DS> Here I need to support same MIB tree for multiple virtual devices from same DS> subagent. DS> I tried setting the contextname in /usr/local/share/snmp/snmpd.conf file DS> with the defContextName directive. DS> It fails w

Re: Help on getting an interface name

2009-06-15 Thread Robert Story
On Mon, 1 Jun 2009 06:09:56 -0400 lanas wrote: L> In getName(int index) (mibgroup/tunnel.c) there are two ways to L> get the interface name. Here are excerpts: L> L> The first way: L> L> #ifndef USING_IF_MIB_IFTABLE_IFTABLE_MODULE note that the default is to use the iftable module, so this code

Re: HELP!Who can tell me how can I get a row from a table?

2009-06-15 Thread Robert Story
On Mon, 08 Jun 2009 08:24:29 GMT m...@sohu.com wrote: MC> I want to get some data from a table,in the form of a row at a time,that is to say ,how can get an entry from a table at a time?Thanks! Do a get with a varbind for each row in the column. --

Re: help required

2009-04-05 Thread Les Mikesell
Dave Shield wrote: > 2009/4/5 anshul mittal : >> I have been told to somehow modify the snmptable.c(source code >> provided with net-snmp) .The idea is to first find the index of the >> process from the hrSWRun by inputting the name and then using this >> index to get the CPU usage and memory usage

Re: help required

2009-04-05 Thread Dave Shield
2009/4/5 anshul mittal : > I have been told to somehow modify the snmptable.c(source code > provided with net-snmp) .The idea is to first find the index of the > process from the hrSWRun by inputting the name and then using this > index to get the CPU usage and memory usage from hrSWRunPerf. I don

Re: Help Required on Net-SNMP

2009-03-11 Thread Robert Story
On Mon, 23 Feb 2009 10:01:42 +0530 Maruthi wrote: MG> I am G. Maruthi Prasad. I am currently designing an application where I need to simulate the SNMP device. I am planning to use Net-SNMP for this application. Can anybody help me how to extend my private mib with Net-SNMP? You can use the over

RE: help needed with root oid and getnext operation

2009-03-02 Thread EYRE Bernadette
; net-snmp-coders@lists.sourceforge.net Subject: Re: help needed with root oid and getnext operation 2009/2/28 EYRE Bernadette : > One of my original problem was that when using snmpwalk command OK - so you are using "snmpwalk". That's definitely relevant here > on say

Re: help needed with root oid and getnext operation

2009-02-28 Thread Dave Shield
2009/2/28 EYRE Bernadette : > One of my original problem was that when using snmpwalk command OK - so you are using "snmpwalk". That's definitely relevant here > on say a column (without any instance index) of one of the tables, That's pretty much what I expected, but you hadn't given suffi

RE: help needed with root oid and getnext operation

2009-02-27 Thread EYRE Bernadette
e Cc: Mike Ayers; net-snmp-us...@lists.sourceforge.net; harish...@hp.com Subject: Re: help needed with root oid and getnext operation 2009/2/26 Bernadette Eyre : > My code registers organization root oid. > > (I substituted y and x in the oid to conceal some proprietary stuff) Fair

Re: help needed with root oid and getnext operation

2009-02-26 Thread Bernadette Eyre
Hi David, I first sent this email to users list instead of coders where I'm subscribed and the email bounced, apology if you get two copies of this email --- my comments are embedded below. On Thu, 2009-02-26 at 08:44 +, Dave Sh

Re: Help Required on Net-SNMP

2009-02-23 Thread Dave Shield
2009/2/23 Sathyanarayana Murthy, Harish Kolar : > Now my question is how to get the details like hard disc drives, running > processes etc.. > since the OIDs will be having a number appenede to the standard OIDs like That's the purpose of the GETNEXT request. As I said before: >> Have a look at

RE: Help Required on Net-SNMP

2009-02-23 Thread Sathyanarayana Murthy, Harish Kolar
processes are running. Thanks Harish -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Monday, February 23, 2009 5:17 PM To: Sathyanarayana Murthy, Harish Kolar Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Help

Re: Help Required on Net-SNMP

2009-02-23 Thread Dave Shield
2009/2/23 Sathyanarayana Murthy, Harish Kolar : > Now i am looking to get details like list of running processes and list of > hard > disk storage drives etc.. but not able to achieve this. > > I know the OID text corresposning to them like > > H/W disk storage drives : > "host.hrStorage.hrStorag

RE: Help Required on Net-SNMP

2009-02-23 Thread Sathyanarayana Murthy, Harish Kolar
Hi all, I am using net-snmp in my C++ project to get the profile details of a node in windows. I am able to get the basic details like sysDescr.0. and is working fine. Now i am looking to get details like list of running processes and list of hard disk storage drives etc.. but not able to a

Re: Help on SNMP Tables

2009-02-05 Thread Robert Story
On Wed, 4 Feb 2009 13:59:12 - Baltazar wrote: BF> I want to know if it is possible to dynamically adicionate rows to a "basic" table (without row-status column). BF> If yes, how can I do it ? BF> If no, why is it not possible ? Yes and no.. It depends on the table. Some tables will create a

Re: help

2008-12-16 Thread Thomas Anders
jamshid omidi wrote: > i use freebsd 7 > and i went install snmp from port collection > i go to /usr/ports/net-mgmt/net-snmp and run > make > in middle of work suddenly power down and my system power off > now when i want install and run make again > a message appear like this > "stop in /usr/ports

RE: Help with Table column OID

2008-09-24 Thread sasson_shuki
ers@lists.sourceforge.net Subject: RE: Help with Table column OID Hi Shuki! First of all, thanks for your answer!!! Well, the .h file follow the numbers correctly, it also jumps. What I mean is, that as the same behaviour that appears in the MIB. I'm just wondering if that is possible, to have colu

RE: Help with Table column OID

2008-09-24 Thread Angela Lazaro
net-snmp-coders@lists.sourceforge.net Subject: RE: Help with Table column OID Hi Angela, when you apply mibc -c c mib2c.iterate.conf you get as a result both .h file and a .c file. Example: /* * Note: this file originally auto-generated by mib2c using * : mib2c.iterate.conf,v 5.14 2004/10/

  1   2   3   >