1752805 Members
5676 Online
108789 Solutions
New Discussion юеВ

Re: Arg list too long!!

 
SOLVED
Go to solution
ricky_1
Frequent Advisor

Arg list too long!!

Hi all,

Can some body suggest a patch for the error(arg list too long) i get for most of the commands due to high number of arguments.

Though i know that "xargs" can be used to avoid it.But is there any patch which might fix it?......

By the way iam running into problems with HPUX 10.20 model k580 server.
Any suggesstion will be highly appreciated.

thanx.
Believe in Yourself!!
2 REPLIES 2
Manju Kampli
Trusted Contributor
Solution

Re: Arg list too long!!

The 'arg list too long' error occurs when you exceed the maximum
length of arguments that can be passed to a command.

The default is 20478 bytes, but you can increase this value to 2048000
by setting the kernel parameter 'large_ncargs_enabled = 1' (default is 0).

You can execute 'getconf ARG_MAX' to find out if 'large_ncargs_enabled'
is set to 1 or 0. For example:

$ getconf ARG_MAX
20478

If you receive 20478 when you execute the command, recompile the kernel
with 'large_ncargs_enabled = 1' to resolve the error.

Note that for HP-UX 11.0 systems, the limit is set to the larger value
by default, and the large_ncargs_enabled kernel tunable is not needed.

Note that patch:

[PHKL_16410/PACHRDME/English]
s800 10.20 LVM/UFS/NDDB/flkmgr/VxFS,DMAPI/PCI/SCSI/MO/dump

enables this kernel parameter, so you may need to install it if you
do not already have it or a superseding patch installed already.
Never stop "LEARNING"
Sanjay_6
Honored Contributor

Re: Arg list too long!!

Hi Ricky,

Have a look at the thread below.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=960181b519bde7c302/screen=ckiDisplayDocument?docId=200000047972053

Here is the details.

PROBLEM
I am getting errors like:

Arg list too long

when I issue certain commands, such as 'find'. What is causing the
error and how can I make it go away?

CONFIGURATION
Operating System - HP-UX
Version - 10.20

RESOLUTION
The 'arg list too long' error occurs when you exceed the maximum
length of arguments that can be passed to a command.

The default is 20478 bytes, but you can increase this value to 2048000
by setting the kernel parameter 'large_ncargs_enabled = 1' (default is 0).

You can execute 'getconf ARG_MAX' to find out if 'large_ncargs_enabled'
is set to 1 or 0. For example:

$ getconf ARG_MAX
20478

If you receive 20478 when you execute the command, recompile the kernel
with 'large_ncargs_enabled = 1' to resolve the error.

Note that for HP-UX 11.0 systems, the limit is set to the larger value
by default, and the large_ncargs_enabled kernel tunable is not needed.

Note that patch:

PHKL_16410
s800 10.20 LVM/UFS/NDDB/flkmgr/VxFS,DMAPI/PCI/SCSI/MO/dump

enables this kernel parameter, so you may need to install it if you
do not already have it or a superseding patch installed already.

Note: This patch, as with any patch, may be superseded. Please
check for the latest patch at the Electronic Support Center
(ESC) by using either of these web sites:

http://us-support.external.hp.com

http://europe-support.external.hp.com


hope this helps.

thanks