I got the following error message when running the "last" command at
my Solaris 10 server :
# last
/var/adm/wtmpx: Value too large for defined data type
Looks like my "wtmpx" file has reached its size limit :
# ls -lt wtmpx
-rw-r--r-- 1 adm adm 2150910511 May 12 19:15 wtmpx
Can one reduce the size of wtmpx ? If yes, how ? I would like to at
least get some information out of the wtmpx file before I zero it out
and find ways to prevent it from reaching this big in future.
Thanks,
Bill
|
|
0
|
|
|
|
Reply
|
underh20
|
5/12/2008 11:32:05 PM |
|
In <8ea955d6-3ba9-48b9-b05e-697b670f0853@v26g2000prm.googlegroups.com> underh20.scubadiving@gmail.com writes:
>I got the following error message when running the "last" command at
>my Solaris 10 server :
> # last
> /var/adm/wtmpx: Value too large for defined data type
>Looks like my "wtmpx" file has reached its size limit :
> # ls -lt wtmpx
> -rw-r--r-- 1 adm adm 2150910511 May 12 19:15 wtmpx
>Can one reduce the size of wtmpx ? If yes, how ? I would like to at
>least get some information out of the wtmpx file before I zero it out
>and find ways to prevent it from reaching this big in future.
Yes, you can do that in a number of ways. `dd' works, but you have to
know that the record size in that file is 372. You have to copy
multiples of that record size. Something like this will extract the
second record, for example:
$ dd bs=372 count=1 skip=1 if=wtmpx | od -c
In your case, there's 2150910511/372 = 5782017 records. With the
proper options to `dd', you can copy parts of the file. It's much
quicker if you multiply the blocksize by some moderate number and
divide the others by the same number.
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
|
|
0
|
|
|
|
Reply
|
Gary
|
5/13/2008 2:01:53 AM
|
|
On May 13, 1:32=A0am, underh20.scubadiv...@gmail.com wrote:
> I got the following error message when running the "last" command at
> my Solaris 10 server :
>
> =A0 =A0# last
> =A0 =A0/var/adm/wtmpx: Value too large for defined data type
>
>
> Can one reduce the size of wtmpx ? If yes, how ? =A0I would like to at
> least get some information out of the wtmpx file before I zero it out
> and find ways to prevent it from reaching this big in future.
>
Hi Bill
You can use /usr/lib/acct/fwtmp for this. See fwtmp(1M).
To e.g. create a new wtmpx containing only the last 1000 records of
your old one, do:
/usr/lib/acct/fwtmp < wtmpx | tail -1000 \
| /usr/lib/acct/fwtmp -ic > /tmp/wmtpx.new
Hope that helps,
Christian
--
rc at networkz dot ch
|
|
0
|
|
|
|
Reply
|
rc
|
5/13/2008 1:22:20 PM
|
|
underh20.scubadiving@gmail.com schrieb:
> I got the following error message when running the "last" command at
> my Solaris 10 server :
>
> # last
> /var/adm/wtmpx: Value too large for defined data type
>
> Looks like my "wtmpx" file has reached its size limit :
>
> # ls -lt wtmpx
> -rw-r--r-- 1 adm adm 2150910511 May 12 19:15 wtmpx
>
>
> Can one reduce the size of wtmpx ? If yes, how ? I would like to at
> least get some information out of the wtmpx file before I zero it out
> and find ways to prevent it from reaching this big in future.
>
> Thanks,
>
> Bill
is it really as big as ls -lt says? what show ls -s?
wtmpx is a "file with wholes" and the "size" depends on the highest uid.
do you have 32bit Solaris (isainfo)?
|
|
0
|
|
|
|
Reply
|
Wolfgang
|
5/15/2008 7:32:06 PM
|
|
In article <482c8fb7$0$6517$9b4e6d93@newsspool4.arcor-online.net>,
Wolfgang <wtrappe@AT.web.de> writes:
> underh20.scubadiving@gmail.com schrieb:
>> I got the following error message when running the "last" command at
>> my Solaris 10 server :
>>
>> # last
>> /var/adm/wtmpx: Value too large for defined data type
>>
>> Looks like my "wtmpx" file has reached its size limit :
>>
>> # ls -lt wtmpx
>> -rw-r--r-- 1 adm adm 2150910511 May 12 19:15 wtmpx
>>
>>
>> Can one reduce the size of wtmpx ? If yes, how ? I would like to at
>> least get some information out of the wtmpx file before I zero it out
>> and find ways to prevent it from reaching this big in future.
>
> is it really as big as ls -lt says? what show ls -s?
> wtmpx is a "file with wholes" and the "size" depends on the highest uid.
> do you have 32bit Solaris (isainfo)?
That's /var/adm/lastlog you're describing.
wtmpx(4) just grows forever.
last(1) seems not to be LARGEFILE aware in nm(1) output,
and isn't listed as LARGEFILE aware in largefile(5).
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
|
|
0
|
|
|
|
Reply
|
andrew
|
5/16/2008 6:12:31 PM
|
|
underh20.scubadiving@gmail.com wrote:
> Can one reduce the size of wtmpx ? If yes, how ? I would like to at
> least get some information out of the wtmpx file before I zero it out
> and find ways to prevent it from reaching this big in future.
If you enable accounting it will manage the file as a side effect.
--
Gods I don't believe in: http://anya.sighup.org.uk/gods.html
|
|
0
|
|
|
|
Reply
|
Geoff
|
5/16/2008 8:55:56 PM
|
|
Andrew Gabriel schrieb:
> In article <482c8fb7$0$6517$9b4e6d93@newsspool4.arcor-online.net>,
> Wolfgang <wtrappe@AT.web.de> writes:
>> underh20.scubadiving@gmail.com schrieb:
>>> I got the following error message when running the "last" command at
>>> my Solaris 10 server :
>>>
>>> # last
>>> /var/adm/wtmpx: Value too large for defined data type
>>>
>>> Looks like my "wtmpx" file has reached its size limit :
>>>
>>> # ls -lt wtmpx
>>> -rw-r--r-- 1 adm adm 2150910511 May 12 19:15 wtmpx
>>>
>>>
>>> Can one reduce the size of wtmpx ? If yes, how ? I would like to at
>>> least get some information out of the wtmpx file before I zero it out
>>> and find ways to prevent it from reaching this big in future.
>> is it really as big as ls -lt says? what show ls -s?
>> wtmpx is a "file with wholes" and the "size" depends on the highest uid.
>> do you have 32bit Solaris (isainfo)?
>
> That's /var/adm/lastlog you're describing.
> wtmpx(4) just grows forever.
>
> last(1) seems not to be LARGEFILE aware in nm(1) output,
> and isn't listed as LARGEFILE aware in largefile(5).
>
you are right, sorry, its lastlog. But I irritated by the "Looks like my
"wtmpx" file has reached its size limit", which has to be "the file has
reached the size limit of last(1)".
|
|
0
|
|
|
|
Reply
|
Wolfgang
|
5/19/2008 6:49:09 PM
|
|
|
6 Replies
1506 Views
(page loaded in 0.1 seconds)
Similiar Articles: LAST command fails due to huge wtmpx in Solaris 10 - comp.unix ...underh20.scubadiving@gmail.com wrote: > Can one reduce the size of wtmpx ? If yes, how ? I would like to at > least get some information out of the wtmpx file before ... Value too large for defined data type... - comp.unix.solaris ...None of the files were modified last weekend ... zcat somearchive.Z | diff somefile - How big ... I tried this on another server having solaris 10 and the command runs ... comp.unix.solaris - page 262huge kernel load 0 149 (12/5/2003 12:21:08 AM) Greeting ... uucp broken on Solaris 9? 1 10 (12/4/2003 1:16:31 AM) Hi, I'm ... 23), this night the rack with the 4500 faulted due ... OpenSSH and .rhosts usage - comp.unix.solarisHi all, Using OpenSSH 4.0p1 for Solaris 8 I used RSH to run remote command ... confirm rwindow 0 rmax 32768 Last login: Mon Jun 13 10:50 ... own, so that you understand "the big ... getting cpan configured - comp.unix.shellI could swear I installed that last night. [big snip ... will not store > persistent state > Failed during this command ... configure Serial port - comp.unix.solaris How ... New version of the Tcl/Tk GUI builder PureTkGUI : v0.10.0 - comp ...Last, a brand new full featured website is now ... Visual Tcl but it is out of date (mainly due to ... WARNING: ata_controller - Set features failed - comp.unix.solaris ... [OT] Netfinity help ! - comp.sys.ibm.ps2.hardwareI agree on a failed upgrade or erasure ... both show the ... circuit that drains the battery in a short time due ... hardware keyboard and mouse not working during Solaris 10 ... unable to mirror variable fillet - comp.cad.solidworks... combine feature, which fails if the pattern changes. Throwing away tools due to ... uname command - comp.unix.solaris ( maybe there is an ... Solaris 10 on x86: Problems booting ... Something bad happened to my gfortran installation - comp.lang ...write(*,'(/a)') 'This test incorrectly fails ... write(*,*) x end do x = huge(x) write(*,*) x do i = 1, 10 ... to run it, for ... to use the int64 command in ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... LAST command fails due to huge wtmpx in Solaris 10underh20.scubadiving@gmail.com wrote: > Can one reduce the size of wtmpx ? If yes, how ? I would like to at > least get some information out of the wtmpx file before ... Re: LAST command fails due to huge wtmpx in Solaris 10Relevant Pages. Re: Solaris 10 sshd and wtmpx... difference to our Solaris 9 hosts ... in the wtmpx it seems to log all ssh session twice ... ptree shows that sshd ... 7/20/2012 7:10:55 PM
|