sysinfo [ -u | -l | -r | -s | -n ]
If called with the -a option, all overall statistics information is provided in a plain human readable format.
However, the main purpose of the sysinfo command is to print out dedicated information with the options -u, -l, -r, -s or -n. The output of those options is formatted in a fashion that it is possible to compute it easily with other commands.
Especially the output of the uptime(1) command provided by the operating system is often very hard to use for further data processing, due to the fact that the output changes completely depending on the point in time when called. Therefore the output of sysinfo -u is much easier to process.
The format of all outputs ( except -a ) is:
<date>;<seconds since Epoch>{;<value>}
Example ( sysinfo -u ):
2006-09-30 00:04:50;1159567490;349541
[ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: uname -a Linux rh7mzv7t001 2.4.7-10 #1 Thu Sep 9 00:25:31 EDT 2006 i686 unknown
[ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: sysinfo -a Date: 2006-09-30 Time: 00:25:31 Seconds since Epoch: 1159568731 Uptime: 4days, 1hours, 26minutes, 22seconds Load Avgs: 1min(22240) 5min(6816) 15min(1952) Total Ram: 513304k Free: 76808k Shared Ram: 0k Buffered Ram: 104016k Total Swap: 409616k Free: 409616k Number of processes: 78
[ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: sysinfo -u 2006-09-30 00:25:31;1159568731;350782 [ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: uptime 12:25am up 4 days, 1:26, 2 users, load average: 0.34, 0.10, 0.03
[ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: sysinfo -l 2006-09-30 00:25:31;1159568731;22240;6816;1952
[ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: sysinfo -r 2006-09-30 00:25:31;1159568731;525623296;78651392;0;106512384
[ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: sysinfo -s 2006-09-30 00:25:31;1159568731;419446784;419446784
[ /opt/edrc/bin ] [ root@rh7mzv7t001 ][*edrc*/bash]: sysinfo -n 2006-09-30 00:25:31;1159568731;78
Not all options or functions are implemented on all operating systems. The table below lists the options currently implemented for a certain operating system:
_________________________________________________ | OSID | -u | -l | -r | -s | -n | |--------------|------|------|------|------|------| | Linux | YES | YES | YES | YES | YES | | HP-10 | YES | NO | NO | NO | NO | | HP-11 | YES | NO | NO | NO | NO | | HP-11i | YES | NO | NO | NO | NO | | Solaris | YES | NO | NO | NO | NO | |______________|______|______|______|______|______|
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.