Unix and Linux Discussions Tagged with centos |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
15,523 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
11,962 |
UNIX for Advanced & Expert Users |
|
|
|
27 |
34,589 |
Linux |
|
|
|
27 |
81,228 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
18,524 |
IP Networking |
|
|
|
1 |
2,513 |
Shell Programming and Scripting |
|
|
|
8 |
6,897 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
100,193 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
3,711 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,122 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
7,873 |
Red Hat |
|
|
|
2 |
2,103 |
Red Hat |
|
|
|
20 |
25,116 |
Shell Programming and Scripting |
|
|
|
2 |
6,313 |
Red Hat |
|
|
|
3 |
17,016 |
Red Hat |
|
|
|
0 |
4,865 |
Red Hat |
|
|
|
2 |
4,038 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
13,309 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,980 |
Linux |
|
|
|
1 |
5,518 |
Linux |
|
|
|
4 |
4,148 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
10,376 |
Red Hat |
|
|
|
4 |
9,356 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,699 |
Linux |
|
|
|
5 |
3,241 |
Red Hat |
|
|
|
4 |
3,141 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,827 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
46,013 |
UNIX and Linux Applications |
|
|
|
5 |
15,524 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
3,723 |
Shell Programming and Scripting |
|
|
|
1 |
9,539 |
UNIX Desktop Questions & Answers |
|
|
|
0 |
6,857 |
UNIX Desktop Questions & Answers |
|
|
|
0 |
7,199 |
Shell Programming and Scripting |
|
|
|
1 |
5,379 |
Red Hat |
|
|
|
6 |
8,829 |
Shell Programming and Scripting |
|
|
|
1 |
3,539 |
UNIX and Linux Applications |
|
|
|
2 |
3,890 |
UNIX and Linux Applications |
|
|
|
2 |
3,138 |
Linux |
|
|
|
2 |
4,604 |
Red Hat |
|
|
|
1 |
4,231 |
Ubuntu |
OSINFO-QUERY.C(1) Virtualization Support OSINFO-QUERY.C(1)
NAME
osinfo-query - Query information in the database
SYNOPSIS
osinfo-query [OPTIONS...] TYPE [CONDITION-1 [CONDITION-2 ...]]
DESCRIPTION
The "osinfo-query" command allows extraction of information from the database. TYPE can be one of "os", "platform", "device", or
"deployment". With no conditions specified, all entities of the given type will be listed.
# List all operating systems
$ osinfo-query os
Short ID | Name ...
----------------------+-----------
centos-6.0 | CentOS 6.0 ...
centos-6.1 | CentOS 6.1 ...
...
Conditions allow filtering based on specific properties of an entity. For example, to filter only distros from the Fedora Project, use
# List all operating systems
$ osinfo-query os vendor="Fedora Project"
Short ID | Name ...
----------------------+--------------
fedora1 | Fedora Core 1 ...
fedora2 | Fedora Core 2 ...
...
The set of fields which are printed can be controlled using the "--fields" command line argument:
# List all operating systems
$ osinfo-query --fields=short-id,version os vendor="Fedora Project"
Short ID | Version
----------------------+----------
fedora1 | 1
fedora2 | 2
...
OPTIONS
-s PROPERTY, --sort-key PROPERTY
Set the data sorting key. Defaults sorting the first column
-f PROPERTY1,PROPERTY2,..., --fields PROPERTY1,PROPERTY2,...
Set the visibility of properties in output
PROPERTY NAMES
OS
Valid property names for the "os" type are:
short-id
The short OS identifier
name
The long OS name
version
The OS version string
family
The OS kernel family
vendor
The OS vendor
release-date
The OS release date
eol-date
The OS end-of-life date
codename
The OS code name
id The OS identifier
PLATFORM
Valid property names for the "platform" type are:
short-id
The short platform identifier
name
The long platform name
version
The platform version string
vendor
The platform vendor
release-date
The platform release date
eol-date
The platform end-of-life date
codename
The platform code name
id The platform identifier
DEVICE
Valid property names for the "device" type are:
name
The device name
product
The device product name
product-id
The device product ID string
vendor
The device vendor name
vendor-id
The device vendor ID string
class
The device type class
bus The device bus type
id The device identifier
DEPLOYMENT
Valid property names for the "deployment" type are:
id The deployment identifier
EXIT STATUS
The exit status will be 0 if matching entries were found, or 1 if not matches were found
SEE ALSO
"osinfo-db-validate(1)", "osinfo-detect(1)"
AUTHORS
Daniel P. Berrange <berrange@redhat.com>
COPYRIGHT
Copyright (C) 2012 Red Hat, Inc.
LICENSE
"osinfo-query" is distributed under the termsof the GNU LGPL v2+ license. This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
libosinfo-0.2.7 2013-02-06 OSINFO-QUERY.C(1)