System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

SMH takes an hour to load accounts

SOLVED
Go to solution
Mandosa
Regular Advisor

SMH takes an hour to load accounts

When I use SMH (text interface, and select 'Accounts for Users and Groups', and then 'Local Users', it takes about an hour for the screen of users to come up. There is less than 300 accounts on this system. Using HP-UX B11.31
any ideas?
11 REPLIES
Steven E. Protter
Exalted Contributor

Re: SMH takes an hour to load accounts

Shalom,

I would suspect this is a bug.

You may want to do a general QPK patch to bring the system up to spec or do a patch search for smh on http://itrc.hp.com to find patches that deal with this specific issue.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: SMH takes an hour to load accounts

Any particular changes you plan to make? You could just use vipw(1m) to edit /etc/passwd.
Mandosa
Regular Advisor

Re: SMH takes an hour to load accounts

the patch link sent me into a quagmire of more links... Our system here requires a bunch of accounts created/deleted every week. The adduser/deluser commands aren't quite granular enough. Is there any way to force the old SAM app?
James R. Ferguson
Acclaimed Contributor

Re: SMH takes an hour to load accounts

Hi:

> The adduser/deluser commands aren't quite granular enough.

What do you believe is missing? Please provide an example of what you want to construct and the input you would use to do so.

Regards!

...JRF...
Mandosa
Regular Advisor

Re: SMH takes an hour to load accounts

usernames, departments, etc. Its an operator that will be doing the account management, so giving them something interactive is ideal.
Mandosa
Regular Advisor

Re: SMH takes an hour to load accounts

i've narrowed down the problem to be with the file /usr/sam/tui/ug/apps/usr/listUsers. This is the file that appears in Top to be taking 100% CPU while smh is sitting there waiting to list the accounts. I ran this directly from the command line on one of our hp-ux 11.31 systems and it listed all the accounts instantly. When i tried from my problem system, there is a 5-10 second delay between each account listed.

James R. Ferguson
Acclaimed Contributor

Re: SMH takes an hour to load accounts

Hi (again) Mandosa:

I would open a case with the Response Center.

Regards!

...JRF...
Duncan Edmonstone
Honored Contributor
Solution

Re: SMH takes an hour to load accounts

There were some issues with earlier versions of ugweb around "listing user performance", especially if you have a big /var/adm/wtmp file...

what's the output of:

swlist -l product UsersAndGroups

I think you need to be on at least B.11.31.0809.01 to have the fix... latest version available here:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=UserGroups

HTH

Duncan

HTH

Duncan
Mandosa
Regular Advisor

Re: SMH takes an hour to load accounts

The output of swlist -l product UsersAndGroups is UsersAndGroups B.11.31.0709 HP-UX Accounts Management Tool
Mandosa
Regular Advisor

Re: SMH takes an hour to load accounts

and the size of my wtmp files is:
-rw-rw-r-- 1 adm adm 86940 May 5 09:57 wtmp
-rw-rw-r-- 1 adm adm 192253284 Sep 22 12:37 wtmps
Mandosa
Regular Advisor

Re: SMH takes an hour to load accounts

i cleared out the wtmps file and all is well! I should look into log rotating to keep this going in the future.