osinfo(1)
π osinfo(1) β the manual page bestie π
okay so you opened the osinfo(1) manual, and honestly? it's giving "let me just tell you everything about this computer real quick." no cap. here's the whole thing, nothing skipped, everything slay. π¦
β¨ NAME β¨
osinfo β gather information regarding the running operating system π₯οΈπ
πΈ SYNOPSIS πΈ
osinfo [ -s ] [ -h hostname ] [ -p portnumber ]
[ -u username ] [ -w password ] [ -t timeout ]
[ -c ] [ --help ] [ --version ]
π« DESCRIPTION π«
The 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. like, it's not optional bestie, the CIM Server has to be there. π
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. so instead of a scary number you get a cute little "241 days, 1 hr, 39 mins, 37 secs" moment. π
If a property value is unavailable, it will be shown as "Unknown" β no drama, just honest. π
π Options π
osinfo 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, theCIMDateTimeformat isyyyymmddhhmmss.mmmmmmsutc, whereyyyyis a 4-digit year,mmis the month,ddis the day,hhis the hour on a 24-hour clock,mmis the minute,ssis the second,mmmmmmis the number of microseconds,sis 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), andutcis the offset from UTC in minutes. it's raw CIM energy, periodt.-hhostname β Connect to the CIM Server on the specified host. If this option is not specified,osinfoconnects to the localhost. π--helpβ Display command usage information. the "help me help you" button fr fr. π«Ά-pportnumber β Connect to the CIM Server on the specified port number. If this option is not specified,osinfoconnects to the default port for thewbem-httpservice, or if the-soption is specified, to the default port for thewbem-httpsservice. π-sβ Enable the use of the SSL protocol betweenosinfoand the CIM server. The-soption should be specified if the CIM Server on the specified hostname/portnumber expects clients to connect using HTTPS. secure the bag πβ¨-ttimeout β 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 than0. be patient but not too patient, yk? β³-uusername β Connect as the specifiedR 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. π-wpassword β Authenticate the connection using the specifiedpassword. 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. π seriously bestie, don't put your password on the command line, the whole group chat can see it.
π― EXIT STATUS π―
When 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 NOTE π¨
The osinfo command requires that the CIM Server is running. no CIM Server, no vibes. πΈ
π©Ί DIAGNOSTICS π©Ί
osinfo error: Cannot connect
The CIMOM is not running. Start the CIMOM with the cimserver command and re-run osinfo . boom, fixed, you're welcome. π
π EXAMPLES π
Run the default osinfo command.
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 ALSO π
cimserver(1).
π STANDARDS CONFORMANCE π
osinfo : DMTF WBEM (Web-Based Enterprise Management) and CIM (Common Information Model) π
and that's the whole page bestie, iykyk. this was the osinfo(1) manual β that's the title, that's the manual name, that's the footer too, no version or date shenanigans hiding down there, just good old osinfo(1). go read your operating system's whole life story, you main character. π
πβ¨
π¦ where this page comes from
- centos-stream 10: tog-pegasus 2:2.14.1-79.el10 Β· MIT
- centos-stream 9: tog-pegasus 2:2.14.1-68.el9 Β· MIT
- fedora 43: tog-pegasus 2:2.14.1-86.fc43 Β· MIT
- fedora 44: tog-pegasus 2:2.14.1-89.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms