- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 'last' command produces way too much whitespac...
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
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
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
тАО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
- 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
- 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
- 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
- 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
- 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.