osinfo - Online Linux Manual PageSection : 1
Updated :
Source :
Note :
NAMEosinfo − gather information regarding the running operating system
SYNOPSISosinfo [ −s ] [ −h hostname ] [ −p portnumber ]
[ −u username ] [ −w password ] [ −t timeout ]
[ −c ] [ −−help ] [ −−version ]
DESCRIPTIONThe osinfo command displays information regarding the operating system, gathered via WBEM using the PG_OperatingSystem class supported by the OperatingSystem Provider (bundled with OpenPegasus). osinfo requires the CIM Server to be installed and running. 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. If a property value is unavailable, it will be shown as "Unknown"
Optionsosinfo recognizes the following options: −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. −h hostname Connect to the CIM Server on the specified host. If this option is not specified, osinfo connects to the localhost. −−help Display command usage information. −p portnumber Connect to the CIM Server on the specified port number. If this option is not specified, osinfo connects to the default port for the wbem−http service, or if the −s option is specified, to the default port for the wbem−https service. −s Enable the use of the SSL protocol between osinfo and the CIM server. The −s option should be specified if the CIM Server on the specified hostname/portnumber expects clients to connect using HTTPS. −t timeout Wait the specified number of milliseconds on sending a request, before timing out if no response has been received. The timeout value must be an integer value greater than 0. −u username Connect as the specified R username . If username is not specified, the current logged in user is used for authentication. This option is ignored if neither hostname nor portnumber is specified. −−version Display CIM Server version. −w password Authenticate the connection using the specified password . This option is ignored if neither hostname nor portnumber is specified. WARNING: A password should not be specified on the command line on a multi-user system, since command-line options are typically world-readable for a short window of time. If the remote host requests authentication and this option is not specified, osinfo will prompt for the password.
EXIT STATUSWhen an error occurs, an error message is written to stderr and an appropriate value is returned. The following values are returned: 0 Success 1 Error
USAGE NOTEThe osinfo command requires that the CIM Server is running.
DIAGNOSTICSosinfo error: Cannot connect" The CIMOM is not running. Start the CIMOM with the cimserver command and re−run osinfo .
EXAMPLESRun the default osinfo command. .C osinfo OperatingSystem Information" Host: myserver.hp.com " Name: HP−UX " Version: B.11.00 " UserLicense: Unlimited user license " OSCapability: 32 bit " LastBootTime: Sep 24, 2001 9:16:18 (−0700) " LocalDateTime: May 23, 2002 10:55:54 (−0700) " SystemUpTime: 20828377 seconds = 241 days, 1 hr, 39 mins, 37 secs " The system myserver.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. Run osinfo , with the values displayed in their CIM format osinfo −c" OperatingSystem Information" Host: rushmore.cup.hp.com" Name: HP−UX" Version: B.11.00" UserLicense: Unlimited user license" OSCapability: 32 bit" LastBootTime: 20010924091618.000000−420" LocalDateTime: 20020523105801.000000−420" SystemUpTime: 20828504" 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.
SEE ALSOcimserver(1).
STANDARDS CONFORMANCEosinfo : DMTF WBEM (Web−Based Enterprise Management) and CIM (Common Information Model) 0
Johanes Gumabo
Data Size : 19,427 byte
man-osinfo.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 189,155
Visitor ID : :
Visitor IP : 13.58.61.176 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|osinfo.1|138|C|.C osinfo
)