GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command line/arg buffer length
Operating System - HP-UX
1843997
Members
2282
Online
110226
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-01-2006 08:32 AM
02-01-2006 08:32 AM
Does anyone know if there is a way to increase the buffer space length for command lines?
Our Corp Security wants us to write a script that will verify what WebSphere servers/apps are running. It so happens that IBM in their infinate wisdom puts out a $#%& command line that is up to 2000 characters long, and the info needed is at the end. Per the man page for ps;
Only a subset of the command line is saved by the kernel; as much of the command line will be displayed as is available.
I have tried the -x and -efox (UNIX95=) but they only seem to return around 1024 characters.
So I guess what I'm asking is, what kernel parm in the .h files (and what file) can be changed to allow this? It appears that SUN and AIX either do not limit this or their limit is longer then HP's.
I can see Corp Security telling us we can not us HP boxes for our WEB/WebSphere servers any longer if this can not be resolved.
Thanks in advance for your time.
Our Corp Security wants us to write a script that will verify what WebSphere servers/apps are running. It so happens that IBM in their infinate wisdom puts out a $#%& command line that is up to 2000 characters long, and the info needed is at the end. Per the man page for ps;
Only a subset of the command line is saved by the kernel; as much of the command line will be displayed as is available.
I have tried the -x and -efox (UNIX95=) but they only seem to return around 1024 characters.
So I guess what I'm asking is, what kernel parm in the .h files (and what file) can be changed to allow this? It appears that SUN and AIX either do not limit this or their limit is longer then HP's.
I can see Corp Security telling us we can not us HP boxes for our WEB/WebSphere servers any longer if this can not be resolved.
Thanks in advance for your time.
If it ain't broke, let me have a look at it.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 08:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 09:05 AM
02-01-2006 09:05 AM
Re: command line/arg buffer length
You are up against a hard kernel limit (that seems very reasonable to me). All of the SOX standards that I have worked with typically have a clause like "2000 characters or the maximum permitted by the technology". In any event, the only workaround that comes to mind is a wrapper that saves ${$} (PID) plus the entire command line to a file and then execs the "real" command. Your ps -e command now is parsed and the PID is extracted. You then read this file for the full command line matching the PID. There would have to be a cleanup routine to purge expired entries.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 09:27 AM
02-01-2006 09:27 AM
Re: command line/arg buffer length
Thanks for the replies.
I was afraid that might be the answer.
Yes Clay, thats the "last resort" idea we came up with also.
I guess I need to find a new place of work that still uses HP, because I hate SUN and AIX!!!
I was afraid that might be the answer.
Yes Clay, thats the "last resort" idea we came up with also.
I guess I need to find a new place of work that still uses HP, because I hate SUN and AIX!!!
If it ain't broke, let me have a look at it.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP