From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5fe7d5c43b3019e1 X-Google-Attributes: gidfee84,public From: Detlef Schmier Subject: Re: [Q]How to obtain the last startup message Date: 1998/05/13 Message-ID: <355965EE.A38560C0@rto.dec.com>#1/1 X-Deja-AN: 352866587 Content-Transfer-Encoding: 7bit References: <6hqhnc$1hj$1@highlander.immortels.frmug.org> Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment GmbH Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Marc Carmier wrote: > I want to make a script that look the hardware of an alphastation at the > last startup, but I never find an option for uerf to tell him : > > uerf -R -r 300 -**************Number************* 1 > > and it give me only the last entry. > /usr/sbin/uerf -R -r 300 | /usr/bin/sed '/*** ENTRY 2. ***/,$d' > The other question, is : > > How the uerf binary log is cleaned ? Will it grow forever ? > > kill `/sbin/init.d/bin/getpid /usr/sbin/binlogd -uroot` echo > /usr/adm/binary.errlog /usr/sbin/binlogd Hth Detlef. -- +-----------------------------------+-----------------------------+ | Detlef Schmier @RTO | Digital Equipment GmbH | | SBU, OEM/GY | Freischuetzstrasse 91 | | Field Application Engineer | D-81927 Muenchen | | Pub.Tel. +49-(0)89-9591 2752 | DTN 865-2752 | | Mobile +49-(0)171-3357582 | | | Fax # +49-(0)89-9591 1278 | DTN 865-1278 | +-----------------------------------+-----------------------------+ | URL : http://www.digital.com/oem | eMail : detlef@rto.dec.com | +-----------------------------------------------------------------+