- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ps does not show all cmd line args
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 12:21 AM
05-13-2002 12:21 AM
I need to find the process ID of a specific java instance on HP-UX 11. Unfortunatly the system runs multiple java instances with a simmilar set of command line arguments. The difference between the arguments is at a position that ps does not show anymore since it truncates after approx. 60 characters. Is there a command line (freeware or HP-UX standard) tool that shows me everything? I know that glance should be able to do this but I need a fast and lightweight way to do it often (from a monitor script).
Thanks in advance and best regards,
Reiner.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 12:25 AM
05-13-2002 12:25 AM
SolutionHave a look at this link:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x886950011d20d6118ff40090279cd0f9,00.html
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 01:29 AM
05-13-2002 01:29 AM
Re: ps does not show all cmd line args
ps -eflx
Another a couple of good outputs are:
UNIX95=1; ps -efH
or
UNIX95=1;ps -elH
Also note that with the -o option you can closesly control your output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 03:10 AM
05-13-2002 03:10 AM
Re: ps does not show all cmd line args
I tried the ps -eflx and UNIX95=1; ps -efH but both the -x and the -H switch are not known by the ps command from HP-UX 11.0. Which ps did you use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 03:41 AM
05-13-2002 03:41 AM
Re: ps does not show all cmd line args
gointo ksh, then try it.
ksh
UNIX95=1; ps -efH
But it is STILL going to TRUNCATE the line, and there's nothing that can be done about that.
If the SPECIAL OPTION used a different set of FILES, then maybe "lsof" can help you here?
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 03:52 AM
05-13-2002 03:52 AM
Re: ps does not show all cmd line args
UNIX95=1 ps -efH
(note the missing ";") it worked, but you are right, it still truncates at 60 characters. I checked out the thread that Robin mentioned and found some code sample there but the resulting executable only works on some processes, not on my java runtime executables. There seems to be a uid/access right problem. Any other ideas anybody?
Best regards,
Reiner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2002 11:25 AM
05-13-2002 11:25 AM
Re: ps does not show all cmd line args
2) Create a symbolic link that bypasses the intermediate directories and invoke the app using the link.
3)Try the freeware program pstree. I'll try to attach a copy to this reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 12:13 AM
05-14-2002 12:13 AM
Re: ps does not show all cmd line args
Maybe you can try with the snmp agent. On HPUX 10.20, the standard snmp agent report the list of the process and also the list of the args (in a different table).
The easiest way is to have the 'snmpwalk' tool (you also need the HPUX MIB file), but if you have HPOpenview it will also work (it has the snmpwalk tool).
You can download UCD-SNMP for HPUX which has all the related tool.
(I know, it's not the easy way)
S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 12:30 AM
05-14-2002 12:30 AM
Re: ps does not show all cmd line args
...
S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 08:28 AM
05-14-2002 08:28 AM
Re: ps does not show all cmd line args
Alas it would be nice if HP had a Berkely style ps command such as can be had on Sun - /usr/ucb/ps -auxww
But life is not always fair.......
Good Luck,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 09:53 AM
05-14-2002 09:53 AM
Re: ps does not show all cmd line args
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 10:21 AM
05-14-2002 10:21 AM
Re: ps does not show all cmd line args
Well this certainly could be promising - this patch states it will now support allocating kernel memory to support up to 1020 chars of the command line.
But be advised it has dependencies - incl:
PHKL_25999/21778/21684/21518/22588
PHCO_22592
25999 along with 26008 for the storage to be enabled
21684 & 21518 to increase the msg queue capacity
21778 is required for SAM support for the tunables
22588 & PHCO_22592 together provide an enhancement so the customer is able to use commands to display the information about POSIX message queues and named semaphores as well as remove them.
I think I'll try to look this one over on a test system
Rgds,
Jeff