Hi Dave,

Just tried that and got errors on compiling:
/bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent
-I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2
-Usolaris2 -Dsolaris2=solaris2 -c -o snmpd.lo snmpd.c
gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
-I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c
snmpd.c -fPIC -DPIC -o .libs/snmpd.o
snmpd.c: In function `main':
snmpd.c:948: warning: assignment discards qualifiers from pointer target
type
gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
-I/usr/local/ssl/include -g -O2 -Usolaris2 -Dsolaris2=solaris2 -c
snmpd.c -o snmpd.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2
-Dsolaris2=solaris2 -o snmpd snmpd.lo -L/usr/local/ssl/lib
libnetsnmpmibs.la libnetsnmpagent.la
helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lkvm
-lcrypto -lkstat -lelf -lm -lnsl -lsocket -lpicl -ladm
gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -o .libs/snmpd .libs/snmpd.o
-L/usr/local/ssl/lib ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lkvm -lcrypto -lkstat -lelf -lm -lnsl -lsocket -lpicl -ladm -R/usr/local/lib
Undefined first referenced
symbol in file
kd ./.libs/libnetsnmpmibs.so
ld: fatal: Symbol referencing errors. No output written to .libs/snmpd
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/root/source/net-snmp-5.4/agent'
make: *** [subdirs] Error 1

John

On Mon, 2007-01-08 at 12:56 +0000, Dave Shield wrote:
> On 08/01/07, John Clinton wrote:
> > od and strings output below. strings is truncated like native ps
> > command. Not sure about od command.

>
> Looks the same:
>
> > root@myhost:/root# od -c /proc/5026/psinfo

> [snip]
> > 0000140 \0 \0 \0 \0 \0 \0 \0 \0 / u s r / l o c
> > 0000160 a l / j d k / b i n / j a v a
> > 0000200 - s e r v e r - X m s 2 5 6 m
> > 0000220 - X m x 2 5 6 m - D o r g .
> > 0000240 o m g . C O R B A . O R B C l a
> > 0000260 s s = o r g . \0 \0 \0 \0 \0 \0 \0 \0 \r

>
> If you look closely, you can see
> -Dorg.omg.CORBA.ORBClass=org.
>
> followed by a string of null characters.
> So the agent is correctly reporting the information made
> available via the /proc/.../psinfo interface
>
>
> > Full command line from /usr/ucb/ps is:
> > root@myshost:/root# /usr/ucb/ps -auwxxxx | grep 5026
> > root 5026 0.0 2.0362960116240 ? S Jan 03
> > 0:19 /usr/local/jdk/bin/java -server -Xms256m -Xmx256m
> > -Dorg.omg.CORBA.ORBC

>
> That's actually *shorter* that the ps -ef/snmpd output.
> But your original message showed the full arguments,
> and I can see similar behaviour on another Solaris box
> I have access to.
>
> So the next question is how to retrieve this fuller information.
>
> One thing you could try is to edit the file 'agent/mibgroup/host/hr_swrun.c'
> and immediately before the lines:
>
> #if _SLASH_PROC_METHOD_
> #include
> #endif
>
> add the line
>
> #undef _SLASH_PROC_METHOD_
>
>
> Then recompile the agent, re-run it and try retrieving the hrSWRunParameters
> value again.
>
> What does that display? Anything different?
>
> Dave

--
===========================================
John Clinton, Netcool Administrator
Mobile 678.717.8864 Office: 678.689.6589

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders