On 08/01/07, John Clinton <[EMAIL PROTECTED]> wrote:
> od and strings output below.  strings is truncated like native ps
> command.  Not sure about od command.

Looks the same:

> [EMAIL PROTECTED]:/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:
> [EMAIL PROTECTED]:/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 <procfs.h>
#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

-------------------------------------------------------------------------
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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to