The script "utmp_clean.awk", mentioned above, really works (I've used it a few times), but you have to change the line
utmp_name=sprintf("%s %s",$1,$2)
to
utmp_name=sprintf("%s %s",$1,$3)
I found 2 versions of that script on IBM Web-site with these 2 lines being different in...