[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-850185 ] PROXY functionality doesn't work on HP-UX - (<= v5.1)
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2003-11-28 12:20:26
[Download RAW message or body]

Bugs item #850185, was opened at 2003-11-27 13:15
Message generated for change (Comment added) made by jaberg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=850185&group_id=12694

Category: agent
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Juuso Åberg (jaberg)
Assigned to: Nobody/Anonymous (nobody)
Summary: PROXY functionality doesn't work on HP-UX - (<= v5.1) 

Initial Comment:
I have found out that proxy configuration directive 
doesn't work on HP-UX environment. I did try exact 
configuration on our linux box and it works perfectly. 

NetSNMP versions affected at least 5.0.8,5.0.9,5.1 and 
all 'unstable' releases between these releases.

Below are attachments and information about used 
environment. I'm willing to help on testing this one.

Br, juuso.aberg <magic> suomi24.fi

ENVIRONMENT:
----------8<----------------8<---------------
bash-2.05$ uname -a 
HP-UX thorium B.11.11 U 9000/800 887699432 unlimited-
user license
bash-2.05$ aCC -V
aCC: HP ANSI C++ B3910B A.03.35
----------8<----------------8<---------------

SNMPD.CONF:
----------8<----------------8<---------------
rocommunity private
rwcommunity private

# Proxy config
proxy -v 1 -c private 
thorium .iso.org.dod.internet.mgmt.mib-
2.system.sysUpTime.0
----------8<----------------8<---------------



STDOUT:
----------8<----------------8<---------------
bash-2.05$ ./snmpd -r -f -Dproxy thorium:10000
No community name specified.
----------8<----------------8<---------------

SNMPD.LOG:
----------8<----------------8<---------------
proxy_config: entering
proxy_args: final args: 0 = snmpd-proxy
proxy_args: final args: 1 = 
proxy_args: final args: 2 = -v
proxy_args: final args: 3 = 1
proxy_args: final args: 4 = -c
proxy_args: final args: 5 = private
proxy_args: final args: 6 = thorium
proxy_config: parsing args: 7
/opt/cg/2.0/net-snmp/etc/snmp/snmpd.conf: line 5: 
Error: failed to parse proxy args
net-snmp: 1 error(s) in config file(s)
NET-SNMP version 5.1
----------8<----------------8<---------------


----------------------------------------------------------------------

>Comment By: Juuso Åberg (jaberg)
Date: 2003-11-28 14:20

Message:
Logged In: YES 
user_id=913621

Patch 850716 fixes this problem.

.Juuso

----------------------------------------------------------------------

Comment By: Juuso Åberg (jaberg)
Date: 2003-11-27 15:31

Message:
Logged In: YES 
user_id=913621

It seems that problem reported has something to do with the 
parsing of the proxy directive. Following attachment is from 
log file of our working proxy(linux) setup.

By comparing the lines can be seen that on HP-UX there is 
one 'empty' value and the last argument is lost. It is very 
likely loosing the last one because of the empty value.

Br, juuso.aberg <magic> suomi24.fi

----------8<----------------8<---------------
proxy_config: entering
proxy_args: final args: 0 = snmpd-proxy
proxy_args: final args: 1 = -v
proxy_args: final args: 2 = 1
proxy_args: final args: 3 = -c
proxy_args: final args: 4 = private
proxy_args: final args: 5 = 172.21.108.12:10001
proxy_args: final args: 6 = .iso.org.dod.internet.mgmt.mib-
2.system.sysUpTime.0
proxy_config: parsing args: 7
proxy_config: done parsing args
proxy_init: name = .iso.org.dod.internet.mgmt.mib-
2.system.sysUpTime.0
proxy_init: registering at: RFC1213-MIB::sysUpTime.0
----------8<----------------8<---------------


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=850185&group_id=12694


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic