Re: I am struggling to understand the snmptranslate command

2006-07-13 Thread Jeff Silverman
Dave Shield wrote >> >> [EMAIL PROTECTED] ~]$ snmpwalk -v 2c -Le -c public localhost .1.3.6.1.2.1 >> SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue >> Mar 14 15:48:33 EST 2006 i686 >> : >> SNMPv2-MIB::sysORUpTime.8 = Timeticks: (20) 0:00:00.20 >> HOST-RESOURCES-MIB::hr

RE: [Query] mib of type TransportAddress

2006-07-13 Thread sudhir.parisaboyina
  Hi again,   Thanks for the Update, I am really happy that my query was looked into J. But still it’s half way as from agent side I am able to capture the value under a string (u_char*) data type and I am able to persist, but if I give the same snmp set cmd as hex-string following the d

Allocation memory failed when start snmpd in uclinux

2006-07-13 Thread forrestlam
Hi,I want to run net-snmp 5.2.1 in uCLinux, but when I start snmpd, it is shown that malloc is failed. Would you please tell me how to configure the net-snmp ,so that I can run it successfuly. Thanks. Below is the message: snmpd& Allocation of length 1319711 from process 24 failed Buffer memory:   

Net-SNMP 5.2.3 released

2006-07-13 Thread Thomas Anders
Net-SNMP 5.2.3 has been made available on our download site ( http://www.net-snmp.org/download/ ). This is a maintenance release in the 5.2.x branch. Official patches for this or any of the Net-SNMP releases will be available (as always) at http://www.net-snmp.org/official_patches/ . FYI, we'll

Re: exec outputs dupes

2006-07-13 Thread Sergey Matveychuk
Wes Hardaker wrote: >> On Thu, 13 Jul 2006 20:44:16 +0400, Sergey Matveychuk <[EMAIL >> PROTECTED]> said: > > Sergey> Every command executed twice. Why? > > run snmpd with the following arguments and find out why the file (or a > duplicate) is being read twice: > > snmpd -f -Le -Dread

Re: Where to begin to make a little agen for my software.

2006-07-13 Thread Wes Hardaker
> On Thu, 13 Jul 2006 13:19:59 +0200, Manuel Cano Muñoz <[EMAIL PROTECTED]> > said: Manuel> Where can I begin to read to make a little lib to expose some Manuel> values? http://www.net-snmp.org/tutorial/toolkit is the best place to start for coding our agent. But for reading about MIBs

Re: [Query] mib of type TransportAddress

2006-07-13 Thread Wes Hardaker
> On Wed, 12 Jul 2006 21:57:31 +0530, <[EMAIL PROTECTED]> said: sudhir> But what value should Manager pass when he has to do a snmp sudhir> set on this? sudhir> For example: sudhir> # snmpset -v2c -c motrw 127.0.0.1 clSnmpBootstrapServerAddress.0 = sudhir> 100874cf00a2 sudhir> CNEOMI-LITE-

Re: unknown value

2006-07-13 Thread Wes Hardaker
> On Thu, 13 Jul 2006 08:47:38 -0400, [EMAIL PROTECTED] said: cnelson> In various MIBs I see unknown sometimes as the lowest value cnelson> and sometimes as the highest. Most of the time people like to put unknown first so that when people add enums to the mib in the future unknown isn't stuc

Re: exec outputs dupes

2006-07-13 Thread Wes Hardaker
> On Thu, 13 Jul 2006 20:44:16 +0400, Sergey Matveychuk <[EMAIL PROTECTED]> > said: Sergey> Every command executed twice. Why? run snmpd with the following arguments and find out why the file (or a duplicate) is being read twice: snmpd -f -Le -Dread_config -- Wes Hardaker Sparta, In

Re: Disk Monitoring??

2006-07-13 Thread Wes Hardaker
> On Mon, 10 Jul 2006 15:17:44 -0500, "Russ Lavoie" <[EMAIL PROTECTED]> > said: Russ> "A Threshold has been exceeded on node: server_name.domain, Russ> interface:IP_ADDRESS. The parameter ns-disk-1-pct reached a value of 1.0 Russ> while the threshold is 5.0. This alert will be rearmed whe

Re: why mib2c return "a valid OID" error?

2006-07-13 Thread Wes Hardaker
> On Thu, 13 Jul 2006 11:33:17 +0800, samuel <[EMAIL PROTECTED]> said: samuel> Cannot find module (IP-MIB): At line 0 in (none) Taking a guess, is your SNMP perl module older than your snmptranslate installation? They don't seem to be using the same paths or something. You could try setting

passive or ative actives over net-snmp

2006-07-13 Thread Sergio Alves de Lima Junior
Dear Friends,I learning snmp protocol and net-snmp implementation and have some doubts:1 - Is possible define MIBs to interact system? Example: apply rules of firewall or remove rules of firewall.2 - Change values of configuration the system? Example: change inet addresses in select device. Regards

exec outputs dupes

2006-07-13 Thread Sergey Matveychuk
My snmpd.conf: rocommunity xxx disk / disk /usr syslocation "XXX" syscontact [EMAIL PROTECTED] exec cpu0Load /export/home/sem/get_cpuload 0 exec cpu1Load /export/home/sem/get_cpuload 1 exec cpu2Load /export/home/sem/get_cpuload 2 exec cpu3Load /export/home/sem/get_cpuload 3 %snmpwalk -v 2c -c

Re: How to register a octect stream?

2006-07-13 Thread Dave Shield
On 13/07/06, Manuel Cano Muñoz <[EMAIL PROTECTED]> wrote: netsnmp_handler_registration * reg = netsnmp_create_handler_registration( "nstAgentSubagentString", NULL, nstAgentSubagentString_oid, OID_LENGTH(nstAgentSubagentString_oid), HANDLER_CAN_RONLY); A little more contex

Re: How to register a octect stream?

2006-07-13 Thread Dave Shield
On 13/07/06, Alon Marx <[EMAIL PROTECTED]> wrote: netsnmp_register_scalar That will register a scalar object, true. But you still need to provide a handler to provide the actual value. Both 'ns_register_int_instance' and 'ns_register_watched_scalar' use a standard internal handler.  The MIB module

Re: How to register a octect stream?

2006-07-13 Thread Dave Shield
On 13/07/06, Manuel Cano Muñoz <[EMAIL PROTECTED]> wrote: Now i'm having a strange error because MSVC tells me that c:\documents and settings\mcano\mis documentos\proyectos\mib\nstagentsubagentobject.c(78) : error C2275: 'netsnmp_handler_registration' : illegal use of this type as an _expression

Doubt regarding BITS

2006-07-13 Thread sasikumar.bodathula
Title: Doubt regarding BITS Hi All,     I am using BITS in my snmp agent implementation is there any sample code available for reference for both SET and GET operation.     I am having another doubt i.e. how the bits values to be given from manager side. I am using the following command for s

Re: How to register a octect stream?

2006-07-13 Thread Alon Marx
netsnmp_register_scalar On Thu, 2006-07-13 at 15:15 +0200, Manuel Cano Muñoz wrote: > Hi! > > In the examples, I see the function `netsnmp_register_int_instance' to > register an int, but how can I register a string? > > > Thank you. > > ---

Re: How to register a octect stream?

2006-07-13 Thread Manuel Cano Muñoz
Hi. Thanks. I've searched throug the mail archives and found one mail from you about the same thing. Now i'm having a strange error because MSVC tells me that c:\documents and settings\mcano\mis documentos\proyectos\mib\nstagentsubagentobject.c(78) : error C2275: 'netsnmp_handler_registration' :

Re: How to register a octect stream?

2006-07-13 Thread Dave Shield
On 13/07/06, Manuel Cano Muñoz <[EMAIL PROTECTED]> wrote: In the examples, I see the function `netsnmp_register_int_instance' to register an int, but how can I register a string? Try using 'netsnmp_register_watched_scalar()'. This can be used for both integers and string-valued objects. (And has

How to register a octect stream?

2006-07-13 Thread Manuel Cano Muñoz
Hi! In the examples, I see the function `netsnmp_register_int_instance' to register an int, but how can I register a string? Thank you. - Using Tomcat but need to do more? Need to support web services, security? Get stuff d

RE: Disk Monitoring??

2006-07-13 Thread Russ Lavoie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 So does this have everyone stumped? I still do not know what is going on here... Your help is appreciated. - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Russ Lavoie Sent: Monday, July 10, 2006 3:18

unknown value

2006-07-13 Thread cnelson
In various MIBs I see unknown sometimes as the lowest value and sometimes as the highest. ipv6IfNetToMediaState OBJECT-TYPE SYNTAX INTEGER { reachable(1), -- confirmed reachability ... unknown(6)-- state can not be determined

Where to begin to make a little agen for my software.

2006-07-13 Thread Manuel Cano Muñoz
Hello. I'm reading the docs about net-snmp, and I have a little program (from the examples) to query values to an agent. I will convert this little program into a lib, and use it in my own system (my system, I mean my software) monitor. I have however a little problem to figure out how to make an

why mib2c return "a valid OID" error?

2006-07-13 Thread samuel
Hi, I used snmptranslate to access a "TCP-MIB" node "tcpMIB" or "tcpConnectionTable", snmptranslate -IR tcpConnectionTable reply is : TCP-MIB::tcpConnectionTable it should be work. But when I use