(file) Return to osinfo.1 CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm / manLinux / man1.Z

File: [Pegasus] / pegasus / rpm / manLinux / man1.Z / osinfo.1 (download)
Revision: 1.2, Thu Mar 13 17:25:16 2003 UTC (21 years, 3 months ago) by kumpf
Branch: MAIN
CVS Tags: test, pep_88, mday-merge-start, mday-merge-pegasus/src/Pegasus/Server, mday-merge-pegasus/src/Pegasus/Common, local, TEST, RELEASE_2_4_FC_CANDIDATE_1, RELEASE_2_3_2-testfreeze, RELEASE_2_3_2-root, RELEASE_2_3_2-releasesnapshot, RELEASE_2_3_2-branch-freeze, RELEASE_2_3_2-branch, RELEASE_2_3_1-root, RELEASE_2_3_1-branch, RELEASE_2_3_0-root, RELEASE_2_3_0-msg-freeze, RELEASE_2_3_0-branch, RELEASE_2_2_1-snapshot, RELEASE_2_2_0_0-release, RELEASE_2_2_0-root, RELEASE_2_2_0-branch, RELEASE_2_2-root, PRE_LICENSE_UPDATE_2003, POST_LICENSE_UPDATE_2003, PEGASUS_FC_VERSION_2_2, MONITOR_CONSOLIDATION_2_5_BRANCH, CQL_2_5_BRANCH
Changes since 1.1: +135 -0 lines
HP-WO Add PEP#33: Add Red Hat IA32 and IA64 RPM (packaging and distribution) files. Fix Bugzilla 215 and 216.

.\" $HEADER: $
.TA o \" lowercase initial leter of .TH name
.TH osinfo 1
.SH NAME
.PP
osinfo \- gather information regarding the running operating system
.SH SYNOPSIS
\fB osinfo\fP  [ \fB-c\fP ]
.SH DESCRIPTION
.PP
The 
.B osinfo 
command displays information regarding the operating system,
gathered via WBEM using the PG_OperatingSystem class supported by the
OperatingSystem Provider (bundled with HP WBEM Services).
.B osinfo
requires HP WBEM Services to be installed and running.
.PP
By default, the information is formatted for display, converting
CIMDateTime strings into a more user-readable format (see Examples),
and converting the total number of seconds of uptime into the 
appropriate number of days, hours, minutes, and seconds.
.PP
If a property value is unavailable, it will be shown as "Unknown"
.SS Options
.B osinfo
recognizes the following options:
.RS
.TP 15
.B -c
Use the CIM formats for DateTime and SystemUpTime values (not
the formatting done by default).
As specified by the DMTF, the CIMDateTime format is 
yyyymmddhhmmss.mmmmmmsutc, where yyyy is
a 4-digit year, mm is the month, dd is the day, hh is the hour on a 24-hour
clock, mm is the minute, ss is the second, mmmmmm is the number of
microseconds, s is a "+" or "-" indicating the sign of the UTC
(Universal Time Code) correction field (since the DateTime is returned in
the local time zone of the system), and utc is the offset from UTC in
minutes.
.RE
.SH EXIT STATUS
.PP
When an error occurs, an error message is written to stderr and an
appropriate value is returned.  The following values are returned:
.RS
.TP
.B 0 
Success
.PD 0
.TP
.B 1
Error
.PD
.RE
.SH DIAGNOSTICS
.PP
.B "os info error: Cannot connect"
.IP
The CIMOM is not running.  Start the CIMOM with the
.C cimserver
command and re-run
.B osinfo .
.SH EXAMPLES
.PP
Run the default 
.B osinfo 
command.
.TP
.PD 0
.C osinfo

.TP
.B "OperatingSystem Information"
.TP
.B "  Host: rushmore.cup.hp.com "
.TP
.B "  Name: HP-UX "
.TP
.B "  Version: B.11.00 "
.TP
.B "  UserLicense: Unlimited user license "
.TP
.B "  OSCapability: 32 bit "
.TP
.B "  LastBootTime: Sep 24, 2001  9:16:18 (-0700) "
.TP
.B "  LocalDateTime: May 23, 2002  10:55:54 (-0700) "
.TP
.B "  SystemUpTime: 20828377 seconds = 241 days, 1 hr, 39 mins, 37 secs  "
.PD
.PP
The system rushmore.cup.hp.com is running version B.11.00 of HP-UX,
has an unlimited user license, and is 32-bit capable.  The Operating
System was last booted on Sept 24, 2001 and the local date and time
are given.  All time values are offset from GMT by -7 hours.
.PP
Run 
.B osinfo ,
with the values displayed in their CIM format
.TP
.PD 0
.B "osinfo -c"

.TP
.B "OperatingSystem Information"
.TP
.B "  Host: rushmore.cup.hp.com"
.TP
.B "  Name: HP-UX"
.TP
.B "  Version: B.11.00"
.TP
.B "  UserLicense: Unlimited user license"
.TP
.B "  OSCapability: 32 bit"
.TP
.B "  LastBootTime: 20010924091618.000000-420"
.TP
.B "  LocalDateTime: 20020523105801.000000-420"
.TP
.B "  SystemUpTime: 20828504"
.PD
.PP
The same rushmore.cup.hp.com system is displayed, but in this output the
LastBootTime and LocalDateTime values are in the CIM format.  The SystemUpTime
value is in total seconds (as specified by CIM).  Other fields do not change,
as their CIM specification is the strings themselves.
.SH SEE ALSO
.PP
cimserver(1).
.SH STANDARDS CONFORMANCE
.PP
\fBosinfo\fP : DMTF WBEM (Web-Based Enterprise Management) and CIM 
(Common Information Model)

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2