Re: public accessible snmp devices?

2005-03-08 Thread Jude Amal Anand
But wat is test.net-snmp.org ???

and why do we need to give  ' demopublic ' instead of  ' public '  ??


On Tue, 8 Mar 2005 18:20:29 -0500, Robert Story <[EMAIL PROTECTED]> wrote:
> On Sun, 27 Feb 2005 21:38:29 -0800 Vicky wrote:
> VR> Just wondering if there are any public accessible (read-only) snmp
> VR> enabled devices that one can access for testing purposes?
> 
> Yes. Try
> 
> snmpget -c demopublic -v 2c test.net-snmp.org system.sysUpTime.0
> 
> --
> Robert Story; NET-SNMP Junkie
> Support:  
> Archive: 
> 
> You are lost in a twisty maze of little standards, all different.
> 
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> ___
> 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
>


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


CPU utilization ?

2005-03-08 Thread Uwo NMS
Hello
 
Im a beginner on linux programming & learning SNMP. I've got processor performance of my snmp target, what should I do with this value to show it as CPU utilization? 
 
(1.3.6.1.2.1.25.3.3.1.2) ->The average, over the last minute, of the percentage of time that this processor was not idle. 
 
What is the formula to convert it to percentage in processor usage?
 
best regards,
uwo jelek
		Celebrate Yahoo!'s 10th Birthday!  
Yahoo! Netrospective: 100 Moments of the Web 

Re: 5.2.1 Trap Handler causes snmptrapd to exit from broken pipe

2005-03-08 Thread Michael Higgins

Michael Higgins wrote:
Robert Story wrote:
On Fri, 04 Mar 2005 10:46:02 -0800 Michael wrote:
MH> Using a simple setup as described in MH> 
http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html, 
when MH> a trap is received, the snmptrapd process fails from a 
broken pipe.  I MH> then use the same setup with 5.0.9 and everything 
functions as designed.
MH> MH> I did a little digging and it looks like the problem is in 
MH> agent/mibgroup/utilities/execute.c in run_exec_command().  I 
don't know MH> a whole lot about how this is architected, but it 
appears that two MH> threads are responsible for making this happen.  
One gets the trap MH> handler process running and the other writes to 
its stdin and waits for MH> any output.
MH> MH> What I see happening is the thread that is initiating the 
trap handler MH> does some manipulation of file descriptors, closing 
the standard ones MH> and redirecting them to pipes.  When it does a 
close(2), this function MH> never returns.  (Is this stderr?)

Yes, and it is odd that it doesn't return..
MH>  In the meantime, the other thread MH> marches ahead and attempts 
to write to the pipe.  This is where the MH> broken pipe happens and 
the process terminates.

Apparently snmpd handles this by ignoring SIGPIPE. Add this code in
snmptrapd.c, near the other signal handlers:
#ifdef SIGPIPE
   signal(SIGPIPE, SIG_IGN);   /* 'Inline' failure of wayward readers */
#endif
MH> I didn't see it bugged either.  Should it be?
Yes, anything that causes the daemon to crash is very bad.
 

Thanks for the reply and suggestions.  I can ignore SIGPIPE, but I'll 
also have to skip the close(2) call so that the trap handler can be 
started.  I wonder what the effect of that might be?

Mike

I added the code to ignore the SIGPIPE signal and found that I also had 
to remove the close(2) to get to the execv() call that runs the trap 
handler.  In the snmptrapd.conf file for 5.0.9 I had:

traphandle IF-MIB::linkDown "/home/mhiggins/src/snmp/traps.sh" linkDown
traphandle IF-MIB::linkUp "/home/mhiggins/src/snmp/traps.sh" linkUp
This caused execv to fail with errno 2, no such file or directory.  Thre 
must be an error in tokenize_exec_command() because it was return the 
command with the leading " still in place.  When I changed the 
snmptrapd.conf to:

traphandle IF-MIB::linkDown /home/mhiggins/src/snmp/traps.sh linkDown
traphandle IF-MIB::linkUp /home/mhiggins/src/snmp/traps.sh linkUp
The trap handler completed successfully.  I'll look into that to see I 
can find a fix.  Now the only thing left at the moment is a formatting 
issue.  I have some OID values that are getting a linefeed erroneously 
added at some point.  I'm suspecting realloc_format_trap() in 
apps/snmptrapd_log.c.  I'll look at that too.

Thanks again for the suggestion.  Any idea if removing close(2) might 
have some sort of side effect?  When I figure out the other two items 
I'll submit a bug with suggested fixes.

-- Mike


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Possible error in mib2c.iterate.conf

2005-03-08 Thread Josdeyvi Russi
There are more typos, like SNMP_MALOC_STRUCTURE and problems at the handler
too. At the end I copied from array model...

- Original Message - 
From: "Robert Story" <[EMAIL PROTECTED]>
To: "jrussi" <[EMAIL PROTECTED]>
Cc: "net-snmp-users" 
Sent: Tuesday, March 08, 2005 5:50 PM
Subject: Re: Possible error in mib2c.iterate.conf


> On Sat, 26 Feb 2005 12:33:22 -0300 jrussi wrote:
> J> Using mib2c.iterate.conf,v 5.14 2004/10/14 12:57:33, the
> J> _createEntry function has an error at the return point. It
> J> points to "row" instead of "entry".
> J>
> J> The argument of the function is also create with a typo
> J> error, with an extra comma.
> J>
> J> Am I doing something wrong or is it a error?
>
> Nope, you are right, it is an error.
>
> -- 
> Robert Story; NET-SNMP Junkie
> Support:  
> Archive:

>
> You are lost in a twisty maze of little standards, all different.



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Can I watch the oid values when it was operated?

2005-03-08 Thread Robert Story
On Mon, 28 Feb 2005 15:20:30 +0800 13336185665 wrote:
1> In include/net-snmp/agent, there are object_monitor.h, But it notice in
active development status.

Can you be a little more precise about what you want to do?

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: public accessible snmp devices?

2005-03-08 Thread Robert Story
On Sun, 27 Feb 2005 21:38:29 -0800 Vicky wrote:
VR> Just wondering if there are any public accessible (read-only) snmp
VR> enabled devices that one can access for testing purposes?

Yes. Try

snmpget -c demopublic -v 2c test.net-snmp.org system.sysUpTime.0

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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 attach proprietary system to Net-Snmp?

2005-03-08 Thread Robert Story
On Sat, 26 Feb 2005 20:18:55 +0100 Ekkehard wrote:
ED> PC Running Net-SNMP and my Application
ED>   +- MasterDevice attached via serial Interface
ED>   +- First SubDevice connected to the Master
ED>   +- Second SubDevice, could be same type as First SubDevice
ED>   ...
ED>   +- up to hundreds of SubDevices
ED> 
ED> The MIB design runs into a deadlock. Since the "SubDevices" could be up to
ED> hundred devices and the devices have a lot of different properties I could
ED> not make a table of devices (since tables could only hold one record).

What do you mean by 'tables could only hold one record'?

ED> if I make a table containing only the Root-OID of the "SubDevices" how
ED> could I access the different devices of the same style?
ED> Since the "SubDevices" have no different IP Address I could not redirect
ED> the Manager to the "SubDevices"

Read over this entry in my FAQ, and see if you it helps.

http://www.freesnmp.com/net-snmp/faqs/index.html#multidev

Another idea would be to do something similar to the host resources mib. One
table defines all the rows with their types, and each specific type has it's
own table for type specific parameters.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Pass no longer working

2005-03-08 Thread Robert Story
On Fri, 25 Feb 2005 08:22:04 -0700 Craig wrote:
CK> We have these two lines in our snmpd.conf file:
CK> 
CK> # sysDescr
CK> pass .1.3.6.1.2.1.1.1 /etc/snmp/ibn_snmp.pl
CK> # sysLocation
CK> pass .1.3.6.1.2.1.1.6 /etc/snmp/ibn_snmp.pl
CK> 
CK> This worked great with 4.2.5, but fails on 5.1.2. 

Apparently 4.2.5 allowed the override of existing variables by default. 5.1.2
does not. A patch was submitted that adds a priority to the pass token,
allowing override. Some form of this patch will likely make it into 5.3.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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 ifHCInOctets object?

2005-03-08 Thread Robert Story
On Tue, 8 Mar 2005 13:29:17 +0800 cen wrote:
CR> so ,I think  counter64 support at net-snmp-5.2.1 somewhere .. and I
CR> setup net-snmp-5.2.1 in a linux host. But I couldn't get any
CR> "ifHcinoctets" information when I use
CR> "snmpwalk -v 2c -c commu host ifHcinoctets"

You have to enable this with --enable-mfd-rewrites.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


REPOST: Doubt on alarms

2005-03-08 Thread Mauricio Reyes
Hello,

I was looking at the way alarms work and I have a
question: what is the minimum time you can tell a
alarm to repeat itself?
is it 1 second?
is it possible to go to milliseconds?

another question I have is this:
when you are using trapsess and the destination is
down, does it retries to connect? Because the traps
are lost.
I get this error:
/usr/local/share/snmp/snmpd.conf: line 30: Error:
snmpd: failed to parse this line or the remote trap
receiver is down.  Possible cause:
snmpd: snmpd_parse_config_trapsess(): Timeout
net-snmp: 1 error(s) in config file(s)

I have this line:
trapsess -v 3 -u martest -n "" -l authPriv -a MD5 -A
marprueba -x DES -X marprueba 127.0.0.1:5250


Thanks,
mauricio




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


Error while configuring net-SNMP 5.1.2

2005-03-08 Thread Vijay Krishna
Title: Error while configuring net-SNMP 5.1.2





Hi,

I am configuring net-SNMP 5.1.2 obtained from the standard download site http://net-snmp.sourceforge.net/download/.

 I am encountering the below mentioned error when using

 Command -> ./configure -with-cc=CC  where CC is CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-19 2003/12/18

"checking for and configuring mib modules pieces to use... 

à>configure: error: mib module "mibII" requires module "config_require" but config_require.h or config_require.c could not be found in ./agent/mibgroup"

The files "config_require.h" and "config_require.c" are not to be found at all in the distribution.


How do I remove this error?


Thanks in advance.

Vijay



 - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.




Modules not being included

2005-03-08 Thread Steve Comfort
Hi all,
After months away from SNMP, I decided to modularize my MIB, which was 
getting a bit chaotic. The problem I'm having is that I can't seem to 
get my modules included in the agent, and can't figure out what I'm 
doing wrong. I'm still using 5.1, and cross-compiling for ARM.

Here's the relevant section of my configure script :
   --with-mib-modules="fourD/wifi"
Selected output from running this configure script is given below :
   checking for and configuring mib modules to use...  snmpv3mibs
   mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars
   utilities/execute fourD/wifi.
   checking for and configuring mib modules pieces to use... 
   snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable
   mibII/vacm_vars utilities/execute fourD/wifi snmpv3/snmpEngine
   snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmUser util_funcs
   mibII/vacm_context.

 Net-SNMP Version:   5.1
 Building for:   linux
 Network transport support:  Callback Unix TCP UDP
 SNMPv3 Security Modules:usm
 Agent MIB code: snmpv3mibs mibII/snmp_mib
   mibII/system_mib mibII/sysORTable mibII/vacm_vars utilities/execute
   fourD/wifi
 SNMP Perl modules:  disabled
 Embedded perl support:  disabled
 Authentication support: MD5 SHA1
 Encryption support: DES AES128 AES192 AES256
The .h file (fourD.h in ../agent/mibgroup) currently contains a single 
line (in future it should conatin several, but for starters ...) :

   config_require(fourD/wifi)
Under the subdirectory fourD, the wifi.h file contains :
   config_require(util_funcs)
extern voidinit_fourD_wifi(void);
extern FindVarMethod var_fourD_wifi;
extern WriteMethod write_wifi;
In the .c file I call REGISTER_MIB("fourD/wifi", ... );
When I list agent/mibgroup/mib_modules_init.h, I do not find my init 
routine (init_fourD_wifi) listed. Obviously, when I then compile the 
agent, my sub-agent is not included. It is however compiled.

Any suggestions would be greatly appreciated
Best regards
Steve Comfort


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


how to get ifHCInOctets object?

2005-03-08 Thread cen ruijian
Hi All,

I try to monitor Gigabit-ether traffic value , but can not get
ifHCInOctets object.

I saw the changlog :http://www.net-snmp.org/about/ChangeLog.html

 "   - Linux
 - patch 1055036: if-mib init order fix
 - patch 1057057: ipSystemStatsTable index fix, add ipv6
 - patch 1073897: fix if-mib data access 64bit counter wrap detection"

so ,I think  counter64 support at net-snmp-5.2.1 somewhere .. and I
setup net-snmp-5.2.1 in a linux host. But I couldn't get any
"ifHcinoctets" information when I use
"snmpwalk -v 2c -c commu host ifHcinoctets"

   If anybody can tell me how to implementation in net-snmp5.2.1, I will
be very grateful..

Thanx and Regards!
Joe


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


loading a MIB file using snmptrapd

2005-03-08 Thread Seema Gupta
Hi All,
From the manual I am not able to understand the how I could give the 
Mib file name so that trap deamon loads that MIB

I tried using -m and -M options but it doesn't work. Can somebody 
elaborate more on this with couple of examples.

Thanks in advance,
--Seema
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


Unkonwn Token:master

2005-03-08 Thread Rustagi, Sandeep (Sandeep)
Hi,

I am trying to use net-snmp 5.1.2 or 5.2. I am getting the following error
while running "snmpd"

/usr/local/share/snmp/snmpd.conf: line 403: Warning: Unknown token: master.
NET-SNMP version 5.1.2

I wish to know what I am missing while installing or configuring the
net-snmp?

Thanks in advance.

Thanks and Rgds,
Sandeep


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


how to display counter64?

2005-03-08 Thread cen ruijian
Hi All,
 
I try to monitor Gigabit-ether traffic value , but can not get
ifHCInOctets object.

 I saw the changlog :http://www.net-snmp.org/about/ChangeLog.html 

  "   - Linux
  - patch 1055036: if-mib init order fix
  - patch 1057057: ipSystemStatsTable index fix, add ipv6
  - patch 1073897: fix if-mib data access 64bit counter wrap detection"


so ,I think  counter64 support at net-snmp-5.2.1 somewhere .. and I
setup net-snmp-5.2.1 in a linux host. But I couldn't get any
"ifHcinoctets" information when I use
"snmpwalk -v 2c -c commu host ifHcinoctets"

  
If anybody can tell me how to implementation in net-snmp5.2.1, I will
be very grateful..
 
  
 Thanx and Regards!
 Joe


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


the agent cann't send trap, why?

2005-03-08 Thread xdlhf
Hello,
  I have a problem when using traps in 5.2

  i hope get traps from the agent, so, in the file of snmpd.conf, I add the 
following two lines,

 trapsink  192.168.1.44   #localhost IP address
 trapsink  192.168.1.25

  but after i start snmpd, the trap can't be sent to 192.168.1.25, in file of 
snmpd.log, I find these :

netsnmp_udp: send 44 bytes from 0x810251c to UDP: 
[192.168.1.25]:162 on fd 12
snmpd: send_trap: Failure in sendto (Invalid argument)


  can anyone please tell me what caused it?  "trapsink  192.168.1.25" is wrong?

Thanks!

Sam
2005-03-05 11:52:32



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


Setting Destination Trap Port on windows

2005-03-08 Thread C Wells
Microsoft loves making snmp difficult. Does anyone
know how you can force a windows box to send its traps
to a port other than the standard udp 162 ? The
services file allows you to change the snmptrap
listening port and the snmp port itself, but I can
figure out how to make the trap sending mechanism use
another port.
Thanks




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


CISCO MIB question

2005-03-08 Thread Saqib bin Sohail
I don't know if you guys answer MIB questions but mine is extremely
basic thing, the following MIB is for descriptioin of Cisco 3500
switch port 40. What I want to know is what is the current operational
speed (10/100/auto)

and I just can't seem to figure out how the MIB's are built.

.1.3.6.1.4.1.9.2.2.1.1.28.40 (the 40 is for the port 40 and this MIB
will return whatever is in the description field)

Any help would really solve all my headache.

Thanks

-- 
Saqib bin Sohail


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


ipAddrTable on AIX

2005-03-08 Thread Gonia Eric - egonia
I'm wondering if others have a problem getting IP addresses from
mib-2.ip.ipAddrTable on AIX 5.2 running Net-SNMP 5.2.1.

When I walk the ipAddrTable I get the following:
IP-MIB::ipAdEntAddr.0.0.0.0 = IpAddress: 0.0.0.0
IP-MIB::ipAdEntIfIndex.0.0.0.0 = INTEGER: 1
IP-MIB::ipAdEntNetMask.0.0.0.0 = IpAddress: 0.0.0.0
IP-MIB::ipAdEntBcastAddr.0.0.0.0 = INTEGER: 0

It appears these are some sort of default values.

I have the following in the log file:
nlist err: neither ipstat nor _ipstat found.
nlist err: neither ipforwarding nor _ipforwarding found.
nlist err: neither tcpDefaultTTL nor _tcpDefaultTTL found.
nlist err: neither tcpstat nor _tcpstat found.
nlist err: neither tcb nor _tcb found.
nlist err: neither icmpstat nor _icmpstat found.
nlist err: neither udpstat nor _udpstat found.
nlist err: neither udb nor _udb found.
nlist err: neither rt_table nor _rt_table found.
nlist err: neither rthashsize nor _rthashsize found.
nlist err: neither rthost nor _rthost found.
nlist err: neither rtnet nor _rtnet found.
NET-SNMP version 5.2.1

I don't understand these error messages. Any help would be greatly
appreciated.

Thanks,
Eric




**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Possible error in mib2c.iterate.conf

2005-03-08 Thread Robert Story
On Sat, 26 Feb 2005 12:33:22 -0300 jrussi wrote:
J> Using mib2c.iterate.conf,v 5.14 2004/10/14 12:57:33, the
J> _createEntry function has an error at the return point. It
J> points to "row" instead of "entry".
J> 
J> The argument of the function is also create with a typo
J> error, with an extra comma.
J> 
J> Am I doing something wrong or is it a error?

Nope, you are right, it is an error.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Plz Clarify

2005-03-08 Thread Robert Story
On Sat, 26 Feb 2005 19:07:44 +0530 (IST) Veerabahu wrote:
VS> but its giving out error what might be the reason.help me out in resolving
VS> this

What are the errors?

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Deprecated objects in ifTable

2005-03-08 Thread Robert Story
On Fri, 25 Feb 2005 19:10:38 +0530 Sridhar wrote:
SS> It means that the agent I implement should not support these objects. In
SS> the UCD-Style of coding I removed these objects from the initialization
SS> structure, there by preventing them by getting registerd at the agent.
SS> So 'SNMP_NOSUCHOBJECT' error will be returned to the manager. 
SS> 
SS> My question is how can I achieve this by using Net-SNMP style of coding.

What handler are you using? As long as you have the table handler in the chain,
you can use the valid_columns structure to indicate which columns the agent
handlers, and it will filter out requests for other columns.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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 Newbie -- Please correct the mistakes

2005-03-08 Thread Robert Story
On Fri, 25 Feb 2005 05:55:42 -0800 (PST) km_jr wrote:
KK> My question comes at step 3. So far I have had integer counters and I
KK> called netsnmp_register_int_instance for all the integral counters. Now I
KK> have counters that have type timeticks. How do I register them ?

Probably the watcher handler is the way to go.

KK> I read about using mib2c but I am not sure which config file to use and
KK> what exactly are the semantics of various config files. 

I don't think there is a config file for this simple case. It shouldn't be two
different from the int instance stuff.

KK> Also the config file for dummies is not supported on my version -- Can't
KK> find a configuration file called mib2c.mfd.conf

what release are you using? mfd is only available for 5.2.x, and doesn't deal
with scalars yet anyways.


-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Handlers registred for child node gets invoked twice on doing snpwalk.. starting from parent node

2005-03-08 Thread Robert Story
On Fri, 25 Feb 2005 05:31:58 -0800 (PST) ranjita wrote:
RN>   I have registered a handler for a node and when I do
RN> snmpget for the node handler gets invoked in the
RN> expected  
RN> way. If I do snmpwalk starting from parent then
RN> handler gets invoked twice. 

How did you register the node?

RN>I need to do some processing before the data is
RN> returned to snmpget request. Please suggest me a way
RN> to do this.

I don't understand. Why not do the work in the handler?

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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 - I need see the same things !!!

2005-03-08 Thread Robert Story
On Thu, 24 Feb 2005 23:35:42 +0100 (CET) G wrote:
GP> I installed on my server SolarWinds for demo.
GP> Now I use net-snmtp as agent. 
GP> Now I have a server with RedHat and if I use snmpd of RedHat o snmpd of
GP> net-snmp I see differente things . I need see (also other my servers) the
GP> same things (CPU,RAM,Disk...). Which files do I configure for to see the
GP> same things in all my servers? I must work on the agent?

Some mib table implementation vary by platform. If the agents are configured
the same, the the problem is that the missing objects are not implemented on
that platform. And yes, that would have to be fixed in the agent.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Question on SET again!

2005-03-08 Thread Robert Story
On Thu, 24 Feb 2005 15:09:14 -0500 sun wrote:
S>Suppose I am using a third party SNMP manager, which is capable of
S>displaying table view, if I modified mutilple column in a single row and
S>commit it, I wonder if the net-snmp upper layer is smart enough to call
S>my table handler only 1 time with MODE_SET_COMMIT?  Or it will be called
S>for every single column with MODE_SET_COMMIT  that has been modifed ? I
S>assume it will be called for every column for all other mode , isn't it?

It depends on the hander you are using.

The old-api handler will be called once per varbind.

The new-api will be called once per request
  - unless the serialize handler is used, which will call once per varbind
  - unless the row_merge handler is used, which will call once per row

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: props with memory status

2005-03-08 Thread Robert Story
On Fri, 25 Feb 2005 10:08:19 +0100 (CET) Ben wrote:
BP> the working server is a SUSE linux openexchange server (based on SLES8)
BP> UCD-snmp version:  4.2.5 (snmpd -v)
BP> 
BP> and the NOT working server is a SUSE linux enterprise server
BP> NET-SNMP version:  5.1 (snmpd -v)

That's the opposite of what I'd expect. Have you tried a more recent version
(like 5.1.2 or 5.2.1)?

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: SNMPD agent

2005-03-08 Thread Robert Story
On Thu, 24 Feb 2005 11:34:54 -0800 Dong, wrote:
DL> I downloaded Net-SNMP version 5.2.1 and just setup through basic
DL> configuration for snmpd.conf I run snmpget from another PC to send get
DL> message to agent but it does not receive any response.  By running
DL> Ethereal on both PCs, I know that the PC that the agent is running on
DL> receiving message.  I don't know why it does not send response, what
DL> did I forget here?  
DL>  
DL> Command on snmpget -v 2c -c public AgtenIP 1.3.6.1.2.1.1.2.0

The command looks good, so it's either (a) access control isn't properly set
up, or (b) a firewall on the receiving machine is blocking the request.

A simple test will reveal the answer. Stop the agent and run it like so:

snmpd -f -Lo -d

Then send a query. If snmpd dumps a packet to the window, the problem is access
control. If not, it's a firewall.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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 errors

2005-03-08 Thread Robert Story
On Thu, 24 Feb 2005 03:37:17 -0800 (PST) Soori wrote:
S> Sorry for bothering all you by asking very basic
S> clarification. Can any one of you please explain
S> SNMP_NOSUCHOBJECT and SNMP_NOSUCHINSTANCE errors with
S> respect to scalars and tables.

A scalar that is not implemented by the agent should return noSuchObject. For a
table, in general you want noSuchInstance, which is saying 'i do not have a
value for this index, but I might have a value for some other index'. If,
however, the request is for a column that is not implemented at all in the
table, then you could return noSuchObject.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Hi.... I need ur help..Please help me

2005-03-08 Thread Robert Story
On Thu, 24 Feb 2005 01:45:19 -0800 Chenna wrote:
C>   I could send the traps usgin "snmptrap" command. But my requirement
C> is to use the api. like snmp_easy_trap...like that.
C> 
C>I tried to use the mib2c to generate the stubs. But it asked to
C> load the PERL module. I got some info for doing it in Solaris but I
C> could not make it done properly.

Did you follow the instructions in README.solaris?

You might also try generating the source on another machine, if you have access
to one.

C>net-snmp-config --compile-subagent iAgent nstAgentSubagentObject.c
C> 
C> But I got the error like /usr/local/bin/net-snmp-config : cannot shift.

Hmmm... try running the script with debug (sh -x net-snmp-config), or modifing
the script to add unique 'echo' statements to determing which shift in the
script is failing.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: snmpd.conf proc problem or general process gather problem

2005-03-08 Thread Ken Tse
changelog doesn't seem to say anything that clearly states that was
resolved.  I just wanted to confirm whether my syntax is correct or not.

My colleagues elude to the fact that snmpd could be a thread not a fork but
don't see any problems rectified in the changelog between those versions
that resolve that.

I guess I'll upgrade more servers to 5.09 and eventually them all.  I was
hoping it was just me and I didn't have to upgrade the versions but I guess
it's better to do so anyways..

Cheers,

KT

Ken Tse
ISG Network & Systems Monitoring
Primus Telecommunications Canada
Bus: 416-207-3057
Cell: 416-473-1095
Fax: 416-207-7125
[EMAIL PROTECTED]


-Original Message-
From: Robert Story [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 2:18 PM
To: Ken Tse
Cc: [EMAIL PROTECTED] Sourceforge. Net (E-mail)
Subject: Re: snmpd.conf proc problem or general process gather problem


On Wed, 23 Feb 2005 16:18:17 -0500 Ken wrote:
KT> net-snmp version 5.0.6
KT> OS REDHAT 8.x
KT>
KT> I checked on the server where I made my snmpd.conf file skeleton
KT> and it's
KT>
KT> net-snmp 5.0.9
KT>
KT> seems like the ones failing are forked processes
KT>
KT> Is this definitely a limitation of 5.0.6 and I should have to check
every
KT> box and upgrade them to at least 5.0.9?

We always recommend running the most recent release in a branch. In this
case,
that would be 5.0.6. You can check the changelog to see if anything obvious
jumps out between 5.0.6 and 5.0.9. Why not try upgrading one of them to
5.0.9,
and see if it works.

--
Robert Story; NET-SNMP Junkie
Support:  
Archive: 

You are lost in a twisty maze of little standards, all different.



-- 

This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the 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. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.

Pour la version en français de ce message, veuillez voir
 http://www.primustel.ca/fr/legal/cs.htm




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: snmpd.conf proc problem or general process gather problem

2005-03-08 Thread Robert Story
On Wed, 23 Feb 2005 16:18:17 -0500 Ken wrote:
KT> net-snmp version 5.0.6
KT> OS REDHAT 8.x
KT> 
KT> I checked on the server where I made my snmpd.conf file skeleton
KT> and it's
KT> 
KT> net-snmp 5.0.9
KT> 
KT> seems like the ones failing are forked processes
KT> 
KT> Is this definitely a limitation of 5.0.6 and I should have to check every
KT> box and upgrade them to at least 5.0.9?

We always recommend running the most recent release in a branch. In this case,
that would be 5.0.6. You can check the changelog to see if anything obvious
jumps out between 5.0.6 and 5.0.9. Why not try upgrading one of them to 5.0.9,
and see if it works.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Error: OID not increasing: with proxy

2005-03-08 Thread Robert Story
First, your alias for the list address has a trailing '.', which causes my
mailserver to reject my replies to you. Please remove it.

On Fri, 4 Mar 2005 14:32:35 +0100 MAUGER wrote:
MFER> I've got an agent which is configure in order to forward snmp request
MFER> thanks to the "proxy" command in snmpd.conf it can be resume at this:
MFER> 
MFER>   |agent1|---|agent2(the proxy)||management station|
MFER> 
MFER> I want my management station to query the agent1 using the proxy.
MFER> it works well but i've got a problem when i make an "snmpwalk" from the
MFER> management station to the agent 1 using the proxy. At the end of the
MFER> result i've got the follwing error:
MFER> 
MFER>   SNMPv2-MIB::sysLocation.0 = STRING: seoul
MFER>   SNMPv2-MIB::sysServices.0 = INTEGER: 2
MFER>   SNMPv2-MIB::sysServices.0 = INTEGER: 34
MFER>   Error: OID not increasing: SNMPv2-MIB::sysServices.0
MFER> 
MFER> my snmpwalk is construct as follow:
MFER>   
MFER>snmpwalk -v 3 -u "snmpV3_user_agent2" -A "my_pwd" -a MD5 -l authNoPriv
MFER>-n seoul "ip_agent2" system
MFER> 
MFER> my proxy line on the agent2 is:
MFER> 
MFER>   proxy -Cn seoul -v 1 -c "agent1_community" "ip_agent1" system
MFER> 
MFER> the problem seams to come from the proxy cause when i make the request
MFER> directly from the agent2 to the agent1 using:
MFER> 
MFER>   snmpwalk -v 1 -c "agent1_community" "ip_agent1" system
MFER> 
MFER>   i've got a correct result as this:
MFER>   
MFER>   SNMPv2-MIB::sysLocation.0 = STRING: seoul
MFER>   SNMPv2-MIB::sysServices.0 = INTEGER: 2

What about if you query agent2 without the context? Like so:

  snmpwalk -v 3 -u "snmpV3_user_agent2" -A "my_pwd" -a MD5 -l authNoPriv
"ip_agent2" system

Does it have a sysServices.0 of 34? If so, it looks like the agent is getting
confused and mixing the default (local) context with the remote (proxied)
context.

You also don't say, for agent 2, what release you are running, and what
platform you are running on.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Questions: building MIB agent using table iterator helpers

2005-03-08 Thread Robert Story
On Wed, 2 Mar 2005 22:38:51 -0500 Chuck wrote:
CC> I am using Net-snmp 5.0.8 on redhat Enterprise WS 3 (2.4 kernel).
CC> I want my agent implemented as a separate agentX subagent.

I'd recommend upgrading to at least 5.1.2 if you are using AgentX. Or at least
5.0.9, which is the most recent 5.0.x release.

CC> I am implementing a MIB that defines two tables.  [...] I have implemented
CC> the guts to the callback functions generated by mib2c, using configuration
CC> file"mib2c.iterate.conf".
CC> 
CC> I have several questions as I am trying to better understand how the
CC> arguments to these callback functions should be handled.
CC> 
CC> 1.  How do I interpret the arguments to the get_first callback so that I
CC> know whether this is truly a call for the first row of the table, or a call
CC> for the first row, but second (third, etc) column?

You can't. The get_*_datapoint routines are only concerned with finding
indexes, not columns.

CC> I observe that the SessionTable_get_first_data_point function is called
CC> many times.

In what context? during a snmpwalk? a snmpget? In general, it will be called
once per request.

CC> I have read that this function is supposed to be called for
CC> the first row, and the SessionTable_get_next_data_point function should
CC> provide values for each of the rows.

Neither routine provides values, they provide the indexes. Values are not dealt
with until the handler is called.

CC> It appears that the get_first function is being called for each column of
CC> the table.

For a single request it shouldn't. However, that's in recent releases. I do
seem to recall some efficiency improvements being made to the iterator stuff,
but that was a while ago. You might want to try testing 5.1.2 and seeing if you
get the same results.

CC> 2.  When should the SessionTable_handler function be called?  And how do I
CC> interpret the arguments to this function?

It will be called once the get_*_datapoint routines have found the right row
for a request. In general, you only need to deal with the requests parameter,
to provide values for each request varbind.

CC> I had expected that the SessionTable_handler function would be called to
CC> provide data for each column.  It appears to be called once for each
CC> column, and my implementation does determine which column should be
CC> processed.  But it appears that this handler function is able to process
CC> several columns iteratively, and it seems to only process one column for
CC> each call.

Again, without knowing what type of request you are processing, or how many
varbinds it has, it's hard to say.

CC> 3.  Could someone tell me how to print out the OID I am working with in the
CC> _get_first, _get_next, or _handler functions?

The get routines don't know anything about the OID in the request. They only
need to set the indexes for every row in the table.  In the handler, the
example code should extract the table info, which will tell you what column you
are dealing with. It also has the OID of the incoming request. For a get/set,
that is the same as the OID of the row. For a get-next, it is not, and there is
no way to get it from the api. But you have the data context you set in the get
routines, so you should be able to figure it out the same way you did in the
get routines.

CC> 4.  How do I know which row of the table a particular GET has requested? 
CC> Is that part of the arguments to _get_first (and _get_next)?

Again, the get routines don't deal with the particulars of a request.

CC> 5.  I understand that the callback functions are called the GET(SET) for
CC> the associated OID is received.

I can't parse that sentence.

CC> 6.  Have I done something wrong if the table callback functions are getting
CC> called many times?  The table processing seems to call an awful lot of
CC> functions to get very little data.

Probably not. The iterator stuff is inefficient. particularly older versions,
before the optimization changes were made.


-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Agent CODE

2005-03-08 Thread Robert Story
On Thu, 3 Mar 2005 01:03:57 +0530 Jude wrote:
JAA> hi.. i have generated the AGENT code using MIB2C.
JAA> 
JAA> Now once i modify the file ( .C ) . How shud i compile it to check for
JAA> errors...
JAA> 
JAA> shud i use ./configure and MAKE or just Make.??

for a simple program, make should suffice. See the tutorial section of the web
site for some simple makefiles that inlcude the correct libraries.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: walking the table

2005-03-08 Thread Robert Story
On Wed, 2 Mar 2005 18:30:54 -0500 sun wrote:
S>   I hope some one could answer me this time. 
S> In my table handler, when handling the GET, if a column get wrong data and I
S> called the netsnmp_set_request_error() and break out from the switch
S> statement. 

What do you mean, 'a column get wrong data'?

S>  Apparently, walk will stop, I wonder how do i make the walking continue?

What error are you returning?

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Monitoring Interfaces

2005-03-08 Thread Robert Story
On Thu, 3 Mar 2005 15:45:36 +0200 Chris wrote:
CV> I've tried just doing a make and make install in
CV> /usr/ports/net-mgmt/net-snmp and running snmpconf to build a config file.

What release of net-snmp?

CV> But snmpd doesn't seem to open a port to listen on

How are you determining that it isn't listening? Are you running it as root?

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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_NOSUCHOBJECT or SNMP_NOSUCHINSTANCE

2005-03-08 Thread Robert Story
On Wed, 02 Mar 2005 15:51:59 +0530 Sridhar wrote:
SS> In the above code if agent fails to retrieve the values for ipForwarding
SS> and ipDefaultTTL objects from the kernel then, these var-binds are
SS> marked as SNMP_NOSUCHOBJECT, shouldn't it be SNMP_NOSUCHINSTANCE. I just
SS> compared the processing of GetRequest PDU as per the section 4.2.1 of
SS> RFC-3416. 

No, this case falls under case (2) of that section, so noSuchObject is correct.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: platform

2005-03-08 Thread Robert Story
On Wed, 2 Mar 2005 10:15:23 +0800 Paul wrote:
PC> What platform does net-snmp support?
PC> My OS is MontaVista Linux. Can net-snmp package be installed and run on
PC> this OS___

yes, it should work pretty well on most flavors of Linux.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
___
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 - FTP Traffic

2005-03-08 Thread Robert Story
On Thu, 3 Mar 2005 09:36:01 +0530 Senthil wrote:
SM> Is there any way to get the FTP Traffic information from the NETSNMP?

Not directly, no. But if you can write a script that collects that information,
you can use net-snmp to run that script and get the information.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: finding agent executable.

2005-03-08 Thread Robert Story
On Mon, 07 Mar 2005 15:09:59 +0530 Sridhar wrote:
SS> If you have installed with default options, then the installable will be
SS> under /usr/sbin directory, otherwise under the directory specified by
SS> --prefix parameter to the 'configure' script.

Actually, when installing directly from source, the default is
/usr/local/sbin/.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: MIB Data Type

2005-03-08 Thread Robert Story
On Wed, 2 Mar 2005 23:53:50 +0530 Jude wrote:
JAA> I want to understand the difference between 
JAA> MIB's  OCTET STRING  and DISPLAY string...

A Display string is just an octet string that is defined to contain ascii
characters.

JAA> wat should i use to store some "description or text"

DisplayString.

JAA> Should i use.. SIZE of SIZE RANGE??

If you want to describe that the string has certain size restrictions, then
yes. If the string can be in the range defined by DisplayString (0-255), then
you don't need to add anything.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Tables with 2 indexes

2005-03-08 Thread Robert Story
On Wed, 2 Mar 2005 12:48:07 -0500 sun wrote:
S>I have a table with 2 indexes. The table Enry defined an auxiliary
S>variable for second index to indentify the instance.
S> I  used mib2c.iterate_access.conf  to generate the code frame work.  In my 
S> xxx_get_next_data_point() function, I did something like :
S> 
S> snmp_set_var_value(pindex, index_data1, size ); /* set the first index value
S> */ pindex = pindex->next_variable;
S> snmp_set_var_value(pindex, index_data2, size);  /* set the second index
S> value */
S> 
S> Both index values are integer type. 

that looks about right.
 
S> the problem is , I can not see the second index  value when I try to poll
S> the table view.  It did showed that I have 2 rows, instance is 0.0 and 0.1,

First off, the use of 0 as an index is strongly discouraged. You should try and
start with 1.

S> but the column for second index has nothing show up, all other column showed
S> the right value. 

That sounds like it would be a problem in the handler which sets the data
values.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: 5.2.1 Trap Handler causes snmptrapd to exit from broken pipe

2005-03-08 Thread Michael Higgins
Robert Story wrote:
On Fri, 04 Mar 2005 10:46:02 -0800 Michael wrote:
MH> Using a simple setup as described in 
MH> http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html, when 
MH> a trap is received, the snmptrapd process fails from a broken pipe.  I 
MH> then use the same setup with 5.0.9 and everything functions as designed.
MH> 
MH> I did a little digging and it looks like the problem is in 
MH> agent/mibgroup/utilities/execute.c in run_exec_command().  I don't know 
MH> a whole lot about how this is architected, but it appears that two 
MH> threads are responsible for making this happen.  One gets the trap 
MH> handler process running and the other writes to its stdin and waits for 
MH> any output.
MH> 
MH> What I see happening is the thread that is initiating the trap handler 
MH> does some manipulation of file descriptors, closing the standard ones 
MH> and redirecting them to pipes.  When it does a close(2), this function 
MH> never returns.  (Is this stderr?)

Yes, and it is odd that it doesn't return..
MH>  In the meantime, the other thread 
MH> marches ahead and attempts to write to the pipe.  This is where the 
MH> broken pipe happens and the process terminates.

Apparently snmpd handles this by ignoring SIGPIPE. Add this code in
snmptrapd.c, near the other signal handlers:
#ifdef SIGPIPE
   signal(SIGPIPE, SIG_IGN);   /* 'Inline' failure of wayward readers */
#endif
MH> I didn't see it bugged either.  Should it be?
Yes, anything that causes the daemon to crash is very bad.
 

Thanks for the reply and suggestions.  I can ignore SIGPIPE, but I'll 
also have to skip the close(2) call so that the trap handler can be 
started.  I wonder what the effect of that might be?

Mike

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: TIME OUT

2005-03-08 Thread Jude Amal Anand
Yeah now i get the Results for WALK.

I commented the INFORMSINKS in my snmpd.conf file now the error

snmpd: send_trap: Timeout

does not appear on screen.

and am sending the trap to the local machine. It works fine. Now if i
need to send TRAP to a remote machine(192.169.10.2) does changing the
localhost address to this address solve the problem.

Or as u have mentioned in one of your previous mails to use a SCRIPT.
If so how do i integrate with the SNMPD file.

Thanx for the help

Jude


On Tue, 8 Mar 2005 11:06:35 -0500, Robert Story <[EMAIL PROTECTED]> wrote:
> On Sat, 5 Mar 2005 01:43:00 +0530 Jude wrote:
> JAA> I recently installed Net-snmp in my linux rh9 machine.
> JAA> NET-SNMP version 5.2.1.rc3
> 
> I'd suggest upgrading to the full 5.2.1, instead of rc3.
> 
> JAA> % snmpwalk -v 1 -c public localhost system
> JAA>
> JAA> But it shows the following error after a few seconds.
> JAA>
> JAA> snmpd: send_trap: Timeout
> 
> Do you get results for the walk?
> 
> Do you have any informsinks in your snmpd.conf? If so, is the destination
> actually listening for informs?
> 
> --
> Robert Story; NET-SNMP Junkie
> Support:  
> Archive: 
> 
> You are lost in a twisty maze of little standards, all different.
>


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: 5.2.1 Trap Handler causes snmptrapd to exit from broken pipe

2005-03-08 Thread Robert Story
On Fri, 04 Mar 2005 10:46:02 -0800 Michael wrote:
MH> Using a simple setup as described in 
MH> http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html, when 
MH> a trap is received, the snmptrapd process fails from a broken pipe.  I 
MH> then use the same setup with 5.0.9 and everything functions as designed.
MH> 
MH> I did a little digging and it looks like the problem is in 
MH> agent/mibgroup/utilities/execute.c in run_exec_command().  I don't know 
MH> a whole lot about how this is architected, but it appears that two 
MH> threads are responsible for making this happen.  One gets the trap 
MH> handler process running and the other writes to its stdin and waits for 
MH> any output.
MH> 
MH> What I see happening is the thread that is initiating the trap handler 
MH> does some manipulation of file descriptors, closing the standard ones 
MH> and redirecting them to pipes.  When it does a close(2), this function 
MH> never returns.  (Is this stderr?)

Yes, and it is odd that it doesn't return..

MH>  In the meantime, the other thread 
MH> marches ahead and attempts to write to the pipe.  This is where the 
MH> broken pipe happens and the process terminates.

Apparently snmpd handles this by ignoring SIGPIPE. Add this code in
snmptrapd.c, near the other signal handlers:

#ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN);   /* 'Inline' failure of wayward readers */
#endif

MH> I didn't see it bugged either.  Should it be?

Yes, anything that causes the daemon to crash is very bad.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: TIME OUT

2005-03-08 Thread Robert Story
On Sat, 5 Mar 2005 01:43:00 +0530 Jude wrote:
JAA> I recently installed Net-snmp in my linux rh9 machine.
JAA> NET-SNMP version 5.2.1.rc3

I'd suggest upgrading to the full 5.2.1, instead of rc3.

JAA> % snmpwalk -v 1 -c public localhost system
JAA> 
JAA> But it shows the following error after a few seconds.
JAA> 
JAA> snmpd: send_trap: Timeout

Do you get results for the walk?

Do you have any informsinks in your snmpd.conf? If so, is the destination
actually listening for informs?


-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Configure Access Control List

2005-03-08 Thread Robert Story
On Mon, 7 Mar 2005 19:36:49 +0530 Rustagi, wrote:
RS> We are trying to use the SNMP version 1 and using the example-daemon
RS> (present in  the tutorial section) to connect to Master Agent.
RS> We are getting the following messages:
RS> 
RS> Error: Failed to connect to the agentx master agent: Unknown host (No such
RS> file or directory)
RS> Warning: no access control information configured.
RS>   It's unlikely this agent can serve any useful purpose in this state.
RS>   Run "snmpconf -g basic_setup" to help you configure the
RS>   example-demon.conf
RS> file for this agent.
RS> example-demon is up and running.
RS> Error: Failed to connect to the agentx master agent: Unknown host (No such
RS> file or directory)
RS> 
RS> The following lines are added in /usr/local/share/snmp/snmpd.conf:

First, if you look at the error message, it tells you that it is looking for
example-demon.conf, not snmpd.conf.

RS> com2sec local 127.0.0.1   public
RS> com2sec mynetwork 192.168.80.0/24  public
RS> 
RS> rocommunity  public 127.0.0.1

Second, you can't mix and match com2sec and rocomunity. com2sec, by itself,
does nothing. You need to use the complete suite of tokens, including access,
view, and group.

RS> rwcommunity  public 127.0.0.1

Third, using the same community string for rw and ro is redundant and may cause
unexpected results. 

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: trap forwarding pb

2005-03-08 Thread Robert Story
On Tue, 8 Mar 2005 14:10:24 +0100 MAUGER wrote:
MFER> I'd like to forward trap received by my snmptrapd to a remote host.
MFER> so I wanted to use the "forward" directive in the snmptrapd.conf file,
MFER> but the it seams that the snmptrapd daemon doesn't know this directive
MFER> and i don't know why??? moreover "forward" is not present in the
MFER> snmptrapd.conf man page. for information I'm using the 5.0.9 version.

Forwarding wasn't added til later. I don't remember when, exactly, but I know
it is in 5.1.2 and 5.2.1.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Anyone got Traps/Informs working with IPv6?

2005-03-08 Thread Robert Story
On Tue, 8 Mar 2005 14:59:04 +0100 Frithiof wrote:
FJ> I am trying to set an IPv6 host as the reciever for Traps/Informs but I
FJ> cannot get it to work - the Agent logs:
FJ> 
FJ> /etc/snmp/snmpd.conf: line 426: Error: cannot create trap2sink:
FJ> udp6:3ffe:100:3:401:260:67ff:fe77:b2c

Try udp6:[3ffe:100:3:401:260:67ff:fe77:b2c] as the address...

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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: Anyone got Traps/Informs working with IPv6?

2005-03-08 Thread Frithiof Jensen (AH/LMD)
BTW: This is on a Debian Sarge, using net-snmp-5.2.1 source build with the ipv6 
support enabled and the UDP6 and TCP6 transports enabled as well (via the 
configure script). 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Frithiof
Jensen (AH/LMD)
Sent: 8. marts 2005 14:59
To: net-snmp-users@lists.sourceforge.net
Subject: Anyone got Traps/Informs working with IPv6?


Hi List

I am trying to set an IPv6 host as the reciever for Traps/Informs but I cannot 
get it to work - the Agent logs:

Mar  8 11:37:19 tethys snmpd[3308]: snmpd: create_trap_session: Unknown host 
(Resource temporarily unavailable)
Mar  8 11:37:19 tethys snmpd[3308]: /etc/snmp/snmpd.conf: line 426: Error: 
cannot create trap2sink: udp6:3ffe:100:3:401:260:67ff:fe77:b2c
Mar  8 11:37:19 tethys snmpd[3308]: snmpd: create_trap_session: Unknown host 
(Resource temporarily unavailable)
Mar  8 11:37:19 tethys snmpd[3308]: /etc/snmp/snmpd.conf: line 427: Error: 
cannot create informsink: udp6:3ffe:100:3:401:260:67ff:fe77:b2c

What could be wrong?  




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
___
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


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
___
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


Anyone got Traps/Informs working with IPv6?

2005-03-08 Thread Frithiof Jensen (AH/LMD)
Hi List

I am trying to set an IPv6 host as the reciever for Traps/Informs but I cannot 
get it to work - the Agent logs:

Mar  8 11:37:19 tethys snmpd[3308]: snmpd: create_trap_session: Unknown host 
(Resource temporarily unavailable)
Mar  8 11:37:19 tethys snmpd[3308]: /etc/snmp/snmpd.conf: line 426: Error: 
cannot create trap2sink: udp6:3ffe:100:3:401:260:67ff:fe77:b2c
Mar  8 11:37:19 tethys snmpd[3308]: snmpd: create_trap_session: Unknown host 
(Resource temporarily unavailable)
Mar  8 11:37:19 tethys snmpd[3308]: /etc/snmp/snmpd.conf: line 427: Error: 
cannot create informsink: udp6:3ffe:100:3:401:260:67ff:fe77:b2c

What could be wrong?  




---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
___
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


trap forwarding pb

2005-03-08 Thread MAUGER Fabien ext ROSI/DPS
Hi,

I'd like to forward trap received by my snmptrapd to a remote host.
so I wanted to use the "forward" directive in the snmptrapd.conf file, but the 
it seams that the snmptrapd daemon doesn't know this directive and i don't know 
why???
moreover "forward" is not present in the snmptrapd.conf man page. 
for information I'm using the 5.0.9 version.

thanks,

Fabien MAUGER


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
___
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