Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

PS output is not displaying full process running

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-15-2016
mrmurdock mrmurdock is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 8 May 2017, 12:48 PM EDT
Posts: 62
Thanks: 2
Thanked 0 Times in 0 Posts
HP PS output is not displaying full process running

I have 4 HPUX 11.31 servers with the same Quality Pack bundles. "AS FAR AS I CAN TELL" no system files have been modified.
  • /usr/bin/ps is the same date size and creation date
  • terminfo file (x-->xterm) is the same date size and creation date
  • shell (ksh) is the same date size and creation date
on all 4 nodes.

This problem appears using either a xterm emulator or a putty ssh session.
The TERM type is xterm

Code:
echo $TERM
xterm

PROBLEM:
On one of the nodes, a ps -ef output does not show the full output of the process command running as it does on the other 3 servers.

From the script -

Code:
ps -ef | egrep -e '-Dn='$RESOURCE

($Resource is name of the process we are grep'ing on)

From the command line -

Code:
ps -ef | egrep -e '-Dn='Bob1

(or Bob2) (depends which process is on which box).
This is a Service guard package so Bob1 is on Node 1 and Bob2 is on Node 2.
Bob1 output shows up fully as expected. Bob2 output gets truncated.
When Bob2 is on Node 1, the output is normal (complete line is displayed).
So it seems to be following the Node. Just do not know where to begin looking to solve this.

Last edited by rbatte1; 07-18-2016 at 06:17 AM.. Reason: Set formatted list from text one, added CODE tags
Sponsored Links
    #2  
Old Unix and Linux 07-15-2016
Yoda's Unix or Linux Image
Yoda Yoda is offline Forum Advisor  
Jedi Master
 
Join Date: Jan 2012
Last Activity: 26 May 2017, 10:38 AM EDT
Location: Galactic Empire
Posts: 3,544
Thanks: 251
Thanked 1,288 Times in 1,210 Posts
Did you try using extended format option?

Code:
-x             Shows the command line in extended format.

Sponsored Links
    #3  
Old Unix and Linux 07-15-2016
mrmurdock mrmurdock is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 8 May 2017, 12:48 PM EDT
Posts: 62
Thanks: 2
Thanked 0 Times in 0 Posts
Yes, we have, and it solves the issue, but, why would that have changed and it is not needed on the other 3 boxes.
    #4  
Old Unix and Linux 07-15-2016
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 28 May 2017, 1:23 PM EDT
Location: Simplicity
Posts: 3,548
Thanks: 277
Thanked 1,181 Times in 1,069 Posts

Code:
# getconf ARG_MAX
# UNIX95=1 ps -ef | cat
# kctune | egrep 'ps|proc'
# type ps; which ps

Any diffference?
Sponsored Links
    #5  
Old Unix and Linux 07-15-2016
mrmurdock mrmurdock is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 8 May 2017, 12:48 PM EDT
Posts: 62
Thanks: 2
Thanked 0 Times in 0 Posts
Yes.
The UNIX95 shows the truncated command being ran on the ailing node.
Rest are the same.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Displaying log file pattern output in tabular form output Optimus81 Shell Programming and Scripting 9 02-01-2013 10:26 AM
Banner not displaying full content pandeesh UNIX for Dummies Questions & Answers 5 01-19-2012 07:42 AM
Variable not displaying while running in cron job josephroyal Shell Programming and Scripting 4 06-22-2011 06:52 AM
ps -ef does not displaying the running process sureshbabuc Shell Programming and Scripting 8 11-25-2009 12:39 PM
Displaying current user process felixwhoals Shell Programming and Scripting 14 12-16-2007 06:00 PM



All times are GMT -4. The time now is 06:21 PM.