Subject: | Support Solaris |
Looks like we just need to parse the output of `kstat`:
module: unix
instance: 0
name: system_misc
class: misc
boot_time, avenrun_1min, avenrun_5min, avenrun_15min
sample command:
`kstat -p unix:0:system_misc:boot_time`
yields:
"unix:0:system_misc:boot_time\t1292560376"
Other stuff to look at, code-wise:
http://www.brendangregg.com/K9Toolkit/uptime
Sun::Solaris::Kstat (included on solaris, not on CPAN)