- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what' wrong with my system!
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
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
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-2004 01:11 PM
тАО05-13-2004 01:11 PM
what' wrong with my system!
/etc/profile[83]: /usr/bin/stty: arg list too long
/etc/profile[92]: /usr/bin/cat: arg list too long
/etc/profile[105]: /usr/bin/mail: arg list too long
/etc/profile[113]: /usr/bin/news: arg list too long
$ ls
ksh: /usr/bin/ls: arg list too long
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 01:16 PM
тАО05-13-2004 01:16 PM
Re: what' wrong with my system!
I'd say you have a serious problem in your /etc/profile file.
It has to contain some serious junk.
I believe there's a "clean" profile file in /usr/newconfig/etc. Check it out & get it copied into place - IF you can get logged in.
Else you'll have to go into single-user mode.
Good Luck,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 01:30 PM
тАО05-13-2004 01:30 PM
Re: what' wrong with my system!
#su - nvlocal
is ok
but on node2
# su - nvlocal
/etc/profile[83]: /usr/bin/stty: arg list too long
/etc/profile[92]: /usr/bin/cat: arg list too long
/etc/profile[105]: /usr/bin/mail: arg list too long
/etc/profile[113]: /usr/bin/news: arg list too long
${HOME:-.}/.profile[11]: /usr/bin/tset: arg list too long
${HOME:-.}/.profile[13]: /usr/bin/stty: arg list too long
${HOME:-.}/.profile[14]: /usr/bin/stty: arg list too long
${HOME:-.}/.profile[15]: /usr/bin/tabs: arg list too long
so i no node1
#rcp -p /etc/profile node2:/etc/
but it doesn't work well
the problem doesn't be resolved!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 01:36 PM
тАО05-13-2004 01:36 PM
Re: what' wrong with my system!
You specified too many arguments for the command, or you may have
inserted an unwanted space character. Examine your command line and the
syntax for the command. Make necessary adjustments and try again. Go to individual lines and move the cursor to see where it ends.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 02:30 PM
тАО05-13-2004 02:30 PM
Re: what' wrong with my system!
You may have an escape sequence or some special characters in the profile. You can try to resolve this by using 'strings /etc/profile |more' to see any special characters or weird looking strings. It appears that your profile is pretty big ... at least 113 lines. That's pretty big, so I'm betting you have some funky characters or strings in there.
To work around this rather than try to trouble shoot, save this profile and restore it from a backup (you can restore just the /etc/profile from an Ignite backup if that's the only backup you have) or you can copy one from a similar system.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 03:04 PM
тАО05-13-2004 03:04 PM
Re: what' wrong with my system!
so on node1
#rcp -p /etc/profile node2:/etc/
but
#su - nvlocal
doesn't work well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 04:11 PM
тАО05-13-2004 04:11 PM
Re: what' wrong with my system!
Something to help you audit is ccmon:
http://h71028.www7.hp.com/enterprise/downloads/ccmon-service-brief.pdf
Talk to your HP Support Rep - it will cost you a couple of Technical Service days...
If you can't do that - then you need to check things by hand, look at patch levels, installed software, configuration files in /etc like services, inetd.conf, etc...kernel parameters, just to name a few....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 04:19 PM
тАО05-13-2004 04:19 PM
Re: what' wrong with my system!
There is the "ttytype" command before stty (in /etc/profile[113]).
So, maybe, there is some difference "TERM" between node1 and node2.
Please try the command "echo $TERM" and "ttytype -s -a"
no node1 and node2.
Check difference.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 06:05 PM
тАО05-13-2004 06:05 PM
Re: what' wrong with my system!
. /apps1/scripts/menu.inc # which is only there on the problem node. not on the other ... and that script is the one who creates this problems.
Also is there a file equivalent to /etc/environment in HPUX ?
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2004 07:03 PM
тАО05-13-2004 07:03 PM
Re: what' wrong with my system!
It will be good if you can post your /etc/profile file, your .profile and your /etc/environment file.
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 01:58 AM
тАО05-17-2004 01:58 AM
Re: what' wrong with my system!
The number is the line number of the script that the shell has issue with.
What is on lines 83,92,105 and 113. In particular look at 83 and be aware that the problem could be somewere in lines 1 - 82 as well.
If the profiles are identical, check the environment. Not haveing an environment variable on the other node could cause a cascading failure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 02:13 AM
тАО05-17-2004 02:13 AM
Re: what' wrong with my system!
su nvlocal -c "/usr/bin/ksh"
ls
What is specified for the shell in the /etc/passwd file - no corruptions there?
Is /usr/bin/ksh the same on both systems (size/cksum)
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 03:02 AM
тАО05-17-2004 03:02 AM
Re: what' wrong with my system!
You're focused on /etc/profile which is system wide, but the problem is with a particular user.
I would make a back up copy of this user's profile and then copy another users here and see what happens.
Another thought is that you could post .profile for the nvlocal's user and we could take a look at it.
usually when I have trouble with .profile's its because I left out a quote or something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 03:48 AM
тАО05-17-2004 03:48 AM
Re: what' wrong with my system!
The limit is 20478 characters on an unpatched 10.20 system and 2048000 characters on an 11.x system. You can check the limit with "getconf ARG_MAX". If you have 10.20 you can increase the limit by installing patch PHKL_16751 and setting the kernel parameter "large_ncargs_enabled=1".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 05:04 AM
тАО05-17-2004 05:04 AM
Re: what' wrong with my system!
send output for
grep nvlocal /etc/passwd
As long as shell is the last arg on the line, see if there are no trailing space or non-printable characters.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 01:15 PM
тАО05-18-2004 01:15 PM
Re: what' wrong with my system!
I created a user named hp with default settings
when i
#su - hp
the same phenomenon appeared
# su - hp
/etc/profile[83]: /usr/bin/stty: arg list too long
/etc/profile[92]: /usr/bin/cat: arg list too long
/etc/profile[105]: /usr/bin/mail: arg list too long
/etc/profile[113]: /usr/bin/news: arg list too long
${HOME:-.}/.profile[11]: /usr/bin/tset: arg list too long
${HOME:-.}/.profile[13]: /usr/bin/stty: arg list too long
${HOME:-.}/.profile[14]: /usr/bin/stty: arg list too long
${HOME:-.}/.profile[15]: /usr/bin/tabs: arg list too long
I think it seems have something wrong with the system itself
is there need patch it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 01:17 PM
тАО05-18-2004 01:17 PM
Re: what' wrong with my system!
I also found that if the shell was /usr/bin/sh ,su - nvlocal command ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 01:39 PM
тАО05-18-2004 01:39 PM
Re: what' wrong with my system!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 03:09 PM
тАО05-18-2004 03:09 PM
Re: what' wrong with my system!
-r-sr-xr-x 5 root bin 45056 Nov 14 2000 chsh
-r-xr-xr-x 1 bin bin 151552 Nov 14 2000 csh
-r-xr-xr-x 1 bin bin 152 Nov 14 2000 hash
-r-xr-xr-x 1 bin bin 245760 Nov 14 2000 keysh
-r-xr-xr-x 2 bin bin 151552 Nov 14 2000 ksh
-r-sr-xr-x 1 root bin 28672 Nov 14 2000 remsh
-r-xr-xr-x 2 bin bin 151552 Nov 14 2000 rksh
-r-xr-xr-x 2 bin bin 204800 Nov 14 2000 rsh
-r-xr-xr-x 2 bin bin 204800 Nov 14 2000 sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 03:49 PM
тАО05-18-2004 03:49 PM
Re: what' wrong with my system!
I assume this is your first experience on the ITRC forum as you did not award points to the forumers for the answers you were provided. May I suggest that you take a look at the following link to learn about the points system in use here. Thanks.
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Please read the article, assess the assistance you were provided by the forumers, then reward them. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2004 12:56 AM
тАО05-24-2004 12:56 AM
Re: what' wrong with my system!
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2004 01:10 AM
тАО05-24-2004 01:10 AM
Re: what' wrong with my system!
- problem only at node 2 - is the Home-directory nfs-mounted?
Can you do a ls -l in the home-dir?
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2004 01:53 AM
тАО05-24-2004 01:53 AM
Re: what' wrong with my system!
Arg list too long
You specified too many arguments for the command, or you may have
inserted an unwanted space character. Examine your command line and the
syntax for the command. Make necessary adjustments and try again.
May want to verify even if your profile looks correctly. There maybe an extra space in there some where.
The only other time I've seen this is where you have a slew of files in a directory and you try to do a command like rm *.txt and theres thousands of files. I'm assuming this persons home directory is pretty much empty except for the standard env files.
Dave