- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: 'last' command produces way too much whitespac...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
02-25-2011 02:43 PM
02-25-2011 02:43 PM
'last' command produces way too much whitespace on output
On some systems, they see normal 'last' output like this:
root console Mon Feb 18 17:52 - 12:20 (37+18:28)
On other systems, their 'last' output has a huge amount of whitespace, like this:
root console Wed Oct 20 20:42 - 20:53 (00:10)
What the heck is going on? How do we fix 'last' to not do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-25-2011 05:19 PM
02-25-2011 05:19 PM
Re: 'last' command produces way too much whitespace on output
Would the system showing this be HPUX 11-V3?
Is it only 'last' showing issues, or other tools as well?
This is a WAG (Wild A$$ Guess):
Maybe Long Usernames are enabled?
Check: man lugadmin
Or the whitepaper:
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01925719/c01925719.pdf?jumpid=reg_R1002_USEN
( used to be http://docs.hp.com/en/5992-4118/longusername_white_paper_updated.pdf )
hth,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-26-2011 02:34 AM
02-26-2011 02:34 AM
Re: 'last' command produces way too much whitespace on output
I did a little "looking into" your problem and with the hint of the olmpians WAG {which was a spot on}, came with this finding....
I assume the command lugadmin -l shows 256 which means long usernames are enabled. Now, when this command - #lugadmin -e is executed the "user display width" is configured in a file called as /etc/default/lugname which takes the default "user display width".
On execution of lugadmin -e alone this excessive white space problem does not happen as the attribute UG_DISPLAY_WIDTH defaults to 0 in /etc/default/lugname. However, let's say you execute lugadmin -e -d 30. You will see a huge distance between spaces for fields in the "last" command as UG_DISPLAY_WIDTH is now 30 {the user display width}. Hence, if you don't want to see this huge whitespace or if you don't want to see {remember i said 'see' not disable as this is not possible!} the complete "long" usernames you could execute lugadmin -d 0 which will give you the normal "white space disance" seen on the other servers and following any username having 8 characters or more should be succeeded by a + sign.
The answer in a nutshell would be "the user DISPLAY width" that has been configured with your long usernames.
Welcome to ITRC! Don't forget to assign points!!!.
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-26-2011 02:38 AM
02-26-2011 02:38 AM
Re: 'last' command produces way too much whitespace on output
I assume you aren't using -x for long names?
Otherwise Hein is correct about lugadmin(1M).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-26-2011 03:00 AM
02-26-2011 03:00 AM
Re: 'last' command produces way too much whitespace on output
1. Stop the pwgrd daemon.
# /sbin/init.d/pwgr stop
2. Run the lugadmin command with the -e option.
# lugadmin -e [-d num]
3. The command requests confirmation before enabling the
system.
Long user/group name once enabled cannot be disabled in future.
Do you want to continue [yY]:
If you respond with y or Y, the command proceeds; otherwise,
it aborts.
4. The command creates the /etc/default/lugname file.
5. If the -d option is not specified, num defaults to 0. The
specified or default value of num is written in lugname.
eg: lugadmin -e -d 255
try -x flag with your lastb command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-27-2011 07:34 PM
02-27-2011 07:34 PM
Re: 'last' command produces way too much whitespace on output
Hopefully they will get back to us so we can credit the right response.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP