Trap handling

2006-03-01 Thread vishakha s
Hi

I just want some guidance in how to handle Traps and which file will handle
trap .



Thanks
Vishakha

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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


Mib Loading Problem

2006-03-01 Thread somenath.pal
Title: Mib Loading Problem







Hi ALL,

I am facing one problem. I need to implement some private MIBS. I have generated the .c and .h using mib2c and then generated "libmhso.so" .I kept the .so in /tmp/MH directory and all the other netsnmp libraries in /tmp/rh/lib. While configuring netsnmp I am following the below steps

1)export LDFLAGS="-L/tmp/MH -L/tmp/rh/lib -L/usr/local/lib"
2)LIBS="-lmhso -lnetsnmp -lcrypto" ./configure --prefix=/tmp/march2
3)make
4)make install

I am excluding  --with-mib-modules option for loading the mibs.
But while trying snmpget on that particular private mib attribute whose implementation is part of .so
I am getting the error
snmpget -c public -v2c localhost mclbVcbMhHeartBeatTimeout.0
MCLB-VCB-MIB::mclbVcbMhHeartBeatTimeout.0 = No Such Object available on this agent at this OID

My question is

1) Is it possible to keep the mib2c generated .c .h files in some other directory (other than agent/mibgroup)
and force the configure scripts to include those files while making snmpd ?

2) Is there any way to force "--with-mib-modules " to look for .c and .h other than agent/mibgrop directory

3) Is it possible to implement the mibs and generate .so and while configuring snmpd include that .so instead of
--with-mib-modules option and still the private mibs which implementation is part of .so gets  loaded.

Please help.

Thanks,
Somenath






How do I make my subagent as a library

2006-03-01 Thread Ramachandrappa, Nataraju Karidasarahalli
Hello All,

My customer is asking for library function instead of binaries. How do I
convert my sub agent binaries in to library functions.
Please give me details.


Thanks in Advance.


Thanks 
Nataraju 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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


problem with snmpset. need help

2006-03-01 Thread sushma.sangameswaran



Hi,
 
 I have a problem 
with snmpset. I am trying to set a octet-string variable in the MIB.Follwing is 
the type.

 InetAddress ::= 
OCTET STRING (SIZE (0..255))
 
  When  I try to set this 
variable with value 10.10.10.10 or the equivalent in hex 0A0A0A0A it sets the 
variable with a blank value. The same thing happens for 10.10.10.9 ,10.10.10.10, 
10.101.10.11,10.10.10.12,10.10.10.13, 9.9.9.9 to 9.9.9.13, 11.11.11.9 to 
11.11.11.13, 12.12.12.9 to 12.12.12.13 and 13.13.13.9 to 13.13.13.13. 

 
10.10.10.14 works fine. Please see the 
traces below. 
 
Setting as decimal 
string(10.10.10.10)
 
 /usr/local/bin/snmpset -v 1 -c public 
-t 60 -r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 . .1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 d 
10.10.10.10.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = 
INTEGER: 1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = STRING: "
 
 
 
"
 Setting as HEX 
(10.10.10.10)
 
/usr/local/bin/snmpset -v 1 -c public -t 60 
-r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 x 
0A0A0A0A.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = 
INTEGER: 1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = STRING: "
 
 
 
"
Setting as decimal string 
(10.10.10.14)
 
/usr/local/bin/snmpset -v 1 -c public -t 60 
-r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 d 
10.10.10.14.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = 
INTEGER: 1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = Hex-STRING: 0A 0A 0A 
0E
 
Setting as HEX 
(10.10.10.14)
 
/usr/local/bin/snmpset -v 1 -c public -t 60 
-r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 x 
0A0A0A0E.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = Hex-STRING: 0A 0A 0A 
0E
 
Thanks in advance
 
Regards
Sushma
 



RE: snmp cross-compiler error

2006-03-01 Thread sasikumar.bodathula
Title: RE: snmp cross-compiler error






Thank you for ur inputs.

Regards,
Sasikumar.



-Original Message-
From: Raffles [mailto:[EMAIL PROTECTED]]
Sent: Wed 3/1/2006 5:37 PM
To: Sasikumar Bodathula (WT01 - Broadband Networks)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: snmp cross-compiler error

I think you just need to follow the advice in the error message. To cross
compile for powerPC, we're successfully using

./configure --host=powerpc-8540-linux-gnu --with-endianness=big

We've also manually specified the compiler (inherent in our build).
    CC=/opt/crosstool/gcc-3.4.4-glibc-2.3.5/powerpc-8540-linux-gnu/bin/powerpc-8540-linux-gnu-gcc

I hope this is helpful (or are you not cross-compiling?)

Regards

Raffles

PS Can I suggest making new posts for new questions such as this, rather than
replying to an existing post with an unrelated subject? It makes the post much
easier to find if/when you want to come back to it later. Thanks.


[EMAIL PROTECTED] wrote:
> Hi All,
>  I am using net-snmp-5.2.1.2 and i want to compile with powerpc
> compiler for that i used the following option for configuring.
>
> ./configure --with-cc=ppc_82xx-gcc
>
> After this i am getting following error.
>
> checking what to build and install...  agent apps man local mibs
> using default "enterprise.net-snmp"
> using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
> using default notifications "NET-SNMP-MIB::netSnmpNotifications"
> using OS default send buffer size for server sockets
> using OS default recv buffer size for server sockets
> using OS default send buffer size for client sockets
> using OS default recv buffer size for client sockets
> checking if I need to feed myself to ksh... no
> checking for gcc... ppc_82xx-gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... configure: error: cannot run C
> compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
>
>
> Regards,
> Sasikumar.
>

--

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.










Re: C subagent to C++

2006-03-01 Thread stan buyanov
Raffles,  Please disregard the last email from me concerning patching.  I changed the Makefile manually, and now a C++ subagent works with a master  agent.  I greatly appreciate your help, Raffles.Best Regards,Stan  Raffles <[EMAIL PROTECTED]> wrote:  To link the master agent against C++ code you need to link with g++, but don't compile with it. Compile the main agent with gcc as normal. The normal makefiles which ./configure generates don't allow you to do this, but I've submitted a bug report to request that the ./configure script allows you to specify a separate linker. If you run ./configure as normal, I've created a patch file which will modify the auto-ge
 nerated
 Makefiles so that you *can* specify the linker separately from the compiler. See bug  1416481: http://sourceforge.net/tracker/index.php?func=detail&aid=1416481&group_id=12694&atid=112694RegardsRafflesstan buyanov wrote:> Hello,> > I am using net-snmp v5.3.0.1. I wrote a C subagent, and it works fine.> Now I need to convert the subagent to C++. > What steps do I need to do? > Do I need to compile and link the master agent using g++? > What is best approach to convert the C subagent to C++?> Where could I find information about this kind of conversion?  > > I would greatly appreciate your help.> Stan> > > Yahoo! Mail> Use Photomail >  > to share photos without annoying attachments.-- Visit our website at www.roke.co.uk<
 br>Roke
 Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.The information contained in this e-mail and any attachments is proprietary toRoke Manor Research Ltd and must not be passed to any third party withoutpermission. This communication is for information only and shall not create orchange any contractual relationship.
	
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.

Anyone using Net-SNMP on Solaris 10

2006-03-01 Thread Jean-Sebastien Morisset
Hi everyone,

Has anyone upgraded Net-SNMP on Solaris 10? It comes packaged with
v5.0.9 (I think). I removed that package and installed v5.3.0.1 instead.
Everything works fine on most servers (except for a little SAN disk
space reporting issue on one server), but I get the following errors:

 Incorrect Community Name (authenticationFailure Trap)
 enterprise:.1.3.6.1.4.1.8072.3.2.3 (.1.3.6.1.4.1.8072.3.2.3)
 args(1):.1.3.6.1.6.3.1.1.4.3.0=".1.3.6.1.4.1.8072.3.2.3"

If I start snmpdx by itself, I find the following ports open:

# lsof -i -n -P | grep snmp
snmpdx25372   root4u  IPv4 0xa06c1a800t0 UDP 
*:16161 (Idle)
snmpdx25372   root5u  IPv4 0xfe8456e3ee000t0 UDP 
*:45858 (Idle)
snmpdx25372   root6u  IPv4 0xa06c17000t0 UDP 
*:45859 (Idle)

Once I start Net-SNMP, here are the open ports:

# lsof -i -n -P | grep snmp
snmpdx25372   root4u  IPv4 0xa06c1a800t0 UDP 
*:16161 (Idle)
snmpdx25372   root5u  IPv4 0xfe8456e3ee000t0 UDP 
*:45858 (Idle)
snmpdx25372   root6u  IPv4 0xa06c17000t0 UDP 
*:45859 (Idle)
snmpd 25660   root   10u  IPv4 0x9fb0f0000t0 UDP 
*:46149 (Idle)
snmpd 25660   root   11u  IPv4 0x9fb0f3800t0 UDP 
*:46150 (Idle)
snmpd 25660   root   13u  IPv4 0xa144fc000t0 TCP *:199 
(LISTEN)
snmpd 25660   root   15u  IPv4 0xfe840b19e5400t0 UDP *:161 
(Idle)

As I understand it, snmpdx was working as a sub-agent with the
previously installed Net-SNMP.

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
Personal Home Page 
Underwater and Travel Photographs 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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: Bug?

2006-03-01 Thread Jean-Sebastien Morisset
On Wed, Mar 01, 2006 at 09:27:30AM +, Dave Shield wrote:
> On Tue, 2006-02-28 at 14:28 -0500, Jean-Sebastien Morisset wrote:
>> And I receive the following trap:
>> 
>> mteTriggerFired trap received from devsolx4.dev.me.org: dskTable
>> .1.3.6.1.4.1.2021.9.1.100.3 1 /export/san /export/san: less than 25%
>> free (= 515%)
>> 
>> Here's the snmpwalk section for this filesystem:
>> 
>> hrStorageIndex.10 = INTEGER: 10
>> hrStorageType.10 = OID: hrStorageFixedDisk
>> hrStorageDescr.10 = STRING: /export/san
>> hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
>> hrStorageSize.10 = INTEGER: 857894876
>> hrStorageUsed.10 = INTEGER: 613520
>> 
>> As you can see, there's really no space problem.
> 
> Can you try walking the UCD-SNMP-MIB:dskTable
> That's meant to report the same information as the
> Host Resources hrStorageTable, but it's not impossible
> that there's a discrepancy between the two.
> 
> If nothing else, it's the dskTable that's triggering
> the trap, so seeing the contents of this table might
> shed some light on what's actually happening.

Ah, of course, I didn't notice that "dskTable" in the error message. :-)
Here you go. As you can see, plenty of space reported here too. BTW,
errors are being reported for /export/home AND /export/san. Here are the
latest errors followed by the snmpwalk.

mteTriggerFired trap received from devsolx4.dev.me.org: dskTable
.1.3.6.1.4.1.2021.9.1.100.3 1 /export/san /export/san: less than 25%
free (= 516%)

mteTriggerFired trap received from devsolx4.dev.me.org: dskTable
.1.3.6.1.4.1.2021.9.1.100.2 1 /export/home /export/home: less than 25%
free (= 3109%)

# snmpwalk -c  -O s -v 2c devsolx4 UCD-SNMP-MIB:dskTable
dskIndex.1 = INTEGER: 1
dskIndex.2 = INTEGER: 2
dskIndex.3 = INTEGER: 3
dskPath.1 = STRING: /
dskPath.2 = STRING: /export/home
dskPath.3 = STRING: /export/san
dskDevice.1 = STRING: /dev/dsk/c0t0d0s0
dskDevice.2 = STRING: /dev/dsk/c0t2d0s2
dskDevice.3 = STRING: /dev/dsk/c5t600C0FF00824C347B635AD00d0s2
dskMinimum.1 = INTEGER: -1
dskMinimum.2 = INTEGER: -1
dskMinimum.3 = INTEGER: -1
dskMinPercent.1 = INTEGER: 50
dskMinPercent.2 = INTEGER: 25
dskMinPercent.3 = INTEGER: 25
dskTotal.1 = INTEGER: 53651285
dskTotal.2 = INTEGER: 142436675
dskTotal.3 = INTEGER: 857894876
dskAvail.1 = INTEGER: 48428911
dskAvail.2 = INTEGER: 138010545
dskAvail.3 = INTEGER: 831498871
dskUsed.1 = INTEGER: 4685862
dskUsed.2 = INTEGER: 153030
dskUsed.3 = INTEGER: 659159
dskPercent.1 = INTEGER: 9
dskPercent.2 = INTEGER: 0
dskPercent.3 = INTEGER: 0
dskPercentNode.1 = INTEGER: 3
dskPercentNode.2 = INTEGER: 0
dskPercentNode.3 = INTEGER: 0
dskErrorFlag.1 = INTEGER: 0
dskErrorFlag.2 = INTEGER: 0
dskErrorFlag.3 = INTEGER: 0
dskErrorMsg.1 = STRING:
dskErrorMsg.2 = STRING:
dskErrorMsg.3 = STRING:

Thanks!
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
Personal Home Page 
Underwater and Travel Photographs 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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: C subagent to C++

2006-03-01 Thread stan buyanov
Hi Raffles,When I am running: patch Makefile patch_file  I get a message:  patch:  malformed patch at line 4: # Misc Compiling Stuff. What is wrong?Thanks a lot for your help. Best Regards,StanRaffles <[EMAIL PROTECTED]> wrote:  To link the master agent against C++ code you need to link with g++, but don't compile with it. Compile the main agent with gcc as normal. The normal makefiles which ./configure generates don't allow you to do this, but I've submitted a bug report to request that the ./configure script allows you to specify a separate linker. If you run ./configure as normal, I've created a patch file which will modify the auto-generated Makefiles so that you *can* specify the linker separately from the compiler. See bug  1416481:
 http://sourceforge.net/tracker/index.php?func=detail&aid=1416481&group_id=12694&atid=112694RegardsRafflesstan buyanov wrote:> Hello,> > I am using net-snmp v5.3.0.1. I wrote a C subagent, and it works fine.> Now I need to convert the subagent to C++. > What steps do I need to do? > Do I need to compile and link the master agent using g++? > What is best approach to convert the C subagent to C++?> Where could I find information about this kind of conversion?  > > I would greatly appreciate your help.> Stan> > > Yahoo! Mail> Use Photomail >  > to share photos without annoying attachments.-- Visit our website at www.roke.co.ukRoke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.The information cont
 ained in
 this e-mail and any attachments is proprietary toRoke Manor Research Ltd and must not be passed to any third party withoutpermission. This communication is for information only and shall not create orchange any contractual relationship.
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.

Can parse_oid_indexes() parse fixed-length string indexes?

2006-03-01 Thread Makavy, Erez (Erez)



I don't see 
in the table registration any information about the indexes' length (in case of 
fixed-length string)
 
And there is 
also no information about the length in the parameters of 
parse_oid_indexes()
-
int 
parse_oid_indexes(  oid * oidIndex, size_t 
oidLen,    
netsnmp_variable_list * data)

 
So how can 
it work properly?
 
thanks,
Erez Makavy
 


Help net-snmp to ignore my AgentX subagent

2006-03-01 Thread Militza Ramirez
Hi   
In a mail sent 2005-12-14 08:03, from Daniel Gudlat <[EMAIL PROTECTED]>, 
subject: net-snmp seems to ignore my AgentX subagent, he explain how solved his 
problem. I have the same problem. Daniel Gudlat, can you help me?. Is possible 
that you send me the Java-based AgentX implementation with TCP support. I am 
doing a project investigation.
  


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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


doesn't start snmpd

2006-03-01 Thread open sesami

Dear all;

I installed with Solaris10.  The NET-SNMP version is 5.0.8.  Now, all 
configurations are finished.

But I've having error as bellows.

init_kmem: kvm_open failed: Error 0

Actually, the server is DELL(64bit) with Solaris10(well, OS is runing on 32 
bit and 64bit compatible.)


I've not had any clues so far and searching the keys with gooble, but there 
are not good results.

Please help me...

Best regards,




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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: doesn't start snmpd

2006-03-01 Thread Bruce Shaw
>I installed with Solaris10.  The NET-SNMP version is 5.0.8.  Now, all
configurations are finished.

>But I've having error as bellows.

>init_kmem: kvm_open failed: Error 0


Solaris 10 is already using net-snmp, you don't need to re-install unless
you're upgrading (which I don't recommend until I release 5.3.x)

Are you sure you've disabled Sun's copy of our daemon?  Have you looked at
README.solaris?

Sun has put their configuration files in places other than the default
(/usr/local).  Which ones did you configure?

>Actually, the server is DELL(64bit) with Solaris10(well, OS is runing on 32
bit and 64bit compatible.)

Ok so what version are you actually running?

This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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


Help net-snmp to ignore my AgentX subagent

2006-03-01 Thread Militza Ramirez
Hi
In a mail sent 2005-12-14 08:03, from Daniel Gudlat <[EMAIL PROTECTED]>,
subject: net-snmp seems to ignore my AgentX subagent, he explain how
solved his problem. I have the same problem. Daniel Gudlat, can you
help me?. Is possible that you send me the Java-based AgentX
implementation with TCP support. I am doing a project investigation.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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: SNMP V3 + snmpTargetParamsTable configuration

2006-03-01 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 Wed, 2006-03-01 at 19:46 +0530, [EMAIL PROTECTED] wrote:
> Can we change the "snmpTargetParamsStorageType" value with trapsess
> directive

No, I don't think so.
The storage type is really more relevant for targets that are
set up dynamically, using SNMP SET requests.   

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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: table_info->max_column

2006-03-01 Thread Dave Shield
On Wed, 2006-03-01 at 16:14 +0100, Palmentieri Nunzio wrote:
> Hi all,
> someone could explain me what is the meaning of
> "table_info->max_column",

For a given table, MIB column object will typically
have consecutive subidentifier numbers.
E.g. for the IF-MIB::ifTable, these run from ifIndex(1)
to ifSpecific(22)

table_info->min_column is the subidentifier of the first
(accessible) column object - typically 1.

table_info->max_column is the subidentifier of the last
column object - in this case 22.

This means that the main agent driving code (or strictly
speaking, the table helper) knows to reject a request for
ifEntry.23 (or above), without having to call the MIB
handler routine.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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


table_info->max_column

2006-03-01 Thread Palmentieri Nunzio
Title: Messaggio



Hi 
all,
someone could 
explain me what is the meaning of "table_info->max_column", as changing 
it,
the agent has 
several behaviour (in the worst case, my GEt fail).
I intended it as 
follows:
 
Number of rows * 
Number of columns  in the MIB result 
table.
 
Is it 
correct?
 
Thanks in 
advance.
 

Nunzio 
PalmentieriWeb Care 
Solution Atos OriginVia Antiniana 2/a 80078 Pozzuoli (NA) - 
ITALY
 
Direct+39 081 6103 
388Mobile   +39 335 1214 
806Fax +39 
081 6103 200e-mail    mailto:[EMAIL PROTECTED]Web    
www.atosorigin.com
This electronic message contains information from Atos Origin, 
which may be privileged and confidential. The information is intended to be use 
of the individual(s) or entity named above. If you are not the intended 
recipient, be aware that any disclosure, copying, distribution or use of the 
contents of this information is prohibited.
 


Re: SNMP V3 + snmpTargetParamsTable configuration

2006-03-01 Thread Dave Shield
On Wed, 2006-03-01 at 18:42 +0530, [EMAIL PROTECTED] wrote:

> The following is the some snapshot of snmpTargetParamsTable query

[snip]


> Is there any #directives to set the attributes
> (MPModel,SecModel,SecLevel etc.) inside snmpd.conf to populate the
> values inside the ParamsTable with my interested values?

Try using "trapsess", specifying the various parameters in the same
way you would do on the command line (e,g, snmpget, etc)

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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


SNMP V3 + snmpTargetParamsTable configuration

2006-03-01 Thread kanakamahesh.anasuri
Title: SNMP V3 + snmpTargetParamsTable configuration






Hi,

I need some help in configuring the snmpTargetParamsTable using the directives (ifany)

snmpd.conf has the following entries for (Community/Security Name)
--

rwuser testuser1 noauth    # V3 User
rocommunity wifi   # v2c/v1 user

The following is the some snapshot of snmpTargetParamsTable query

-
$snmptable -v2c -c wifi 10.201.114.135  snmpTargetParamsTable
SNMP table: SNMP-TARGET-MIB::snmpTargetParamsTable

snmpTargetParamsMPModel snmpTargetParamsSecurityModel snmpTargetParamsSecurityName snmpTargetParamsSecurityLevel snmpTargetParamsStorageType snmpTargetParamsRowStatus

   1 2   public  noAuthNoPriv    readOnly    active

   1 2   public  noAuthNoPriv    readOnly    active


Is there any #directives to set the attributes (MPModel,SecModel,SecLevel etc.) inside snmpd.conf to populate the values inside the ParamsTable with my interested values?

i.e when we query this table the outout looks some thing like the following

snmpTargetParamsMPModel snmpTargetParamsSecurityModel snmpTargetParamsSecurityName snmpTargetParamsSecurityLevel snmpTargetParamsStorageType snmpTargetParamsRowStatus

   3 3   testuser  noAuthNoPriv    permanent    active

I see the use of "trapcommunity" directive in snmpd.conf is updating the snmpTargetParamsSecurityName in this table. If we omit this directive then "public" is displaying.

Very greatful for help and information.

Thanks,
Mahesh








RE: snmp cross-compiler error

2006-03-01 Thread kanda.samy
Title: RE: snmp cross-compiler error






Hi Sasi,

Use 

C_COMPILER=3Dppc_82xx-gcc ./configure --with-mib-modules="CPEAdapter wimax standard disman/event-mib" --host=ppc-ibm-linux --with-endianness=big

or

CC=ppc_82xx-gcc ./configure --with-mib-modules="CPEAdapter wimax standard disman/event-mib" --host=ppc-ibm-linux --with-endianness=big


Regards,

Kanda






Re: snmp cross-compiler error

2006-03-01 Thread Raffles
I think you just need to follow the advice in the error message. To cross 
compile for powerPC, we're successfully using


./configure --host=powerpc-8540-linux-gnu --with-endianness=big

We've also manually specified the compiler (inherent in our build).

CC=/opt/crosstool/gcc-3.4.4-glibc-2.3.5/powerpc-8540-linux-gnu/bin/powerpc-8540-linux-gnu-gcc

I hope this is helpful (or are you not cross-compiling?)

Regards

Raffles

PS Can I suggest making new posts for new questions such as this, rather than 
replying to an existing post with an unrelated subject? It makes the post much 
easier to find if/when you want to come back to it later. Thanks.



[EMAIL PROTECTED] wrote:

Hi All,
 I am using net-snmp-5.2.1.2 and i want to compile with powerpc 
compiler for that i used the following option for configuring.


./configure --with-cc=ppc_82xx-gcc

After this i am getting following error.

checking what to build and install...  agent apps man local mibs
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for gcc... ppc_82xx-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.

If you meant to cross compile, use `--host'.
See `config.log' for more details.


Regards,
Sasikumar.



--

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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


snmp cross-compiler error

2006-03-01 Thread sasikumar.bodathula
Title: snmp cross-compiler error






Hi All,
 I am using net-snmp-5.2.1.2 and i want to compile with powerpc compiler for that i used the following option for configuring.

./configure --with-cc=ppc_82xx-gcc

After this i am getting following error.

checking what to build and install...  agent apps man local mibs
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for gcc... ppc_82xx-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


Regards,
Sasikumar.





Re: compile problem on solaris 8

2006-03-01 Thread Thomas Anders

Joe Shen wrote:

Are you sure you unpack the tarball correctly?

To my experience, Solaris's tar could not do with long
directory path. So, GNU tar must be used with
unpacking.


Yes, that's likely the solution for the original poster.

However, it's actually more of a problem with our tarball rather than a 
Solaris tar bug. This problem will be fixed in future net-snmp 
distributions.



+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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


snmpd service problem

2006-03-01 Thread nik600
i think that the snmpd service is ignoring my configuration, because
one time it gives me an error , and sometimes another... can i start
smpd with a specific configuration file and be sure that the right
configuration is loaded?

i've tried to analyze the low-levels calls with strace, and i've seen that:

 strace snmpd
execve("/usr/local/sbin/snmpd", ["snmpd"], [/* 34 vars */]) = 0
brk(0)  = 0x804f000
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/sse2/libnetsnmpagent.so.5", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/lib/i686/sse2", 0xb2a8) = -1 ENOENT (No such
file or directory)
open("/usr/local/lib/i686/libnetsnmpagent.so.5", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/lib/i686", 0xb2a8) = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/sse2/libnetsnmpagent.so.5", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/lib/sse2", 0xb2a8) = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/libnetsnmpagent.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240Z\0"..., 512) = 512


it seems that i don't have the needed library!

i've installed net-snmp from source using ./configure && make && make
install from root, isn't it correct?

thanks


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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: NET-SNMP agent is not responding to manager request(snmpget,snmpgetnext etc)

2006-03-01 Thread Dave Shield
On Wed, 2006-03-01 at 12:50 +0530, Manish wrote:
> I follow the entire step to install Net-SNMP on my machine, then I
> register Net-SNMP agent with my machine.
> 
> But it is not responding to manager requests as snmpget.

How have you configured the Net-SNMP agent?
In particular, what access control settings do you have
in the snmpd.conf file?

What 'snmpget' commands are you trying?

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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: Bug?

2006-03-01 Thread Dave Shield
On Tue, 2006-02-28 at 14:28 -0500, Jean-Sebastien Morisset wrote:
> And I receive the following trap:
> 
> mteTriggerFired trap received from devsolx4.dev.me.org: dskTable
> .1.3.6.1.4.1.2021.9.1.100.3 1 /export/san /export/san: less than 25%
> free (= 515%)
> 
> Here's the snmpwalk section for this filesystem:
> 
> hrStorageIndex.10 = INTEGER: 10
> hrStorageType.10 = OID: hrStorageFixedDisk
> hrStorageDescr.10 = STRING: /export/san
> hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
> hrStorageSize.10 = INTEGER: 857894876
> hrStorageUsed.10 = INTEGER: 613520
> 
> As you can see, there's really no space problem.

Can you try walking the UCD-SNMP-MIB:dskTable
That's meant to report the same information as the
Host Resources hrStorageTable, but it's not impossible
that there's a discrepancy between the two.

If nothing else, it's the dskTable that's triggering
the trap, so seeing the contents of this table might
shed some light on what's actually happening.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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: how to get rid of libcrypto?

2006-03-01 Thread Dave Shield
On Tue, 2006-02-28 at 12:02 -0800, Catherine Io wrote:
>  How can I get rid of libcrypto.so, libkrb.so etc. So that they
> don’t need to be loaded at runtime?

configure --without-openssl

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
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: Down or flapping errors //third try

2006-03-01 Thread Peter Martin



Jaak,
 
Please, do NOT send large attachments to the 
list. Provide a link to the material if it is relevant.
 
Pete

  - Original Message - 
  From: 
  Jaak Dejonckheere 
  To: net-snmp-users@lists.sourceforge.net 
  
  Sent: Tuesday, February 28, 2006 1:15 
  PM
  Subject: FW: Down or flapping errors 
  //third try 
  
   
  
  
  From: Jaak Dejonckheere Sent: 28 
  February 2006 14:05To: 'net-snmp-users@lists.sourceforge.net'Cc: 
  Jaak DejonckheereSubject: FW: Down or flapping errors //second try 
  
  
  HI,
  
   
    I have installed net-snmp V3 on my prod . 
  servers ,  (SOlaris 8 and SOlaris 9) 
   
  everything is ok 
  except  2/3 servers (comix,informatix,appendix)  who give 
  
   
      
  Down or flapping errors 
   
    
  indicates that the physical connection between two network adapters is down 
  
   
  see 
  att.  pictures 
   
      
  °°°
   
  1. Is there some reason?  
  2. it seems no 'permanent' hard-ware or 
  network problem . 
  3 . is   there some solution  for 
  this?
  4 . do i have to 
  install IPMP ?
  5 . any identical 
  probs in the field ? 
  6 . how can i 
  reset (or exclude) this error- messages in Smarts ? 
  
   
  friendly greetings ,
   
  Thx in advance ...
   
   Jaak 
  Dejonckheere
   
  
  BIAC/ICT
  Jaak Dejonckheere
  System 
  Engineer
  Brussels National Airport
  B-1930 Zaventem 
  Tel:   +32 (0)2 753 66 
  14
  Fax:   +32 (0)2 753 65 
  10
  email: 
[EMAIL PROTECTED]


NET-SNMP agent is not responding to manager request(snmpget,snmpgetnext etc)

2006-03-01 Thread Manish








Hi,

 

I follow the entire step to install Net-SNMP on my machine, then
I register Net-SNMP agent with my machine.

I had stop Microsoft SNMP agent and started Net-SNMP agent service
from SCM.

It is not responding with Net-SNMP agent but it is with
Microsoft agent.

But it is not responding to manager requests as snmpget.

I tried auto discover agent from MIB Browser it also not recognizing
this as an agent but it is with Microsoft agent service on.

Please let me know what should I do to resolve this and
Net-SNMP agent should be recognized agent.

 

Regards

Manish








how to get rid of libcrypto?

2006-03-01 Thread Catherine Io








I compiled net-snmp 5.3.0.1 for linux, with –disable-privacy.
Basically I don’t need v3 mibs or any of the encryption stuffs. I just
need a simple snmp v2c agent.  And my space is really limited. How can I
get rid of libcrypto.so, libkrb.so etc. So that they don’t need to be
loaded at runtime? I tried –disable-privacy which suppose to disable
encryption. But it doesn’t work. Any other thing I can do? Thanks.

 








Re: C subagent to C++

2006-03-01 Thread Raffles
To link the master agent against C++ code you need to link with g++, but don't 
compile with it. Compile the main agent with gcc as normal. The normal 
makefiles which ./configure generates don't allow you to do this, but I've 
submitted a bug report to request that the ./configure script allows you to 
specify a separate linker. If you run ./configure as normal, I've created a 
patch file which will modify the auto-generated Makefiles so that you *can* 
specify the linker separately from the compiler. See bug  1416481: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1416481&group_id=12694&atid=112694


Regards

Raffles

stan buyanov wrote:

Hello,

I am using net-snmp v5.3.0.1. I wrote a C subagent, and it works fine.
Now I need to convert the subagent to C++. 
What steps do I need to do? 
Do I need to compile and link the master agent using g++? 
What is best approach to convert the C subagent to C++?
Where could I find information about this kind of conversion?  


I would greatly appreciate your help.
Stan


Yahoo! Mail
Use Photomail 
 
to share photos without annoying attachments.


--

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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


snmptrapd.conf problem

2006-03-01 Thread vishakha s
Hi

I am learning about traps in net-snmp .There is a problem related to
snmptrapd.conf file .When I issue the following command
./snmptrapd -m ALL  -P

It gives the following error :

Cannot find module (IF-MIB): At line 0 in (none)
/home/rajesh/snmptrap1/share/snmp/snmptrapd.conf: line 10: Error: Bad trap
OID in
 traphandle directive: IF-MIB::linkDown
Cannot find module (TRAP-TEST-MIB): At line 0 in (none)
/home/rajesh/snmptrap1/share/snmp/snmptrapd.conf: line 11: Error: Bad trap
OID in
 traphandle directive: TRAP-TEST-MIB::demo-trap
net-snmp: 2 error(s) in config file(s)
2006-03-01 13:37:28 NET-SNMP version 5.2.1.2 Started.


My snmptrapd.conf  file is as follows
traphandle IF-MIB::linkDown /home/snmptrap1/bin/traps down
traphandle TRAP-TEST-MIB::demo-trap /home/snmptrap1/bin/traps demo-trap

If any changes need to be done in this file please let me know .

Where am i making mistake ?

Thanks in advance

with regards
Vishakha Sharma

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
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