- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX slow login (wtmps)
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
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
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
03-28-2012 09:29 AM
- Tags:
- wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2012 01:24 AM
03-29-2012 01:24 AM
Re: HPUX slow login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2012 02:00 AM
03-29-2012 02:00 AM
Re: HPUX slow login
How to assign points? Click the KUDOS! star! .....
Sachin Rajput
================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2012 11:48 PM
03-31-2012 11:48 PM
Re: HPUX slow login
Sorry, i'm a bit new to this system...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 03:09 PM
06-20-2012 03:09 PM
Re: HPUX slow login
Sachin - I found that I needed to delete wtmps and btmps, as they were the HUGE files. Now the bigger question... How the heck do I keep these files from getting that large in the first place? Do you know if there is a configuration somewhere that can prevent them growing out of control?
Might be a stupid question, but I am VERY new to HP-UX !
Thanks much!@Sachin Rajput wrote:
I think you asked same in another thread too .
check the size of /var/adm/wtmp and btmp .
big size of these files sometimes makes ssh slow .
Sachin Rajput
===============
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 03:58 PM
06-20-2012 03:58 PM
Re: HP-UX slow login (wtmps)
>How the heck do I keep these files from getting that large in the first place? Do you know if there is a configuration somewhere that can prevent them growing out of control?
These files grow based on logins. I doubt you want to restrict those. ;-)
You need to archive these files elsewhere and reset the EOF when they grow big.
I.e. you need to create a crontab script to do this. Or tell you to do it manually.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 04:30 PM
06-20-2012 04:30 PM
Re: HP-UX slow login (wtmps)
@Dennis Handly wrote:>How the heck do I keep these files from getting that large in the first place? Do you know if there is a configuration somewhere that can prevent them growing out of control?
These files grow based on logins. I doubt you want to restrict those. ;-)
You need to archive these files elsewhere and reset the EOF when they grow big.
I.e. you need to create a crontab script to do this. Or tell you to do it manually.
Actually, I could care less. This is a test system in my Lab. If I can simplify the management of this thing, so much the better. Having to learn HP-UX on the fly has been interesting to say the least. If you have any suggestions how to stop/limit the size, awesome! The interesting thing as mentioned previously was that it was files with an "s" on the end that were large. Not the primary files. How did they get an "s"? I suppose if this happens automatically (once weekly, etc...), I could probably learn how to create a CRON task on HP-UX.
Thanks!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 04:48 PM
06-20-2012 04:48 PM
Re: HP-UX slow login (wtmps)
>This is a test system in my Lab. If you have any suggestions how to stop/limit the size
You can only reset it. Or turn it off altogether.
>The interesting thing as mentioned previously was that it was files with an "s" on the end that were large. Not the primary files.
You have backwards. The *s files are the main ones. The vanilla ones are vestigial. And I don't think the *x ones are used much either.
>I suppose if this happens automatically (once weekly, etc...), I could probably learn how to create a CRON task on HP-UX.
It's pretty simple, in a file have:
00 00 01 * * path-to-script script parms
(Or add to an existing crontab.)
This says run the script path-to-script once a month on the first.
And in your script:
#!/usr/bin/sh
# Reset EOF of wtmps, see crontab entry
> /var/adm/wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 05:05 PM - edited 06-20-2012 05:23 PM
06-20-2012 05:05 PM - edited 06-20-2012 05:23 PM
Re: HP-UX slow login (wtmps)
@Dennis Handly wrote:
It's pretty simple, in a file have:
00 00 01 * * path-to-script script parms
(Or add to an existing crontab.)
This says run the script path-to-script once a month on the first.
And in your script:
#!/usr/bin/sh
# Reset EOF of wtmps, see crontab entry
> /var/adm/wtmps
Whoops!!! I deleted those files thinking they were archive. :-) If I want to completely disable, how does one do that? The other thing I'm worried about with CRON jobs is that I have multiple OS'es per system. In other words, I have a RISC and an IA-64 system with 11 v1, v2, and v3, on different drives for testing. A CRON job could cause problems when a not loaded version needs to run it.
Honestly, I think it'd be best to shut it off unless it will have an adverse effect on the server.
Thanks for the guidance/advice!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 10:06 PM
06-20-2012 10:06 PM
Re: HP-UX slow login (wtmps)
>If I want to completely disable, how does one do that?
See wtmps(4):
Note that wtmps and btmps tend to grow without bound, and should be checked regularly. ... if these files are
removed, login record-keeping is turned off.
(I wouldn't remove btmps(4), since it maintains a record of bad logins. And hopefully small.)
>The other thing I'm worried about with CRON jobs is that I have multiple OS'es per system. In other words, I have a RISC and an IA-64 system with 11 v1, v2, and v3, on different drives for testing.
crontab files go with the root disk so can't have multiple OS versions. But you will have to stop yourself from executing crontab on that file if you are on the wrong system. You of course can add a check in the script to ignore the resetting of the EOF if not on the "right" system.
>I think it'd be best to shut it off unless it will have an adverse effect on the server.
Of you don't need to worry about accounting, security or use last(1) for triage or forensic purposes, you don't need it.