Oh..cool Thanks Dan
but can you please tell what does kstat depend upon for this information ?
 
Thanks,
Nikhil

 
On 10/19/05, Dan Price <[EMAIL PROTECTED]> wrote:
On Tue 18 Oct 2005 at 10:25PM, Dan Price wrote:
> On Wed 19 Oct 2005 at 10:17AM, mnikhil m wrote:
> > Hi
> >
> > Can someone please tell me what could be the source of information to know the
> > machine's bootime for uptime command other than to know it from utmpx/wtmpx
> > files.
> > something from init ?? but how
>
> There is a kstat.
>
> $ kstat -p unix:::boot_time
> unix:0:system_misc:boot_time    1127335615
>
> This is a time_t.

And I should mention that Sun::Solaris::Kstat provides access to kstats
from perl.  /usr/bin/kstat is a perl program.

       -dp

--
Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to