PS output truncation in AIX


 
Thread Tools Search this Thread
Operating Systems AIX PS output truncation in AIX
# 1  
Old 10-25-2005
Data PS output truncation in AIX

folks;
i need help with a truncation problem in AIX when running "ps" command. when i run ps in SUN, i got the full output but when i run it in AIX the output is truncated. is there any arguments i can pass to give longer output so i can overcome the issue?

here's the detailsSmilieplease note the red color, that's where ps output ends in AIX)

"ps" output in AIX:

Code:
compdev@cmpl-d2> /usr/ucb/ps -ef | grep 28606 
compdev  28606  0.4  0.4150961690776 pts/121  S 11:42:34  0:16 /opt/compdev/comp/vendor/j2re1.4.1_01/bin/java -ms1400m -mx2048m -Djava.rmi.server.logCalls=true -verbose:gc -classpath .:/opt/compdev/comp/lib/engine_damgrsvc-1.0.200_ENGINE_DAMGRSVC.jar:/opt/compdev/comp/lib/engine_toplinkimpl-1.0.145_ENGINE_TOPLINKIMPL.jar:/opt/compdev/comp/lib/rules_common-1.0.112_RULES_COMMON.jar:/opt/compdev/comp/lib/uimodel-1.0.142_UI_MODEL.jar:/opt/compdev/comp/lib/engine_model-1.0.113_ENGINE_MODEL.jar:/opt/compdev/comp/lib/engine_common-1.0.229_ENGINE_COMMON.jar:/opt/compdev/comp/vendor/toplink-9.0.4.2/lib/toplink.jar:/opt/compdev/comp/vendor/oracle-xdk-9.2.0.6/lib/xdb.jar:/opt/compdev/comp/vendor/oracle-xdk-9.2.0.6/lib/xmlparserv2.jar:/opt/compdev/comp/vendor/oraclejdbc-10.1.0.2.0/ojdbc14.jar:/opt/compdev/comp/vendor/castor/0.9.6/castor-0.9.6.jar:/opt/compdev/comp/vendor/castor/0.9.6/castor-0.9.6-xml.jar:/opt/compdev/comp/vendor/jakarta-commons-logging/1.0.3/commons-logging.jar:/opt/compdev/comp/vendor/xerces/2.4.0/xercesImpl.jar:/opt/compdev/comp/vendor/log4j-v1.2.6/log4j-1.2.6.jar:/opt/compdev/comp/vendor/rv7.3/java/rvjpro.jar:/opt/compdev/comp/vendor/jt400-52/lib/jt400.jar:/opt/compdev/comp/vendor/gett-4.5.4/common_base-4.5.4.028_COMMON_BASE.jar:/opt/compdev/comp/vendor/gett-4.5.2/impl_rv6-4.5.2.002_IMPL_RV6.jar:/opt/compdev/comp/vendor/gett-4.5.2/impl_rv-4.5.2.010_IMPL_RV.jar:/opt/compdev/comp/vendor/gett-4.5.2/common_facility-4.5.2.009_COMMON_FACILITY.jar:/opt/compdev/comp/vendor/gett-4.5.4/framework_genericapp-4.5.4.036_FRAMEWORK_GENERICAPP.jar:/opt/compdev/comp/vendor/gett-4.5.4/framework_genericsvc2-4.5.4.028_FRAMEWORK_GENERICSVC2.jar:/opt/compdev/comp/vendor/gett-4.5.4/common_dataaccess-4.5.4.029_COMMON_DATAACCESS.jar:/opt/compdev/comp/vendor/gett-4.5.4/framework_feed-4.5.4.056_FW_FEED.jar:/opt/compdev/comp/vendor/gett-4.5.4/impl_toplink-4.5.4.026_IMPL_TOPLINK.jar:/opt/compdev/comp/vendor/TibMsg-3v1.0.1/packages/Tib.jar:/opt/compdev/comp/vendor/concurrent/concurrent.jar:/opt


ps output in SUN:


Code:
compdev@cmpl-d2> /usr/ucb/ps -auxww | grep 28606 
compdev  28606  0.4  0.4150961690776 pts/121  S 11:42:34  0:16 /opt/compdev/comp/vendor/j2re1.4.1_01/bin/java -ms1400m -mx2048m -Djava.rmi.server.logCalls=true -verbose:gc -classpath .:/opt/compdev/comp/lib/engine_damgrsvc-1.0.200_ENGINE_DAMGRSVC.jar:/opt/compdev/comp/lib/engine_toplinkimpl-1.0.145_ENGINE_TOPLINKIMPL.jar:/opt/compdev/comp/lib/rules_common-1.0.112_RULES_COMMON.jar:/opt/compdev/comp/lib/uimodel-1.0.142_UI_MODEL.jar:/opt/compdev/comp/lib/engine_model-1.0.113_ENGINE_MODEL.jar:/opt/compdev/comp/lib/engine_common-1.0.229_ENGINE_COMMON.jar:/opt/compdev/comp/vendor/toplink-9.0.4.2/lib/toplink.jar:/opt/compdev/comp/vendor/oracle-xdk-9.2.0.6/lib/xdb.jar:/opt/compdev/comp/vendor/oracle-xdk-9.2.0.6/lib/xmlparserv2.jar:/opt/compdev/comp/vendor/oraclejdbc-10.1.0.2.0/ojdbc14.jar:/opt/compdev/comp/vendor/castor/0.9.6/castor-0.9.6.jar:/opt/compdev/comp/vendor/castor/0.9.6/castor-0.9.6-xml.jar:/opt/compdev/comp/vendor/jakarta-commons-logging/1.0.3/commons-logging.jar:/opt/compdev/comp/vendor/xerces/2.4.0/xercesImpl.jar:/opt/compdev/comp/vendor/log4j-v1.2.6/log4j-1.2.6.jar:/opt/compdev/comp/vendor/rv7.3/java/rvjpro.jar:/opt/compdev/comp/vendor/jt400-52/lib/jt400.jar:/opt/compdev/comp/vendor/gett-4.5.4/common_base-4.5.4.028_COMMON_BASE.jar:/opt/compdev/comp/vendor/gett-4.5.2/impl_rv6-4.5.2.002_IMPL_RV6.jar:/opt/compdev/comp/vendor/gett-4.5.2/impl_rv-4.5.2.010_IMPL_RV.jar:/opt/compdev/comp/vendor/gett-4.5.2/common_facility-4.5.2.009_COMMON_FACILITY.jar:/opt/compdev/comp/vendor/gett-4.5.4/framework_genericapp-4.5.4.036_FRAMEWORK_GENERICAPP.jar:/opt/compdev/comp/vendor/gett-4.5.4/framework_genericsvc2-4.5.4.028_FRAMEWORK_GENERICSVC2.jar:/opt/compdev/comp/vendor/gett-4.5.4/common_dataaccess-4.5.4.029_COMMON_DATAACCESS.jar:/opt/compdev/comp/vendor/gett-4.5.4/framework_feed-4.5.4.056_FW_FEED.jar:/opt/compdev/comp/vendor/gett-4.5.4/impl_toplink-4.5.4.026_IMPL_TOPLINK.jar:/opt/compdev/comp/vendor/TibMsg-3v1.0.1/packages/Tib.jar:/opt/compdev/comp/vendor/concurrent/concurrent.jar:/o[COLOR=Red]pt/compdev/comp/vendor/fmrco-arch-1.0.1/arch_facility.jar com.fmrco.gett.genericsvc2.GenericSvc -ENV COMPDEV -ORIGIN BOS -LOGLEVEL INFO -RVPSERVICE ENGDAMGR -CONFIGFROMRV -CFGCATEGORIES GENERICSVC:TOPLINK:ENGDAMGR -SVCHANDLER com.fmrco.gett.genericsvc2.rmi.RMIHandlerImpl -SVCBEAN.ENGDAMGR com.fmrco.compliance.engine.damgrsvc.IDAMgrSvc -SVCBEAN.CLASS com.fmrco.compliance.engine.damgrsvc.DAMgrSvcImpl


Last edited by moe2266; 10-25-2005 at 01:31 PM..
# 2  
Old 10-28-2005
Use ps with parameter w, where w is the option to view new lines .
Exemple:
ps wwwwww PID


Regards,

Cleber Mariano
Technical Support Analyst

Last edited by cmariano; 10-31-2005 at 03:01 PM..
# 3  
Old 11-01-2005
Quote:
Originally Posted by cmariano
Use ps with parameter w, where w is the option to view new lines .
Exemple:
ps wwwwww PID
I have the same problem The "ww" parm does give me more output, but it still doesn't give me the "complete" output. I have a process that has a very very long list of parameters.

I am new to AIX. In Solaris I was able to use /usr/ucb/ps -auxvvww to get the "complete" output.

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Space truncation

HI All- We have script like the followinga='h1 ' b='12434 ' c=' fagkasdbkZ<M' output=$a$b$c echo $output > /home/dsomasun/fil_concat.txtBut in the output file spaces are truncated and Output is coming like the belowh1 1234 fagkasdbkZ<M please advise Please wrap all code,... (4 Replies)
Discussion started by: dhilipans1988
4 Replies

2. UNIX for Advanced & Expert Users

Truncation Occurs When Outputting Shell Script to stderr

Operating System: Solaris 10, Shell We are outputting the results of our scripts to the stderr file. However we have encountered a problem where some of the lines in the file are truncated. Is there a way to increase the terminal or column size within the script so that this does not... (4 Replies)
Discussion started by: fazzasx
4 Replies

3. Shell Programming and Scripting

Different output in AIX and Linux OS

Hi All , Please help me in understanding why i am getting error for the below script in LINUX, but the same script will work perfectly in AIX unix. Script Name:try.ksh #!/bin/ksh echo "$0 \n" MYPWD=$(pwd $(dirname $0)) echo " $MYPWD \n" O/P in LINUX OS: ./try.ksh ./try.ksh:... (2 Replies)
Discussion started by: sudhir_barker
2 Replies

4. Filesystems, Disks and Memory

SCO 5.6 + file truncation

Sir, my apologies for I had put this question in a different forum earlier. I am running an appliction in SCO 5.6. If the records are more than one lakh, the output file is getting truncated to one lakh. Please help me in rectifying the issue whereby it allows creation of output with more than... (0 Replies)
Discussion started by: chssastry
0 Replies

5. Post Here to Contact Site Administrators and Moderators

SCO 5.6 File truncation

Sir, my apologies for not being able to correspond for a long time. I am running an appliction in SCO 5.6. If the records are more than one lakh, the output file is getting truncated to one lakh. Please help me in rectifying the issue whereby it allows creation of output with more than one lakh... (0 Replies)
Discussion started by: chssastry
0 Replies

6. UNIX for Advanced & Expert Users

Syslog Truncation / Size Limit?

I searched and could not find an answer to this, and am having difficulty, so I would appreciate any assistance that can be offered. We're experiencing logs that are having all characters after the 850th one written being truncated. I am wondering if there is a default limit to the syslog... (1 Reply)
Discussion started by: Puck
1 Replies

7. UNIX for Advanced & Expert Users

STDOUT truncation

Operating system - Solaris 8, Korn shell, xterm Command /usr/proc/bin/ptree outputs the process tree exactly as I want with all detail However, /usr/proc/bin/ptree | more truncates the process descriptions at an 80 character point. If the process tree has marched enough to the right,... (3 Replies)
Discussion started by: JerryHone
3 Replies

8. UNIX for Advanced & Expert Users

What is the cause of file truncation?

Hi, I have a program that gets called from the front end of my application. Actually it creates some temporary files and uses them and deletes them at last. But sometimes, say once in 6 times, some of these temporary files are getting truncated in the middle and because of this my program is... (9 Replies)
Discussion started by: venkatmyname
9 Replies

9. UNIX for Advanced & Expert Users

truncation when vi a file

Hi, I'm using the vi that comes with Solaris 2.8. When vi a file with lines that have long continuous characters e.g. more than 256 chars, these lines got truncated. This is a known limitation of the out of the box Solaris vi, and there is a suggestion to get another vi. Is there an... (0 Replies)
Discussion started by: selur-xinu
0 Replies

10. Solaris

solaris 2.5.1 /usr/ucb/ps truncation problems

we aheva couple of old sun OS boxes, that we are trying to parse /usr/ucb/ps output. However it seems that something is occuring that is causeing th output of "/usr/ucb/ps -auxwww" to cut short the process name, whereas "ps -eaf" can display the entire process name. It will work for a while... (2 Replies)
Discussion started by: adralph
2 Replies
Login or Register to Ask a Question