mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
New version, new tarball, new man page. This is the first attempt to correct an
issue a forum poster raised, which is the fact that despite the fact that GNU/Linux has had reasonably ok zfs support for years now, inxi only tested for zfs on bsd systems. This has been corrected. Due to the complexity of handling software raid, inxi will now test first for ZFS data, if none is found, it will then test for /proc/mdstat. In a perfect world I'd like to have full dynamic Raid support, but I'm missing all the key ingredients required to add that: 1. systems to test on 2. software raid, I don't use it 3. data collection for non mdraid and zfs software raid, including the values possible to gather from all non software raid. Basically, the only way I'd extend -R raid option is if I get direct ssh access to a machine that uses the alternate software raid type, otherwise it would take forever to figure out the options. Since the number of people who might be actually running zfs and mdraid and using inxi probably numbers in the 10 globally, I figured this solution was a fine way to handle adding zfs without messing up mdraid, which is more common on linux. It also does not break BSDs, since bsds as far as I know don't use mdraid, and don't have /proc/mdraid in the first place. Also redid the man page to add -! 41, -! 42, -! 43, -! 44 options, which bypass curl, fetch, wget, and all of them, respectively. Plus making the lines less wide. That should make those people who actually use 80 column wide vi as an editor happy, lol.
This commit is contained in:
parent
050c2ec87d
commit
ffd52bfe73
466
inxi
466
inxi
|
@ -2,8 +2,8 @@
|
||||||
########################################################################
|
########################################################################
|
||||||
SELF_NAME='inxi'
|
SELF_NAME='inxi'
|
||||||
# don't quote the following, parsers grab these too
|
# don't quote the following, parsers grab these too
|
||||||
SELF_VERSION=2.3.48
|
SELF_VERSION=2.3.49
|
||||||
SELF_DATE=2017-11-27
|
SELF_DATE=2017-11-28
|
||||||
SELF_PATCH=00
|
SELF_PATCH=00
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -261,7 +261,8 @@ A_CMDL=''
|
||||||
A_CPU_CORE_DATA=''
|
A_CPU_CORE_DATA=''
|
||||||
A_CPU_DATA=''
|
A_CPU_DATA=''
|
||||||
A_CPU_TYPE_PCNT_CCNT=''
|
A_CPU_TYPE_PCNT_CCNT=''
|
||||||
A_DEBUG_BUFFER=''
|
A_DEBUG_BUFFER=''xA9br8
|
||||||
|
|
||||||
A_GCC_VERSIONS=''
|
A_GCC_VERSIONS=''
|
||||||
A_GLX_DATA=''
|
A_GLX_DATA=''
|
||||||
A_GRAPHICS_CARD_DATA=''
|
A_GRAPHICS_CARD_DATA=''
|
||||||
|
@ -276,7 +277,7 @@ A_OPTICAL_DRIVE_DATA=''
|
||||||
A_PARTITION_DATA=''
|
A_PARTITION_DATA=''
|
||||||
A_PCICONF_DATA=''
|
A_PCICONF_DATA=''
|
||||||
A_PS_DATA=''
|
A_PS_DATA=''
|
||||||
A_RAID_DATA=''
|
A_RAID_DATA=()
|
||||||
A_SENSORS_DATA=''
|
A_SENSORS_DATA=''
|
||||||
A_UNMOUNTED_PARTITION_DATA=''
|
A_UNMOUNTED_PARTITION_DATA=''
|
||||||
A_WEATHER_DATA=''
|
A_WEATHER_DATA=''
|
||||||
|
@ -285,7 +286,6 @@ A_DISPLAY_SERVER_DATA=''
|
||||||
### BOOLEANS ###
|
### BOOLEANS ###
|
||||||
## standard boolean flags ##
|
## standard boolean flags ##
|
||||||
B_BSD_DISK_SET='false'
|
B_BSD_DISK_SET='false'
|
||||||
B_BSD_RAID='false'
|
|
||||||
B_COLOR_SCHEME_SET='false'
|
B_COLOR_SCHEME_SET='false'
|
||||||
B_CONSOLE_IRC='false'
|
B_CONSOLE_IRC='false'
|
||||||
# triggers full display of cpu flags
|
# triggers full display of cpu flags
|
||||||
|
@ -521,6 +521,7 @@ LSPCI_V_DATA=''
|
||||||
LSPCI_N_DATA=''
|
LSPCI_N_DATA=''
|
||||||
MEMORY=''
|
MEMORY=''
|
||||||
PS_THROTTLED=''
|
PS_THROTTLED=''
|
||||||
|
RAID_TYPE=''
|
||||||
REPO_DATA=''
|
REPO_DATA=''
|
||||||
SYSCTL_A_DATA=''
|
SYSCTL_A_DATA=''
|
||||||
UP_TIME=''
|
UP_TIME=''
|
||||||
|
@ -10121,238 +10122,256 @@ get_raid_data()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
|
|
||||||
local mdstat=''
|
local Mdstat=''
|
||||||
|
local Zpool_Path=$( type -p zpool 2>/dev/null )
|
||||||
if [[ $B_MDSTAT_FILE == 'true' ]];then
|
|
||||||
mdstat="$( cat $FILE_MDSTAT 2>/dev/null )"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n $mdstat ]];then
|
# note: zfs has been available for Linux for a while. BSD systems
|
||||||
# need to make sure there's always a newline in front of each record type, and
|
# will not have mdraid.
|
||||||
# also correct possible weird formats for the output from older kernels etc.
|
if [[ -n $Zpool_Path ]];then
|
||||||
mdstat="$( sed -e 's/^md/\nmd/' -e 's/^unused[[:space:]]/\nunused /' \
|
RAID_TYPE='zfs'
|
||||||
-e 's/read_ahead/\nread_ahead/' -e 's/^resync=/\nresync=/' -e 's/^Event/\nEvent/' \
|
get_raid_data_zfs
|
||||||
-e 's/^[[:space:]]*$//' -e 's/[[:space:]]read_ahead/\nread_ahead/' <<< "$mdstat" )"
|
fi
|
||||||
# some fringe cases do not end as expected, so need to add newlines plus EOF to make sure while loop doesn't spin
|
# because there's no way for inxi to handle > 1 types of
|
||||||
mdstat=$( echo -e "$mdstat\n\nEOF" )
|
# software raid on one system, we simply have to assume that
|
||||||
|
# if it had zfs, it won't have mdraid. Note that systems with
|
||||||
IFS=$'\n'
|
# no actual mdraid but the kernel module running will have always
|
||||||
A_RAID_DATA=( $(
|
# an array count of at least 2, for the two header lines of mdraid
|
||||||
gawk '
|
if [[ ${#A_RAID_DATA[@]} -eq 0 ]];then
|
||||||
BEGIN {
|
if [[ $B_MDSTAT_FILE == 'true' ]];then
|
||||||
IGNORECASE=1
|
Mdstat="$( cat $FILE_MDSTAT 2>/dev/null )"
|
||||||
RS="\n"
|
fi
|
||||||
}
|
if [[ -n $Mdstat ]];then
|
||||||
/^personalities/ {
|
RAID_TYPE='mdraid'
|
||||||
KernelRaidSupport = gensub(/personalities[[:space:]]*:[[:space:]]*(.*)/, "\\1", 1, $0)
|
get_raid_data_mdraid
|
||||||
# clean off the brackets
|
|
||||||
gsub(/[\[\]]/,"",KernelRaidSupport)
|
|
||||||
print "KernelRaidSupport," KernelRaidSupport
|
|
||||||
}
|
|
||||||
/^read_ahead/ {
|
|
||||||
ReadAhead=gensub(/read_ahead (.*)/, "\\1", 1 )
|
|
||||||
print "ReadAhead," ReadAhead
|
|
||||||
}
|
|
||||||
/^Event:/ {
|
|
||||||
print "raidEvent," $NF
|
|
||||||
}
|
|
||||||
# print logic will search for this value and use it to print out the unused devices data
|
|
||||||
/^unused devices/ {
|
|
||||||
unusedDevices = gensub(/^unused devices:[[:space:]][<]?([^>]*)[>]?.*/, "\\1", 1, $0)
|
|
||||||
print "UnusedDevices," unusedDevices
|
|
||||||
}
|
|
||||||
|
|
||||||
/^md/ {
|
|
||||||
# reset for each record loop through
|
|
||||||
deviceState = ""
|
|
||||||
bitmapValues = ""
|
|
||||||
blocks = ""
|
|
||||||
chunkSize = ""
|
|
||||||
components = ""
|
|
||||||
device = ""
|
|
||||||
deviceReport = ""
|
|
||||||
finishTime = ""
|
|
||||||
recoverSpeed = ""
|
|
||||||
recoveryProgressBar = ""
|
|
||||||
recoveryPercent = ""
|
|
||||||
raidLevel = ""
|
|
||||||
sectorsRecovered = ""
|
|
||||||
separator = ""
|
|
||||||
superBlock = ""
|
|
||||||
uData = ""
|
|
||||||
|
|
||||||
while ( !/^[[:space:]]*$/ ) {
|
|
||||||
gsub(/'"$BAN_LIST_ARRAY"'/, " ", $0 )
|
|
||||||
gsub(/[[:space:]]+/, " ", $0 )
|
|
||||||
if ( $0 ~ /^md/ ) {
|
|
||||||
device = gensub(/(md.*)[[:space:]]?:/, "\\1", "1", $1 )
|
|
||||||
}
|
|
||||||
if ( $0 ~ /mirror|raid[0-9]+/ ) {
|
|
||||||
raidLevel = gensub(/(.*)raid([0-9]+)(.*)/, "\\2", "g", $0 )
|
|
||||||
}
|
|
||||||
if ( $0 ~ /(active \(auto-read-only\)|active|inactive)/ ) {
|
|
||||||
deviceState = gensub(/(.*) (active \(auto-read-only\)|active|inactive) (.*)/, "\\2", "1", $0 )
|
|
||||||
}
|
|
||||||
# gawk will not return all the components using gensub, only last one
|
|
||||||
separator = ""
|
|
||||||
for ( i=3; i<=NF; i++ ) {
|
|
||||||
if ( $i ~ /[hs]d[a-z][0-9]*(\[[0-9]+\])?(\([SF]\))?/ ) {
|
|
||||||
components = components separator $i
|
|
||||||
separator=" "
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ( $0 ~ /blocks/ ) {
|
|
||||||
blocks = gensub(/(.*[[:space:]]+)?([0-9]+)[[:space:]]blocks.*/, "\\2", "1", $0)
|
|
||||||
}
|
|
||||||
if ( $0 ~ /super[[:space:]][0-9\.]+/ ) {
|
|
||||||
superBlock = gensub(/.*[[:space:]]super[[:space:]]([0-9\.]+)[[:space:]].*/, "\\1", "1", $0)
|
|
||||||
}
|
|
||||||
if ( $0 ~ /algorithm[[:space:]][0-9\.]+/ ) {
|
|
||||||
algorithm = gensub(/.*[[:space:]]algorithm[[:space:]]([0-9\.]+)[[:space:]].*/, "\\1", "1", $0)
|
|
||||||
}
|
|
||||||
if ( $0 ~ /\[[0-9]+\/[0-9]+\]/ ) {
|
|
||||||
deviceReport = gensub(/.*[[:space:]]\[([0-9]+\/[0-9]+)\][[:space:]].*/, "\\1", "1", $0)
|
|
||||||
uData = gensub(/.*[[:space:]]\[([U_]+)\]/, "\\1", "1", $0)
|
|
||||||
}
|
|
||||||
# need to avoid this: bitmap: 0/10 pages [0KB], 16384KB chunk
|
|
||||||
# while currently all the normal chunks are marked with k, not kb, this can change in the future
|
|
||||||
if ( $0 ~ /[0-9]+[k] chunk/ && $0 !~ /bitmap/ ) {
|
|
||||||
chunkSize = gensub(/(.*) ([0-9]+[k]) chunk.*/, "\\2", "1", $0)
|
|
||||||
}
|
|
||||||
if ( $0 ~ /^resync=/ ) {
|
|
||||||
sub(/resync=/,"")
|
|
||||||
print "resyncStatus," $0
|
|
||||||
}
|
|
||||||
if ( $0 ~ /\[[=]*>[\.]*\].*(resync|recovery)/ ) {
|
|
||||||
recoveryProgressBar = gensub(/.*(\[[=]*>[\.]*\]).*/, "\\1",1,$0)
|
|
||||||
}
|
|
||||||
if ( $0 ~ / (resync|recovery)[[:space:]]*=/ ) {
|
|
||||||
recoveryPercent = gensub(/.* (resync|recovery)[[:space:]]*=[[:space:]]*([0-9\.]+%).*/, "\\1~\\2", 1 )
|
|
||||||
if ( $0 ~ /[[:space:]]\([0-9]+\/[0-9]+\)/ ) {
|
|
||||||
sectorsRecovered = gensub(/.* \(([0-9]+\/[0-9]+)\).*/, "\\1", 1, $0 )
|
|
||||||
}
|
|
||||||
if ( $0 ~ /finish[[:space:]]*=/ ) {
|
|
||||||
finishTime = gensub(/.* finish[[:space:]]*=[[:space:]]*([[0-9\.]+)([a-z]+) .*/, "\\1 \\2", 1, $0 )
|
|
||||||
}
|
|
||||||
if ( $0 ~ /speed[[:space:]]*=/ ) {
|
|
||||||
recoverSpeed = gensub(/.* speed[[:space:]]*=[[:space:]]*([[0-9\.]+)([a-z]+\/[a-z]+)/, "\\1 \\2", 1, $0 )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ( $0 ~ /bitmap/ ) {
|
|
||||||
bitmapValues = gensub(/(.*[[:space:]])?bitmap:(.*)/, "\\2", 1, $0 )
|
|
||||||
}
|
|
||||||
|
|
||||||
getline
|
|
||||||
}
|
|
||||||
raidString = device "," deviceState "," raidLevel "," components "," deviceReport "," uData
|
|
||||||
raidString = raidString "," blocks "," superBlock "," algorithm "," chunkSize "," bitmapValues
|
|
||||||
raidString = raidString "," recoveryProgressBar "," recoveryPercent "," sectorsRecovered "," finishTime "," recoverSpeed
|
|
||||||
|
|
||||||
print raidString
|
|
||||||
}
|
|
||||||
' <<< "$mdstat" ) )
|
|
||||||
IFS="$ORIGINAL_IFS"
|
|
||||||
else
|
|
||||||
if [[ $BSD_TYPE == 'bsd' ]];then
|
|
||||||
get_raid_data_bsd
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
B_RAID_SET='true'
|
B_RAID_SET='true'
|
||||||
a_temp=${A_RAID_DATA[@]}
|
a_temp=${A_RAID_DATA[@]}
|
||||||
log_function_data "A_RAID_DATA: $a_temp"
|
log_function_data "A_RAID_DATA: $a_temp"
|
||||||
# echo -e "A_RAID_DATA:\n${a_temp}"
|
# echo ${#A_RAID_DATA[@]}
|
||||||
|
# echo -e "A_RAID_DATA:\n${a_temp}"
|
||||||
|
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
||||||
get_raid_data_bsd()
|
get_raid_data_mdraid()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
local zpool_path=$( type -p zpool 2>/dev/null )
|
|
||||||
local zpool_data='' zpool_arg='v'
|
|
||||||
|
|
||||||
if [[ -n $zpool_path ]];then
|
# need to make sure there's always a newline in front of each record type, and
|
||||||
B_BSD_RAID='true'
|
# also correct possible weird formats for the output from older kernels etc.
|
||||||
# bsd sed does not support inserting a true \n so use this trick
|
Mdstat="$( sed -e 's/^md/\nmd/' -e 's/^unused[[:space:]]/\nunused /' \
|
||||||
# some zfs does not have -v
|
-e 's/read_ahead/\nread_ahead/' -e 's/^resync=/\nresync=/' -e 's/^Event/\nEvent/' \
|
||||||
if $zpool_path list -v &>/dev/null;then
|
-e 's/^[[:space:]]*$//' -e 's/[[:space:]]read_ahead/\nread_ahead/' <<< "$Mdstat" )"
|
||||||
zpool_data="$( $zpool_path list -v 2>/dev/null | sed $SED_RX 's/^([^[:space:]])/\
|
# some fringe cases do not end as expected, so need to add newlines plus EOF to make sure while loop doesn't spin
|
||||||
\1/' )"
|
Mdstat=$( echo -e "$Mdstat\n\nEOF" )
|
||||||
else
|
|
||||||
zpool_data="$( $zpool_path list 2>/dev/null | sed $SED_RX 's/^([^[:space:]])/\
|
IFS=$'\n'
|
||||||
\1/' )"
|
A_RAID_DATA=( $(
|
||||||
zpool_arg='no-v'
|
gawk '
|
||||||
fi
|
BEGIN {
|
||||||
# echo "$zpool_data"
|
IGNORECASE=1
|
||||||
IFS=$'\n'
|
RS="\n"
|
||||||
A_RAID_DATA=( $(
|
}
|
||||||
gawk '
|
/^personalities/ {
|
||||||
BEGIN {
|
KernelRaidSupport = gensub(/personalities[[:space:]]*:[[:space:]]*(.*)/, "\\1", 1, $0)
|
||||||
IGNORECASE=1
|
# clean off the brackets
|
||||||
raidString=""
|
gsub(/[\[\]]/,"",KernelRaidSupport)
|
||||||
separator=""
|
print "KernelRaidSupport," KernelRaidSupport
|
||||||
components=""
|
}
|
||||||
reportSize=""
|
/^read_ahead/ {
|
||||||
blocksAvailable=""
|
ReadAhead=gensub(/read_ahead (.*)/, "\\1", 1 )
|
||||||
chunkRaidAllocated=""
|
print "ReadAhead," ReadAhead
|
||||||
}
|
}
|
||||||
/SIZE.*ALLOC/ {
|
/^Event:/ {
|
||||||
sub(/.*ALLOC.*/,"", $0)
|
print "raidEvent," $NF
|
||||||
}
|
}
|
||||||
# gptid/d874c7e7-3f6d-11e4-b7dc-080027ea466c
|
# print logic will search for this value and use it to print out the unused devices data
|
||||||
/^[^[:space:]]/ {
|
/^unused devices/ {
|
||||||
components=""
|
unusedDevices = gensub(/^unused devices:[[:space:]][<]?([^>]*)[>]?.*/, "\\1", 1, $0)
|
||||||
separator=""
|
print "UnusedDevices," unusedDevices
|
||||||
raidLevel=""
|
}
|
||||||
device=$1
|
|
||||||
deviceState=$7
|
/^md/ {
|
||||||
reportSize=$2
|
# reset for each record loop through
|
||||||
blocksAvailable=$4
|
deviceState = ""
|
||||||
chunkRaidAllocated=$3
|
bitmapValues = ""
|
||||||
|
blocks = ""
|
||||||
getline
|
chunkSize = ""
|
||||||
# raid level is the second item in the output, unless it is not, sometimes it is absent
|
components = ""
|
||||||
if ( $1 != "" ) {
|
device = ""
|
||||||
if ( $1 ~ /raid|mirror/ ) {
|
deviceReport = ""
|
||||||
raidLevel="zfs " $1
|
finishTime = ""
|
||||||
}
|
recoverSpeed = ""
|
||||||
else {
|
recoveryProgressBar = ""
|
||||||
raidLevel="zfs-no-raid"
|
recoveryPercent = ""
|
||||||
components = $1
|
raidLevel = ""
|
||||||
|
sectorsRecovered = ""
|
||||||
|
separator = ""
|
||||||
|
superBlock = ""
|
||||||
|
uData = ""
|
||||||
|
|
||||||
|
while ( !/^[[:space:]]*$/ ) {
|
||||||
|
gsub(/'"$BAN_LIST_ARRAY"'/, " ", $0 )
|
||||||
|
gsub(/[[:space:]]+/, " ", $0 )
|
||||||
|
if ( $0 ~ /^md/ ) {
|
||||||
|
device = gensub(/(md.*)[[:space:]]?:/, "\\1", "1", $1 )
|
||||||
|
}
|
||||||
|
if ( $0 ~ /mirror|raid[0-9]+/ ) {
|
||||||
|
raidLevel = gensub(/(.*)raid([0-9]+)(.*)/, "\\2", "g", $0 )
|
||||||
|
}
|
||||||
|
if ( $0 ~ /(active \(auto-read-only\)|active|inactive)/ ) {
|
||||||
|
deviceState = gensub(/(.*) (active \(auto-read-only\)|active|inactive) (.*)/, "\\2", "1", $0 )
|
||||||
|
}
|
||||||
|
# gawk will not return all the components using gensub, only last one
|
||||||
|
separator = ""
|
||||||
|
for ( i=3; i<=NF; i++ ) {
|
||||||
|
if ( $i ~ /[hs]d[a-z][0-9]*(\[[0-9]+\])?(\([SF]\))?/ ) {
|
||||||
|
components = components separator $i
|
||||||
separator=" "
|
separator=" "
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ( $0 ~ /blocks/ ) {
|
||||||
while ( getline && $1 !~ /^$/ ) {
|
blocks = gensub(/(.*[[:space:]]+)?([0-9]+)[[:space:]]blocks.*/, "\\2", "1", $0)
|
||||||
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
}
|
||||||
if ($1 ~ /spares/) {
|
if ( $0 ~ /super[[:space:]][0-9\.]+/ ) {
|
||||||
getline
|
superBlock = gensub(/.*[[:space:]]super[[:space:]]([0-9\.]+)[[:space:]].*/, "\\1", "1", $0)
|
||||||
|
}
|
||||||
|
if ( $0 ~ /algorithm[[:space:]][0-9\.]+/ ) {
|
||||||
|
algorithm = gensub(/.*[[:space:]]algorithm[[:space:]]([0-9\.]+)[[:space:]].*/, "\\1", "1", $0)
|
||||||
|
}
|
||||||
|
if ( $0 ~ /\[[0-9]+\/[0-9]+\]/ ) {
|
||||||
|
deviceReport = gensub(/.*[[:space:]]\[([0-9]+\/[0-9]+)\][[:space:]].*/, "\\1", "1", $0)
|
||||||
|
uData = gensub(/.*[[:space:]]\[([U_]+)\]/, "\\1", "1", $0)
|
||||||
|
}
|
||||||
|
# need to avoid this: bitmap: 0/10 pages [0KB], 16384KB chunk
|
||||||
|
# while currently all the normal chunks are marked with k, not kb, this can change in the future
|
||||||
|
if ( $0 ~ /[0-9]+[k] chunk/ && $0 !~ /bitmap/ ) {
|
||||||
|
chunkSize = gensub(/(.*) ([0-9]+[k]) chunk.*/, "\\2", "1", $0)
|
||||||
|
}
|
||||||
|
if ( $0 ~ /^resync=/ ) {
|
||||||
|
sub(/resync=/,"")
|
||||||
|
print "resyncStatus," $0
|
||||||
|
}
|
||||||
|
if ( $0 ~ /\[[=]*>[\.]*\].*(resync|recovery)/ ) {
|
||||||
|
recoveryProgressBar = gensub(/.*(\[[=]*>[\.]*\]).*/, "\\1",1,$0)
|
||||||
|
}
|
||||||
|
if ( $0 ~ / (resync|recovery)[[:space:]]*=/ ) {
|
||||||
|
recoveryPercent = gensub(/.* (resync|recovery)[[:space:]]*=[[:space:]]*([0-9\.]+%).*/, "\\1~\\2", 1 )
|
||||||
|
if ( $0 ~ /[[:space:]]\([0-9]+\/[0-9]+\)/ ) {
|
||||||
|
sectorsRecovered = gensub(/.* \(([0-9]+\/[0-9]+)\).*/, "\\1", 1, $0 )
|
||||||
}
|
}
|
||||||
# print $1
|
if ( $0 ~ /finish[[:space:]]*=/ ) {
|
||||||
components = components separator $1
|
finishTime = gensub(/.* finish[[:space:]]*=[[:space:]]*([[0-9\.]+)([a-z]+) .*/, "\\1 \\2", 1, $0 )
|
||||||
|
}
|
||||||
|
if ( $0 ~ /speed[[:space:]]*=/ ) {
|
||||||
|
recoverSpeed = gensub(/.* speed[[:space:]]*=[[:space:]]*([[0-9\.]+)([a-z]+\/[a-z]+)/, "\\1 \\2", 1, $0 )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( $0 ~ /bitmap/ ) {
|
||||||
|
bitmapValues = gensub(/(.*[[:space:]])?bitmap:(.*)/, "\\2", 1, $0 )
|
||||||
|
}
|
||||||
|
|
||||||
|
getline
|
||||||
|
}
|
||||||
|
raidString = device "," deviceState "," raidLevel "," components "," deviceReport "," uData
|
||||||
|
raidString = raidString "," blocks "," superBlock "," algorithm "," chunkSize "," bitmapValues
|
||||||
|
raidString = raidString "," recoveryProgressBar "," recoveryPercent "," sectorsRecovered "," finishTime "," recoverSpeed
|
||||||
|
|
||||||
|
print raidString
|
||||||
|
}
|
||||||
|
' <<< "$Mdstat" ) )
|
||||||
|
IFS="$ORIGINAL_IFS"
|
||||||
|
|
||||||
|
eval $LOGFE
|
||||||
|
}
|
||||||
|
|
||||||
|
get_raid_data_zfs()
|
||||||
|
{
|
||||||
|
eval $LOGFS
|
||||||
|
|
||||||
|
local zpool_data='' zpool_arg='v'
|
||||||
|
|
||||||
|
# bsd sed does not support inserting a true \n so use this trick
|
||||||
|
# some zfs does not have -v
|
||||||
|
if $Zpool_Path list -v &>/dev/null;then
|
||||||
|
zpool_data="$( $Zpool_Path list -v 2>/dev/null | sed $SED_RX 's/^([^[:space:]])/\
|
||||||
|
\1/' )"
|
||||||
|
else
|
||||||
|
zpool_data="$( $Zpool_Path list 2>/dev/null | sed $SED_RX 's/^([^[:space:]])/\
|
||||||
|
\1/' )"
|
||||||
|
zpool_arg='no-v'
|
||||||
|
fi
|
||||||
|
# echo "$zpool_data"
|
||||||
|
IFS=$'\n'
|
||||||
|
A_RAID_DATA=( $(
|
||||||
|
gawk '
|
||||||
|
BEGIN {
|
||||||
|
IGNORECASE=1
|
||||||
|
raidString=""
|
||||||
|
separator=""
|
||||||
|
components=""
|
||||||
|
reportSize=""
|
||||||
|
blocksAvailable=""
|
||||||
|
chunkRaidAllocated=""
|
||||||
|
}
|
||||||
|
/SIZE.*ALLOC/ {
|
||||||
|
sub(/.*ALLOC.*/,"", $0)
|
||||||
|
}
|
||||||
|
# gptid/d874c7e7-3f6d-11e4-b7dc-080027ea466c
|
||||||
|
/^[^[:space:]]/ {
|
||||||
|
components=""
|
||||||
|
separator=""
|
||||||
|
raidLevel=""
|
||||||
|
device=$1
|
||||||
|
deviceState=$7
|
||||||
|
reportSize=$2
|
||||||
|
blocksAvailable=$4
|
||||||
|
chunkRaidAllocated=$3
|
||||||
|
|
||||||
|
getline
|
||||||
|
# raid level is the second item in the output, unless it is not, sometimes it is absent
|
||||||
|
if ( $1 != "" ) {
|
||||||
|
if ( $1 ~ /raid|mirror/ ) {
|
||||||
|
raidLevel="zfs " $1
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
raidLevel="zfs-no-raid"
|
||||||
|
components = $1
|
||||||
separator=" "
|
separator=" "
|
||||||
}
|
}
|
||||||
# some issues if we use ~ here
|
}
|
||||||
gsub(/\//,"%",components)
|
|
||||||
|
while ( getline && $1 !~ /^$/ ) {
|
||||||
|
# https://blogs.oracle.com/eschrock/entry/zfs_hot_spares
|
||||||
|
if ($1 ~ /spares/) {
|
||||||
|
getline
|
||||||
|
}
|
||||||
# print $1
|
# print $1
|
||||||
raidString = device "," deviceState "," raidLevel "," components "," reportSize "," uData
|
components = components separator $1
|
||||||
raidString = raidString "," blocksAvailable "," superBlock "," algorithm "," chunkRaidAllocated
|
separator=" "
|
||||||
# none of these are used currently
|
}
|
||||||
raidString = raidString "," bitmapValues "," recoveryProgressBar "," recoveryPercent
|
# some issues if we use ~ here
|
||||||
raidString = raidString "," sectorsRecovered "," finishTime "," recoverSpeed
|
gsub(/\//,"%",components)
|
||||||
gsub(/~/,"",raidString)
|
# print $1
|
||||||
print raidString
|
raidString = device "," deviceState "," raidLevel "," components "," reportSize "," uData
|
||||||
}' <<< "$zpool_data" ) )
|
raidString = raidString "," blocksAvailable "," superBlock "," algorithm "," chunkRaidAllocated
|
||||||
IFS="$ORIGINAL_IFS"
|
# none of these are used currently
|
||||||
# pass the zpool type, so we know how to get the components
|
raidString = raidString "," bitmapValues "," recoveryProgressBar "," recoveryPercent
|
||||||
get_raid_component_data_bsd "$zpool_arg"
|
raidString = raidString "," sectorsRecovered "," finishTime "," recoverSpeed
|
||||||
fi
|
gsub(/~/,"",raidString)
|
||||||
|
print raidString
|
||||||
|
}' <<< "$zpool_data" ) )
|
||||||
|
IFS="$ORIGINAL_IFS"
|
||||||
|
# pass the zpool type, so we know how to get the components
|
||||||
|
get_raid_component_data_zfs "$zpool_arg"
|
||||||
|
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
||||||
# note, we've already tested for zpool so no further tests required
|
# note, we've already tested for zpool so no further tests required
|
||||||
# args: $1 - zpool type, v will have a single row output, no-v has stacked for components
|
# args: $1 - zpool type, v will have a single row output, no-v has stacked for components
|
||||||
get_raid_component_data_bsd()
|
get_raid_component_data_zfs()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
local a_raid_data='' array_string='' component='' component_string=''
|
local a_raid_data='' array_string='' component='' component_string=''
|
||||||
|
@ -10440,7 +10459,7 @@ get_raid_component_data_bsd()
|
||||||
|
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
# get_raid_data_bsd;exit
|
# get_raid_data_zfs;exit
|
||||||
|
|
||||||
get_ram_data()
|
get_ram_data()
|
||||||
{
|
{
|
||||||
|
@ -15161,7 +15180,11 @@ print_raid_data()
|
||||||
local no_raid_detected='' dev_string='/dev/'
|
local no_raid_detected='' dev_string='/dev/'
|
||||||
local empty_raid_data='' report_size='report' blocks_avail='blocks' chunk_raid_usage='chunk size'
|
local empty_raid_data='' report_size='report' blocks_avail='blocks' chunk_raid_usage='chunk size'
|
||||||
|
|
||||||
if [[ -n $BSD_TYPE ]];then
|
if [[ $B_RAID_SET != 'true' ]];then
|
||||||
|
get_raid_data
|
||||||
|
fi
|
||||||
|
# note, default first tesat is zfs, if empty, falls back to mdraid
|
||||||
|
if [[ $RAID_TYPE == 'zfs' ]];then
|
||||||
no_raid_detected='No zfs software RAID detected-other types not yet supported.'
|
no_raid_detected='No zfs software RAID detected-other types not yet supported.'
|
||||||
empty_raid_data='No zfs RAID data available-other types not yet supported.'
|
empty_raid_data='No zfs RAID data available-other types not yet supported.'
|
||||||
report_size='size'
|
report_size='size'
|
||||||
|
@ -15171,14 +15194,9 @@ print_raid_data()
|
||||||
no_raid_detected="No RAID data: $FILE_MDSTAT missing-is md_mod kernel module loaded?"
|
no_raid_detected="No RAID data: $FILE_MDSTAT missing-is md_mod kernel module loaded?"
|
||||||
empty_raid_data="No RAID devices: $FILE_MDSTAT, md_mod kernel module present"
|
empty_raid_data="No RAID devices: $FILE_MDSTAT, md_mod kernel module present"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $BSD_TYPE == 'bsd' ]];then
|
if [[ $BSD_TYPE == 'bsd' ]];then
|
||||||
dev_string=''
|
dev_string=''
|
||||||
fi
|
fi
|
||||||
if [[ $B_RAID_SET != 'true' ]];then
|
|
||||||
get_raid_data
|
|
||||||
fi
|
|
||||||
|
|
||||||
for (( i=0; i < ${#A_RAID_DATA[@]}; i++ ))
|
for (( i=0; i < ${#A_RAID_DATA[@]}; i++ ))
|
||||||
do
|
do
|
||||||
IFS=","
|
IFS=","
|
||||||
|
@ -15208,8 +15226,9 @@ print_raid_data()
|
||||||
super_blocks=''
|
super_blocks=''
|
||||||
u_data=''
|
u_data=''
|
||||||
|
|
||||||
if [[ -n $( grep '^md' <<< ${a_raid_working[0]} ) && -z $BSD_TYPE ]] || \
|
# we only want to print lines if anything showed up for md or zfs.
|
||||||
[[ -n $BSD_TYPE && ${a_raid_working[0]} != '' ]];then
|
if [[ $RAID_TYPE == 'mdraid' && -n $( grep '^md' <<< ${a_raid_working[0]} ) ]] || \
|
||||||
|
[[ $RAID_TYPE == 'zfs' && ${a_raid_working[0]} != '' ]];then
|
||||||
if [[ $B_SHOW_BASIC_RAID == 'true' ]];then
|
if [[ $B_SHOW_BASIC_RAID == 'true' ]];then
|
||||||
if [[ $basic_raid != '' ]];then
|
if [[ $basic_raid != '' ]];then
|
||||||
basic_raid_plural='s'
|
basic_raid_plural='s'
|
||||||
|
@ -15387,9 +15406,8 @@ print_raid_data()
|
||||||
if [[ $B_SHOW_BASIC_RAID == 'true' && $basic_raid != '' ]];then
|
if [[ $B_SHOW_BASIC_RAID == 'true' && $basic_raid != '' ]];then
|
||||||
a_raid_data[0]="${C1}Device$basic_raid_plural$SEP3${C2} $basic_raid"
|
a_raid_data[0]="${C1}Device$basic_raid_plural$SEP3${C2} $basic_raid"
|
||||||
fi
|
fi
|
||||||
# note bsd temp test hack to make it run
|
# This means no /proc/mdstat and no zfs_pool found
|
||||||
if [[ $B_MDSTAT_FILE != 'true' && -z $BSD_TYPE ]] || \
|
if [[ $RAID_TYPE == '' ]];then
|
||||||
[[ -n $BSD_TYPE && $B_BSD_RAID == 'false' ]];then
|
|
||||||
if [[ $B_SHOW_RAID_R == 'true' ]];then
|
if [[ $B_SHOW_RAID_R == 'true' ]];then
|
||||||
a_raid_data[0]="$no_raid_detected"
|
a_raid_data[0]="$no_raid_detected"
|
||||||
else
|
else
|
||||||
|
|
600
inxi.1
600
inxi.1
|
@ -1,34 +1,44 @@
|
||||||
.TH INXI 1 "2017\-09\-21" inxi "inxi manual"
|
.TH INXI 1 "2017\-11\-28" inxi "inxi manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
inxi \- Command line system information script for console and IRC
|
inxi \- Command line system information script for console and IRC
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fBinxi\fR \- Single line, short form. Very basic output.
|
\fBinxi\fR \- Single line, short form. Very basic output.
|
||||||
|
|
||||||
\fBinxi \fR[\fB\-AbBCdDfFGhHiIlmMnNopPrRsSuw\fR] \fR[\fB\-c NUMBER\fR] \fR[\fB\-v NUMBER\fR]
|
\fBinxi \fR[\fB\-AbBCdDfFGhHiIlmMnNopPrRsSuw\fR] \fR[\fB\-c
|
||||||
|
NUMBER\fR] \fR[\fB\-v NUMBER\fR]
|
||||||
|
|
||||||
\fBinxi \fR[\fB\-t \fR(\fBc\fR or\fB m\fR or\fB cm\fR or\fB mc NUMBER\fR)] \fR[\fB\-x \-OPTION\fR(\fBs\fR)] \fR[\fB\-xx \-OPTION\fR(\fBs\fR)] \fR[\fB\-xxx \-OPTION\fR(\fBs\fR)]
|
\fBinxi \fR[\fB\-t \fR(\fBc\fR or\fB m\fR or\fB cm\fR or\fB mc
|
||||||
|
NUMBER\fR)] \fR[\fB\-x \-OPTION\fR(\fBs\fR)] \fR[\fB\-xx
|
||||||
|
\-OPTION\fR(\fBs\fR)] \fR[\fB\-xxx \-OPTION\fR(\fBs\fR)]
|
||||||
|
|
||||||
\fBinxi \fR[\fB\-\-help\fR] \fR[\fB\-\-recommends\fR] \fR[\fB\-\-version\fR] \fR[\fB\-@ NUMBER\fR]
|
\fBinxi \fR[\fB\-\-help\fR] \fR[\fB\-\-recommends\fR]
|
||||||
|
\fR[\fB\-\-version\fR] \fR[\fB\-@ NUMBER\fR]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
\fBinxi\fR is a command line system information script built for for console and IRC. It is also used for forum technical support, as a debugging tool, to quickly ascertain user system configuration and hardware. inxi shows system
|
\fBinxi\fR is a command line system information script built for for console
|
||||||
hardware, CPU, drivers, Xorg, Desktop, Kernel, GCC version(s), Processes, RAM usage, and a wide variety of other
|
and IRC. It is also used for forum technical support, as a debugging tool,
|
||||||
useful information.
|
to quickly ascertain user system configuration and hardware. inxi shows
|
||||||
|
system hardware, CPU, drivers, Xorg, Desktop, Kernel, GCC version(s), Processes,
|
||||||
|
RAM usage, and a wide variety of other useful information.
|
||||||
|
|
||||||
\fBinxi\fR output varies between CLI and IRC, with some default filters and color options applied to IRC use. Script colors can
|
\fBinxi\fR output varies between CLI and IRC, with some default filters and
|
||||||
be turned off if desired with \fB\-c 0\fR, or changed using the \fB\-c\fR color options listed in the OPTIONS section below.
|
color options applied to IRC use. Script colors can be turned off if desired
|
||||||
|
with \fB\-c 0\fR, or changed using the \fB\-c\fR color options listed in the
|
||||||
|
OPTIONS section below.
|
||||||
.SH PRIVACY AND SECURITY
|
.SH PRIVACY AND SECURITY
|
||||||
In order to maintain basic privacy and security, inxi filters out automatically on IRC things like
|
In order to maintain basic privacy and security, inxi filters out automatically
|
||||||
your network card mac address, WAN and LAN IP, your \fB/home\fR username directory in partitions,
|
on IRC things like your network card mac address, WAN and LAN IP, your \fB/home\fR
|
||||||
and a few other things.
|
username directory in partitions, and a few other things.
|
||||||
|
|
||||||
Because inxi is often used on forums for support, you can also trigger this filtering with the \fB\-z\fR
|
Because inxi is often used on forums for support, you can also trigger this
|
||||||
option (\fB\-Fz\fR, for example). To override the IRC filter, you can use the \fB\-Z\fR option. This can be useful
|
filtering with the \fB\-z\fR option (\fB\-Fz\fR, for example). To override
|
||||||
to debug network connection issues online in a private chat, for example.
|
the IRC filter, you can use the \fB\-Z\fR option. This can be useful to debug
|
||||||
|
network connection issues online in a private chat, for example.
|
||||||
.SH USING OPTIONS
|
.SH USING OPTIONS
|
||||||
Options can be combined if they do not conflict. Either group the letters
|
Options can be combined if they do not conflict. Either group the letters
|
||||||
together or separate them.
|
together or separate them.
|
||||||
|
|
||||||
Letters with numbers can have no gap or a gap at your discretion unless using \fB \-t\fR.
|
Letters with numbers can have no gap or a gap at your discretion unless using
|
||||||
|
\fB \-t\fR.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
.B inxi
|
.B inxi
|
||||||
|
@ -44,20 +54,21 @@ Shows basic output, short form (previously \fB\-d\fR). Same as: \fBinxi \-v 2\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-B
|
.B \-B
|
||||||
Shows Battery data, charge, condition, plus extra information (if battery present).
|
Shows Battery data, charge, condition, plus extra information (if battery present).
|
||||||
Uses \fB/sys\fR or for BSDs, \fBdmidecode\fR. \fBdmidecode\fR does not have very much information,
|
Uses \fB/sys\fR or for BSDs, \fBdmidecode\fR. \fBdmidecode\fR does not have very
|
||||||
and none about current battery state/charge/voltage. Supports multiple batteries
|
much information, and none about current battery state/charge/voltage. Supports
|
||||||
when using \fB/sys\fR data.
|
multiple batteries when using \fB/sys\fR data.
|
||||||
|
|
||||||
Note on the \fBcharge\fR item, the output shows the current charge, and the percent of
|
Note on the \fBcharge\fR item, the output shows the current charge, and the
|
||||||
the available capacity, which can be less than the original design capacity. In the
|
percent of the available capacity, which can be less than the original design
|
||||||
following example, the actual current capacity of the battery is \fB22.2 Wh\fR,
|
capacity. In the following example, the actual current capacity of the battery
|
||||||
so the charge shows what percent of the current capacity is charged.
|
is \fB22.2 Wh\fR, so the charge shows what percent of the current capacity
|
||||||
|
is charged.
|
||||||
|
|
||||||
For example: \fB20.1 Wh 95.4%\fR
|
For example: \fB20.1 Wh 95.4%\fR
|
||||||
|
|
||||||
The \fBcondition\fR item shows the current available capacity / original design capacity,
|
The \fBcondition\fR item shows the current available capacity / original design
|
||||||
then the percentage of original capacity available in the battery. In the following
|
capacity, then the percentage of original capacity available in the battery.
|
||||||
example, the battery capacity is only 61% of it's original amount.
|
In the following example, the battery capacity is only 61% of it's original amount.
|
||||||
|
|
||||||
For example: \fB22.2/36.4 Wh 61%\fR
|
For example: \fB22.2/36.4 Wh 61%\fR
|
||||||
.TP
|
.TP
|
||||||
|
@ -97,23 +108,25 @@ Konversation etc.
|
||||||
Setting specific color type removes the global color selection.
|
Setting specific color type removes the global color selection.
|
||||||
.TP
|
.TP
|
||||||
.B \-C
|
.B \-C
|
||||||
Show full CPU output, including per CPU clockspeed and CPU max speed (if available). If max speed data
|
Show full CPU output, including per CPU clockspeed and CPU max speed (if available).
|
||||||
present, shows \fB(max)\fR in short output formats (\fB\inxi\fR, \fB\inxi \-b\fR) if CPU actual speed
|
If max speed data present, shows \fB(max)\fR in short output formats (\fB\inxi\fR,
|
||||||
matches CPU max speed. If CPU max speed does not match CPU actual speed, shows both actual and max speed
|
\fB\inxi \-b\fR) if CPU actual speed matches CPU max speed. If CPU max speed does
|
||||||
information. See \fB\-x\fR and \fB\-xx\fR for more options.
|
not match CPU actual speed, shows both actual and max speed information.
|
||||||
|
See \fB\-x\fR and \fB\-xx\fR for more options.
|
||||||
.TP
|
.TP
|
||||||
.B \-d
|
.B \-d
|
||||||
Shows optical drive data. Same as \fB\-Dd\fR. With \fB\-x\fR, adds features line to output. Also shows
|
Shows optical drive data. Same as \fB\-Dd\fR. With \fB\-x\fR, adds features line to
|
||||||
floppy disks if present. Note that there is no current way to get any information about the floppy device
|
output. Also shows floppy disks if present. Note that there is no current way to get
|
||||||
that I am aware of, so it will simply show the floppy id, without any extra data.
|
any information about the floppy device that I am aware of, so it will simply show the
|
||||||
\fB\-xx\fR adds a few more features.
|
floppy id, without any extra data. \fB\-xx\fR adds a few more features.
|
||||||
.TP
|
.TP
|
||||||
.B \-D
|
.B \-D
|
||||||
Show full hard Disk info, not only model, ie: \fB/dev/sda ST380817AS 80.0GB\fR. Shows disk space
|
Show full hard Disk info, not only model, ie: \fB/dev/sda ST380817AS 80.0GB\fR.
|
||||||
total + used percentage. The disk used percentage includes space used by swap partition(s), since
|
Shows disk space total + used percentage. The disk used percentage includes space
|
||||||
those are not usable for data storage. Note that with RAID disks, the percentage will be wrong
|
used by swap partition(s), since those are not usable for data storage. Note that
|
||||||
since the total is computed from the disk sizes, but the used is computed from mounted partition used
|
with RAID disks, the percentage will be wrong since the total is computed from the
|
||||||
percentages. This small defect may get corrected in the future. Also, unmounted partitions are not
|
disk sizes, but the used is computed from mounted partition used percentages. This
|
||||||
|
small defect may get corrected in the future. Also, unmounted partitions are not
|
||||||
counted in disk use percentages since inxi has no access to that data.
|
counted in disk use percentages since inxi has no access to that data.
|
||||||
.TP
|
.TP
|
||||||
.B \-f
|
.B \-f
|
||||||
|
@ -121,22 +134,29 @@ Show all cpu flags used, not just the short list. Not shown with \fB\-F\fR to av
|
||||||
spamming. ARM cpus: show \fBfeatures\fR items.
|
spamming. ARM cpus: show \fBfeatures\fR items.
|
||||||
.TP
|
.TP
|
||||||
.B \-F
|
.B \-F
|
||||||
Show Full output for inxi. Includes all Upper Case line letters, plus \fB\-s\fR and \fB\-n\fR.
|
Show Full output for inxi. Includes all Upper Case line letters, plus \fB\-s\fR
|
||||||
Does not show extra verbose options like \fB\-d \-f \-l \-m \-o \-p \-r \-t \-u \-x\fR unless you use
|
and \fB\-n\fR. Does not show extra verbose options like
|
||||||
those arguments in the command, like: \fBinxi \-Frmxx\fR
|
\fB\-d \-f \-l \-m \-o \-p \-r \-t \-u \-x\fR unless you use those arguments in
|
||||||
|
the command, like: \fBinxi \-Frmxx\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-G
|
.B \-G
|
||||||
Show Graphic card information. Card(s), Display Server (vendor and version number), for example:
|
Show Graphic card information. Card(s), Display Server (vendor and version number),
|
||||||
\fBDisplay Server: Xorg 1.15.1 \fR
|
for example:
|
||||||
,screen resolution(s), OpenGL renderer, OpenGL core profile version/OpenGL version.
|
|
||||||
|
|
||||||
If detected (currently only available if on a desktop: will attempt to show the server type, ie, x11,
|
\fBDisplay Server: Xorg 1.15.1 \fR
|
||||||
wayland, mir. When xorg is present, its version information will show
|
|
||||||
after the server type in parentheses. Future versions will show compositor information as well.
|
as well as screen resolution(s), OpenGL renderer, OpenGL core profile version/OpenGL
|
||||||
|
version.
|
||||||
|
|
||||||
|
If detected (currently only available if on a desktop: will attempt to show the
|
||||||
|
server type, ie, x11, wayland, mir. When xorg is present, its version information
|
||||||
|
will show after the server type in parentheses. Future versions will show compositor
|
||||||
|
information as well.
|
||||||
.TP
|
.TP
|
||||||
.B \-h
|
.B \-h
|
||||||
The help menu. Features dynamic sizing to fit into terminal window. Set script global \fBCOLS_MAX_CONSOLE\fR
|
The help menu. Features dynamic sizing to fit into terminal window. Set script
|
||||||
if you want a different default value, or use \fB\-y <width>\fR to temporarily override the defaults or actual window width.
|
global \fBCOLS_MAX_CONSOLE\fR if you want a different default value, or
|
||||||
|
use \fB\-y <width>\fR to temporarily override the defaults or actual window width.
|
||||||
.TP
|
.TP
|
||||||
.B \-\-help
|
.B \-\-help
|
||||||
Same as \fB\-h\fR
|
Same as \fB\-h\fR
|
||||||
|
@ -146,42 +166,63 @@ The help menu, plus developer options. Do not use dev options in normal
|
||||||
operation!
|
operation!
|
||||||
.TP
|
.TP
|
||||||
.B \-i
|
.B \-i
|
||||||
Show Wan IP address, and shows local interfaces (requires \fBifconfig\fR or \fBip\fR network tool).
|
Show Wan IP address, and shows local interfaces (requires \fBifconfig\fR or
|
||||||
Same as \-Nni. Not shown with \fB\-F\fR for user security reasons, you shouldn't
|
\fBip\fR network tool). Same as \-Nni. Not shown with \fB\-F\fR for user security
|
||||||
paste your local/wan IP. Shows both IPv4 and IPv6 link IP address.
|
reasons, you shouldn't paste your local/wan IP. Shows both IPv4 and IPv6 link IP
|
||||||
|
address.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-I
|
.B \-I
|
||||||
Show Information: processes, uptime, memory, irc client (or shell type if run in shell, not irc), inxi version.
|
Show Information: processes, uptime, memory, irc client (or shell type if run in
|
||||||
See \fB\-x\fR and \fB\-xx\fR for extra information (init type/version, runlevel).
|
shell, not irc), inxi version. See \fB\-x\fR and \fB\-xx\fR for extra information
|
||||||
|
(init type/version, runlevel).
|
||||||
.TP
|
.TP
|
||||||
.B \-l
|
.B \-l
|
||||||
Show partition labels. Default: short partition \fB\-P\fR. For full \fB\-p\fR output, use: \fB\-pl\fR (or \fB\-plu\fR).
|
Show partition labels. Default: short partition \fB\-P\fR. For full \fB\-p\fR output,
|
||||||
|
use: \fB\-pl\fR (or \fB\-plu\fR).
|
||||||
.TP
|
.TP
|
||||||
.B \-m
|
.B \-m
|
||||||
Memory (RAM) data. Does not show with \fB\-b\fR or \fB\-F\fR unless you use \fB\-m\fR explicitly. Ordered by system board physical system memory array(s) (\fBArray\-[number] capacity:\fR), and individual memory devices (\fBDevice\-[number]\fR). Physical memory array(s) data shows array capacity, and number of devices supported, and Error Correction information. Devices shows locator data (highly variable in syntax), size, speed, type (eg: \fBtype: DDR3\fR).
|
Memory (RAM) data. Does not show with \fB\-b\fR or \fB\-F\fR unless you use \fB\-m\fR
|
||||||
|
explicitly. Ordered by system board physical system memory array(s) (\fBArray\-[number]
|
||||||
|
capacity:\fR), and individual memory devices (\fBDevice\-[number]\fR). Physical memory
|
||||||
|
array(s) data shows array capacity, and number of devices supported, and Error Correction
|
||||||
|
information. Devices shows locator data (highly variable in syntax), size, speed,
|
||||||
|
type (eg: \fBtype: DDR3\fR).
|
||||||
|
|
||||||
Note that \fB\-m\fR uses \fBdmidecode\fR, which must be run as root (or start \fBinxi\fR with \fBsudo\fR), unless you figure out how to set up sudo to permit dmidecode to read \fB/dev/mem\fR as user. Note that speed will not show if \fBNo Module Installed\fR is found in size. This will also turn off Bus Width data output if it is null.
|
Note that \fB\-m\fR uses \fBdmidecode\fR, which must be run as root (or start
|
||||||
|
\fBinxi\fR with \fBsudo\fR), unless you figure out how to set up sudo to permit
|
||||||
|
dmidecode to read \fB/dev/mem\fR as user. Note that speed will not show if \fBNo Module
|
||||||
|
Installed\fR is found in size. This will also turn off Bus Width data output if it is null.
|
||||||
|
|
||||||
If memory information was found, and if the \fB\-I\fR line or the \fB\-tm\fR item have not been triggered,
|
If memory information was found, and if the \fB\-I\fR line or the \fB\-tm\fR item have
|
||||||
will also print the ram used/total.
|
not been triggered, will also print the ram used/total.
|
||||||
|
|
||||||
Because dmidecode data is extremely unreliable, inxi will try to make best guesses. If you see \fB(check)\fR after capacity number, you should check it for sure with specifications. \fB(est)\fR is slightly more reliable, but you should still check the real specifications before buying ram. Unfortunately there is nothing \fBinxi\fR can do to get truly reliable data about the system ram, maybe one day the kernel devs will put this data into \fB/sys\fR, and make it real data, taken from the actual system, not dmi data. For most people, the data will be right, but a significant percentage of users will have either wrong max module size, if present, or max capacity.
|
Because dmidecode data is extremely unreliable, inxi will try to make best guesses.
|
||||||
|
If you see \fB(check)\fR after capacity number, you should check it for sure with
|
||||||
|
specifications. \fB(est)\fR is slightly more reliable, but you should still check
|
||||||
|
the real specifications before buying ram. Unfortunately there is nothing \fBinxi\fR
|
||||||
|
can do to get truly reliable data about the system ram, maybe one day the kernel devs
|
||||||
|
will put this data into \fB/sys\fR, and make it real data, taken from the actual system,
|
||||||
|
not dmi data. For most people, the data will be right, but a significant percentage of
|
||||||
|
users will have either wrong max module size, if present, or max capacity.
|
||||||
.TP
|
.TP
|
||||||
.B \-M
|
.B \-M
|
||||||
Show machine data. Device, Motherboard, Bios, and if present, System Builder (Like Lenovo).
|
Show machine data. Device, Motherboard, Bios, and if present, System Builder (Like Lenovo).
|
||||||
Older systems/kernels without the required \fB/sys\fR data can use dmidecode instead, run as root. If using dmidecode,
|
Older systems/kernels without the required \fB/sys\fR data can use dmidecode instead, run
|
||||||
may also show bios revision as well as version. \fB\-! 33\fR can force use of \fBdmidecode\fR data instead of \fB/sys\fR.
|
as root. If using dmidecode, may also show bios revision as well as version. \fB\-! 33\fR
|
||||||
Will also attempt to show if the system was booted by BIOS, UEFI, or UEFI [Legacy]. The last one is legacy BIOS boot mode
|
can force use of \fBdmidecode\fR data instead of \fB/sys\fR. Will also attempt to show
|
||||||
in a systemboard using UEFI but booted as BIOS/Legacy.
|
if the system was booted by BIOS, UEFI, or UEFI [Legacy]. The last one is legacy BIOS
|
||||||
|
boot mode in a systemboard using UEFI but booted as BIOS/Legacy.
|
||||||
|
|
||||||
Device requires either /sys or dmidecode. Note that 'other\-vm?' is a type that means it's usually a vm, but inxi
|
Device requires either /sys or dmidecode. Note that 'other\-vm?' is a type that means
|
||||||
failed to detect which type, or to positively confirm which vm it is. Primary vm identification is via systemd\-detect\-virt
|
it's usually a vm, but inxi failed to detect which type, or to positively confirm which
|
||||||
but fallback tests that should support some BSDs as well are used. Less commonly used or harder to detect VMs may not
|
vm it is. Primary vm identification is via systemd\-detect\-virt but fallback tests that
|
||||||
be correctly detected, if you get a wrong output, post an issue and we'll get it fixed if possible.
|
should support some BSDs as well are used. Less commonly used or harder to detect VMs
|
||||||
|
may not be correctly detected, if you get a wrong output, post an issue and we'll get it
|
||||||
|
fixed if possible.
|
||||||
|
|
||||||
Due to unreliable vendor data, device will show: desktop; laptop; notebook; server; blade plus some obscure stuff that
|
Due to unreliable vendor data, device will show: desktop; laptop; notebook; server;
|
||||||
inxi is unlikely to ever run on.
|
blade plus some obscure stuff that inxi is unlikely to ever run on.
|
||||||
.TP
|
.TP
|
||||||
.B \-n
|
.B \-n
|
||||||
Show Advanced Network card information. Same as \fB\-Nn\fR. Shows interface, speed,
|
Show Advanced Network card information. Same as \fB\-Nn\fR. Shows interface, speed,
|
||||||
|
@ -204,7 +245,8 @@ Show full partition information (\fB\-P\fR plus all other detected partitions).
|
||||||
.TP
|
.TP
|
||||||
.B \-P
|
.B \-P
|
||||||
Show Partition information (shows what \fB\-v 4\fR would show, but without extra data).
|
Show Partition information (shows what \fB\-v 4\fR would show, but without extra data).
|
||||||
Shows, if detected: \fB/ /boot /home /opt /tmp /usr /var /var/tmp /var/log\fR. Use \fB\-p\fR to see all mounted partitions.
|
Shows, if detected: \fB/ /boot /home /opt /tmp /usr /var /var/tmp /var/log\fR.
|
||||||
|
Use \fB\-p\fR to see all mounted partitions.
|
||||||
.TP
|
.TP
|
||||||
.B \-r
|
.B \-r
|
||||||
Show distro repository data. Currently supported repo types:
|
Show distro repository data. Currently supported repo types:
|
||||||
|
@ -227,58 +269,76 @@ Show distro repository data. Currently supported repo types:
|
||||||
|
|
||||||
\fBYUM/ZYPP\fR (Fedora, Redhat, Suse + derived versions)
|
\fBYUM/ZYPP\fR (Fedora, Redhat, Suse + derived versions)
|
||||||
|
|
||||||
(as distro data is collected more will be added. If your's is missing please show us how to get this
|
(as distro data is collected more will be added. If your's is missing please
|
||||||
information and we'll try to add it.)
|
show us how to get this information and we'll try to add it.)
|
||||||
.TP
|
.TP
|
||||||
.B \-R
|
.B \-R
|
||||||
Show RAID data. Shows RAID devices, states, levels, and components, and extra data with \fB\-x\fR / \fB\-xx\fR.
|
Show RAID data. Shows RAID devices, states, levels, and components, and
|
||||||
|
extra data with \fB\-x\fR / \fB\-xx\fR.
|
||||||
|
|
||||||
md\-raid: If device is resyncing, shows resync progress line as well.
|
md\-raid: If device is resyncing, shows resync progress line as well.
|
||||||
|
|
||||||
|
Note: Only md\-raid and ZFS are supported. Other software raid types could
|
||||||
|
be added, but only if users supply all data required, and if the software
|
||||||
|
raid actually can be made to give the required output.
|
||||||
|
|
||||||
|
Note: due to the complexity, only one raid type per system is supported.
|
||||||
|
Md\-raid overrides ZFS if no ZFS was found.
|
||||||
.TP
|
.TP
|
||||||
.B \-\-recommends
|
.B \-\-recommends
|
||||||
Checks inxi application dependencies + recommends, and directories, then shows
|
Checks inxi application dependencies + recommends, and directories, then shows
|
||||||
what package(s) you need to install to add support for that feature.
|
what package(s) you need to install to add support for that feature.
|
||||||
.TP
|
.TP
|
||||||
.B \-s
|
.B \-s
|
||||||
Show sensors output (if sensors installed/configured): mobo/cpu/gpu temp; detected
|
Show sensors output (if sensors installed/configured): mobo/cpu/gpu temp;
|
||||||
fan speeds. Gpu temp only for Fglrx/Nvidia drivers. Nvidia shows screen number for > 1 screens.
|
detected fan speeds. Gpu temp only for Fglrx/Nvidia drivers. Nvidia shows
|
||||||
|
screen number for > 1 screens.
|
||||||
.TP
|
.TP
|
||||||
.B \-S
|
.B \-S
|
||||||
Show System information: host name, kernel, desktop environment (if in X), distro. With \fB\-xx\fR show
|
Show System information: host name, kernel, desktop environment (if in X),
|
||||||
dm \- or startx \- (only shows if present and running if out of X), and if in X, with \fB\-xxx\fR show more desktop info, like shell/panel etc.
|
distro. With \fB\-xx\fR show dm \- or startx \- (only shows if present and
|
||||||
|
running if out of X), and if in X, with \fB\-xxx\fR show more desktop info,
|
||||||
|
like shell/panel etc.
|
||||||
.TP
|
.TP
|
||||||
.B \-t
|
.B \-t
|
||||||
\fR[\fBc\fR or\fB m\fR or\fB cm\fR or\fB mc NUMBER\fR]\fR
|
\fR[\fBc\fR or\fB m\fR or\fB cm\fR or\fB mc NUMBER\fR]\fR
|
||||||
Show processes. If followed by numbers \fB1\-20\fR, shows that number of processes for each type
|
Show processes. If followed by numbers \fB1\-20\fR, shows that number of
|
||||||
(default: \fB5\fR; if in irc, max: \fB5\fR)
|
processes for each type (default: \fB5\fR; if in irc, max: \fB5\fR)
|
||||||
|
|
||||||
Make sure to have no space between letters and numbers (\fB\-t cm10\fR \- right, \fB\-t cm 10\fR \- wrong).
|
Make sure to have no space between letters and numbers (\fB\-t cm10\fR
|
||||||
|
\- right, \fB\-t cm 10\fR \- wrong).
|
||||||
.TP
|
.TP
|
||||||
.B \-t c\fR
|
.B \-t c\fR
|
||||||
\- cpu only. With \fB\-x\fR, shows also memory for that process on same line.
|
\- cpu only. With \fB\-x\fR, shows also memory for that process on same line.
|
||||||
.TP
|
.TP
|
||||||
.B \-t m\fR
|
.B \-t m\fR
|
||||||
\- memory only. With \fB\-x\fR, shows also cpu for that process on same line. If the \-I line is not triggered,
|
\- memory only. With \fB\-x\fR, shows also cpu for that process on same line.
|
||||||
will also show the system used/total ram information in the first \fBMemory\fR line of output.
|
If the \-I line is not triggered, will also show the system used/total ram
|
||||||
|
information in the first \fBMemory\fR line of output.
|
||||||
.TP
|
.TP
|
||||||
.B \-t cm\fR
|
.B \-t cm\fR
|
||||||
\- cpu+memory. With \fB\-x\fR, shows also cpu or memory for that process on same line.
|
\- cpu+memory. With \fB\-x\fR, shows also cpu or memory for that process on
|
||||||
|
same line.
|
||||||
.TP
|
.TP
|
||||||
.B \-u
|
.B \-u
|
||||||
Show partition UUIDs. Default: short partition \fB\-P\fR. For full \fB\-p\fR output, use: \fB\-pu\fR (or \fB\-plu\fR).
|
Show partition UUIDs. Default: short partition \fB\-P\fR. For full \fB\-p\fR
|
||||||
|
output, use: \fB\-pu\fR (or \fB\-plu\fR).
|
||||||
.TP
|
.TP
|
||||||
.B \-U
|
.B \-U
|
||||||
Note \- Maintainer may have disabled this function.
|
Note \- Maintainer may have disabled this function.
|
||||||
|
|
||||||
If inxi \fB\-h\fR has no listing for \fB\-U\fR then it's disabled.
|
If inxi \fB\-h\fR has no listing for \fB\-U\fR then it's disabled.
|
||||||
|
|
||||||
Auto\-update script. Note: if you installed as root, you must be root to update,
|
Auto\-update script. Note: if you installed as root, you must be root to
|
||||||
otherwise user is fine. Also installs / updates this Man Page to: \fB/usr/local/share/man/man1\fR
|
update, otherwise user is fine. Also installs / updates this Man Page to:
|
||||||
(if \fB/usr/local/share/man/\fR exists AND there is no inxi man page in \fB/usr/share/man/man1\fR,
|
\fB/usr/local/share/man/man1\fR (if \fB/usr/local/share/man/\fR exists
|
||||||
otherwise it goes to \fB/usr/share/man/man1\fR)
|
AND there is no inxi man page in \fB/usr/share/man/man1\fR, otherwise it
|
||||||
This requires that you be root to write to that directory.
|
goes to \fB/usr/share/man/man1\fR). This requires that you be root to write
|
||||||
|
to that directory.
|
||||||
|
|
||||||
Previous versions of inxi manually installed man page were installed to \fB/usr/share/man/man1\fR. If
|
Previous versions of inxi manually installed man page were installed to
|
||||||
you want the man page to go into \fB/usr/local/share/man/man1\fR move it there and inxi will update to
|
\fB/usr/share/man/man1\fR. If you want the man page to go into
|
||||||
|
\fB/usr/local/share/man/man1\fR move it there and inxi will update to
|
||||||
that path from then on.
|
that path from then on.
|
||||||
.TP
|
.TP
|
||||||
.B \-V
|
.B \-V
|
||||||
|
@ -288,7 +348,8 @@ inxi version information. Prints information then exits.
|
||||||
same as \fB\-V\fR
|
same as \fB\-V\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
Script verbosity levels. Verbosity level number is required. Should not be used with \fB\-b\fR or \fB\-F\fR.
|
Script verbosity levels. Verbosity level number is required. Should not be
|
||||||
|
used with \fB\-b\fR or \fB\-F\fR.
|
||||||
|
|
||||||
Supported levels: \fB0\-7\fR Examples :\fB inxi \-v 4 \fR or \fB inxi \-v4\fR
|
Supported levels: \fB0\-7\fR Examples :\fB inxi \-v 4 \fR or \fB inxi \-v4\fR
|
||||||
.TP
|
.TP
|
||||||
|
@ -296,66 +357,82 @@ Supported levels: \fB0\-7\fR Examples :\fB inxi \-v 4 \fR or \fB inxi \-v4\fR
|
||||||
\- Short output, same as: \fBinxi\fR
|
\- Short output, same as: \fBinxi\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-v 1
|
.B \-v 1
|
||||||
\- Basic verbose, \fB\-S\fR + basic CPU (cores, model, clock speed, and max speed, if available)
|
\- Basic verbose, \fB\-S\fR + basic CPU (cores, model, clock speed, and max
|
||||||
+ \fB\-G\fR + basic Disk + \fB\-I\fR.
|
speed, if available) + \fB\-G\fR + basic Disk + \fB\-I\fR.
|
||||||
.TP
|
.TP
|
||||||
.B \-v 2
|
.B \-v 2
|
||||||
\- Adds networking card (\fB\-N\fR), Machine (\fB\-M\fR) data, Battery (\fB\-B\fR) (if available), and shows basic hard disk data
|
\- Adds networking card (\fB\-N\fR), Machine (\fB\-M\fR) data, Battery (\fB\-B\fR)
|
||||||
(names only). Same as: \fBinxi \-b\fR
|
(if available), and shows basic hard disk data (names only). Same as: \fBinxi \-b\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-v 3
|
.B \-v 3
|
||||||
\- Adds advanced CPU (\fB\-C\fR); network (\fB\-n\fR) data; triggers \fB\-x\fR advanced data option.
|
\- Adds advanced CPU (\fB\-C\fR); network (\fB\-n\fR) data; triggers \fB\-x\fR
|
||||||
|
advanced data option.
|
||||||
.TP
|
.TP
|
||||||
.B \-v 4
|
.B \-v 4
|
||||||
\- Adds partition size/filled data (\fB\-P\fR) for (if present):\fB/ /home /var/ /boot\fR
|
\- Adds partition size/filled data (\fB\-P\fR) for (if present):
|
||||||
Shows full disk data (\fB\-D\fR)
|
\fB/ /home /var/ /boot\fR Shows full disk data (\fB\-D\fR)
|
||||||
.TP
|
.TP
|
||||||
.B \-v 5
|
.B \-v 5
|
||||||
\- Adds audio card (\fB\-A\fR); memory/ram (\fB\-m\fR);sensors (\fB\-s\fR), partition label (\fB\-l\fR) and UUID (\fB\-u\fR), short form of
|
\- Adds audio card (\fB\-A\fR); memory/ram (\fB\-m\fR);sensors (\fB\-s\fR),
|
||||||
|
partition label (\fB\-l\fR) and UUID (\fB\-u\fR), short form of
|
||||||
optical drives.
|
optical drives.
|
||||||
.TP
|
.TP
|
||||||
.B \-v 6
|
.B \-v 6
|
||||||
\- Adds full partition data (\fB\-p\fR), unmounted partition data (\fB\-o\fR), optical drive data (\fB\-d\fR);
|
\- Adds full partition data (\fB\-p\fR), unmounted partition data (\fB\-o\fR),
|
||||||
triggers \fB\-xx\fR extra data option.
|
optical drive data (\fB\-d\fR); triggers \fB\-xx\fR extra data option.
|
||||||
.TP
|
.TP
|
||||||
.B \-v 7
|
.B \-v 7
|
||||||
\- Adds network IP data (\fB\-i\fR); triggers \fB\-xxx\fR
|
\- Adds network IP data (\fB\-i\fR); triggers \fB\-xxx\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-w
|
.B \-w
|
||||||
Adds weather line. Note, this depends on an unreliable api so it may not always be working in the future.
|
Adds weather line. Note, this depends on an unreliable api so it may not always
|
||||||
To get weather for an alternate location, use \fB\-W <location_string>\fR. See also \fB\-x\fR, \fB\-xx\fR, \fB\-xxx\fR option.
|
be working in the future. To get weather for an alternate location, use
|
||||||
Please note, your distribution's maintainer may chose to disable this feature, so if \fB\-w\fR or \fB\-W\fR don't work, that's why.
|
\fB\-W <location_string>\fR. See also \fB\-x\fR, \fB\-xx\fR, \fB\-xxx\fR option.
|
||||||
|
Please note, your distribution's maintainer may chose to disable this feature,
|
||||||
|
so if \fB\-w\fR or \fB\-W\fR don't work, that's why.
|
||||||
.TP
|
.TP
|
||||||
.B \-W <location_string>
|
.B \-W <location_string>
|
||||||
Get weather/time for an alternate location. Accepts postal/zip code, city,state pair, or latitude,longitude.
|
Get weather/time for an alternate location. Accepts postal/zip code,
|
||||||
Note: city/country/state names must not contain spaces. Replace spaces with '\fB+\fR' sign. No spaces around \fB,\fR (comma).
|
city,state pair, or latitude,longitude. Note: city/country/state names must not
|
||||||
|
contain spaces. Replace spaces with '\fB+\fR' sign. No spaces around \fB,\fR (comma).
|
||||||
Use only ascii letters in city/state/country names, sorry.
|
Use only ascii letters in city/state/country names, sorry.
|
||||||
|
|
||||||
Examples: \fB\-W 95623\fR OR \fB\-W Boston,MA\fR OR \fB\-W45.5234,\-122.6762\fR OR \fB\-W new+york,ny\fR
|
Examples: \fB\-W 95623\fR OR \fB\-W Boston,MA\fR OR \fB\-W45.5234,\-122.6762\fR
|
||||||
OR \fB\-W bodo,norway\fR.
|
OR \fB\-W new+york,ny\fR OR \fB\-W bodo,norway\fR.
|
||||||
.TP
|
.TP
|
||||||
.B \-y <integer >= 80>
|
.B \-y <integer >= 80>
|
||||||
This is an absolute width override which sets the output line width max. Overrides \fBCOLS_MAX_IRC\fR / \fBCOLS_MAX_CONSOLE\fR globals, or the actual widths of the terminal. If used with \fB\-h\fR or \fB\-c 94\-99\fR, put \fB\-y\fR option first or the override will be ignored. Cannot be used with \fB\-\-help\fR/\fB\-\-version\fR/\fB\-\-recommends\fR type long options. Example: \fBinxi \-y 130 \-Fxx\fR
|
This is an absolute width override which sets the output line width max.
|
||||||
|
Overrides \fBCOLS_MAX_IRC\fR / \fBCOLS_MAX_CONSOLE\fR globals, or the
|
||||||
|
actual widths of the terminal. If used with \fB\-h\fR or \fB\-c 94\-99\fR,
|
||||||
|
put \fB\-y\fR option first or the override will be ignored. Cannot be
|
||||||
|
used with \fB\-\-help\fR/\fB\-\-version\fR/\fB\-\-recommends\fR type
|
||||||
|
long options. Example: \fBinxi \-y 130 \-Fxx\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-z
|
.B \-z
|
||||||
Adds security filters for IP addresses, Mac, location (\fB\-w\fR), and user home directory name. Default on for irc clients.
|
Adds security filters for IP addresses, Mac, location (\fB\-w\fR), and user
|
||||||
|
home directory name. Default on for irc clients.
|
||||||
.TP
|
.TP
|
||||||
.B \-Z
|
.B \-Z
|
||||||
Absolute override for output filters. Useful for debugging networking issues in irc for example.
|
Absolute override for output filters. Useful for debugging networking
|
||||||
|
issues in irc for example.
|
||||||
.SH EXTRA DATA OPTIONS
|
.SH EXTRA DATA OPTIONS
|
||||||
These options are for long form only, and can be triggered by one or more \fB\-x\fR, like \fB\-xx\fR.
|
These options are for long form only, and can be triggered by one or
|
||||||
Alternately, the \fB\-v\fR options trigger them in the following way:
|
more \fB\-x\fR, like \fB\-xx\fR. Alternately, the \fB\-v\fR options
|
||||||
\fB\-v 3\fR adds \fB\-x\fR; \fB\-v 6\fR adds \fB\-xx\fR; \fB\-v 7\fR adds \fB\-xxx\fR
|
trigger them in the following way: \fB\-v 3\fR adds \fB\-x\fR;
|
||||||
|
\fB\-v 6\fR adds \fB\-xx\fR; \fB\-v 7\fR adds \fB\-xxx\fR
|
||||||
|
|
||||||
These extra data triggers can be useful for getting more in\-depth data on various options.
|
These extra data triggers can be useful for getting more in\-depth
|
||||||
Can be added to any long form option list, like: \fB\-bxx\fR or \fB\-Sxxx\fR
|
data on various options. Can be added to any long form option list,
|
||||||
|
like: \fB\-bxx\fR or \fB\-Sxxx\fR
|
||||||
|
|
||||||
There are 3 extra data levels: \fB\-x\fR; \fB\-xx\fR; and \fB\-xxx\fR
|
There are 3 extra data levels: \fB\-x\fR; \fB\-xx\fR; and \fB\-xxx\fR
|
||||||
|
|
||||||
The following shows which lines / items get extra information with each extra data level.
|
The following shows which lines / items get extra information with each
|
||||||
|
extra data level.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-A
|
.B \-x \-A
|
||||||
\- Adds version/port(s)/driver version (if available) for each Audio device.
|
\- Adds version/port(s)/driver version (if available) for each Audio
|
||||||
|
device.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-A
|
.B \-x \-A
|
||||||
\- Shows PCI Bus ID/Usb ID number of each Audio device.
|
\- Shows PCI Bus ID/Usb ID number of each Audio device.
|
||||||
|
@ -367,17 +444,19 @@ The following shows which lines / items get extra information with each extra da
|
||||||
\- bogomips on CPU (if available); CPU Flags (short list).
|
\- bogomips on CPU (if available); CPU Flags (short list).
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-C
|
.B \-x \-C
|
||||||
\- CPU microarchitecture + revision (like Sandy Bridge, K8, ARMv8, P6, and so on). Only shows if detected. Newer
|
\- CPU microarchitecture + revision (like Sandy Bridge, K8, ARMv8, P6,
|
||||||
microarchitectures will have to be added as they appear, and require the CPU family id and model id.
|
and so on). Only shows if detected. Newer microarchitectures will have
|
||||||
|
to be added as they appear, and require the CPU family id and model id.
|
||||||
|
|
||||||
Example: \fBarch: Sandy Bridge rev.2\fR, \fBarch: K8 rev.F+\fR
|
Example: \fBarch: Sandy Bridge rev.2\fR, \fBarch: K8 rev.F+\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-d
|
.B \-x \-d
|
||||||
\- Adds items to features line of optical drive; adds rev version to optical drive.
|
\- Adds items to features line of optical drive; adds rev version to
|
||||||
|
optical drive.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-D
|
.B \-x \-D
|
||||||
\- Hdd temp with disk data if you have hddtemp installed, if you are root OR if you have added to
|
\- Hdd temp with disk data if you have hddtemp installed, if you are root
|
||||||
\fB/etc/sudoers\fR (sudo v. 1.7 or newer):
|
OR if you have added to \fB/etc/sudoers\fR (sudo v. 1.7 or newer):
|
||||||
|
|
||||||
.B <username> ALL = NOPASSWD: /usr/sbin/hddtemp (sample)
|
.B <username> ALL = NOPASSWD: /usr/sbin/hddtemp (sample)
|
||||||
|
|
||||||
|
@ -392,42 +471,53 @@ Example: \fBarch: Sandy Bridge rev.2\fR, \fBarch: K8 rev.F+\fR
|
||||||
\- Shows PCI Bus ID/Usb ID number of each Graphics card.
|
\- Shows PCI Bus ID/Usb ID number of each Graphics card.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-i
|
.B \-x \-i
|
||||||
\- Show IP v6 additional scope data, like Global, Site, Temporary for each interface.
|
\- Show IP v6 additional scope data, like Global, Site, Temporary for
|
||||||
|
each interface.
|
||||||
|
|
||||||
Note that there is no way I am aware of to filter out the deprecated IP v6 scope site/global
|
Note that there is no way I am aware of to filter out the deprecated
|
||||||
temporary addresses from the output of \fBifconfig\fR. \fBip\fR tool shows that clearly.
|
IP v6 scope site/global temporary addresses from the output of
|
||||||
|
\fBifconfig\fR. \fBip\fR tool shows that clearly.
|
||||||
|
|
||||||
\fBip\-v6\-temporary\fR \- (\fBip\fR tool only), scope global temporary. Scope global temporary deprecated is not shown
|
\fBip\-v6\-temporary\fR \- (\fBip\fR tool only), scope global temporary.
|
||||||
|
Scope global temporary deprecated is not shown
|
||||||
|
|
||||||
\fBip\-v6\-global\fR \- scope global (\fBifconfig\fR will show this for all types, global, global temporary,
|
\fBip\-v6\-global\fR \- scope global (\fBifconfig\fR will show this for
|
||||||
and global temporary deprecated, \fBip\fR shows it only for global)
|
all types, global, global temporary, and global temporary deprecated,
|
||||||
|
\fBip\fR shows it only for global)
|
||||||
|
|
||||||
\fBip\-v6\-link\fR \- scope link (\fBip\fR/\fBifconfig\fR) \- default for \fB\-i\fR.
|
\fBip\-v6\-link\fR \- scope link (\fBip\fR/\fBifconfig\fR) \- default
|
||||||
|
for \fB\-i\fR.
|
||||||
|
|
||||||
\fBip\-v6\-site\fR \- scope site (\fBip\fR/\fBifconfig\fR). This has been deprecated in IPv6, but still exists.
|
\fBip\-v6\-site\fR \- scope site (\fBip\fR/\fBifconfig\fR). This has been
|
||||||
\fBifconfig\fR may show multiple site values, as with global temporary, and
|
deprecated in IPv6, but still exists. \fBifconfig\fR may show multiple site
|
||||||
global temporary deprecated.
|
values, as with global temporary, and global temporary deprecated.
|
||||||
|
|
||||||
\fBip\-v6\-unknown\fR \- unknown scope
|
\fBip\-v6\-unknown\fR \- unknown scope
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-I
|
.B \-x \-I
|
||||||
\- Show current init system (and init rc in some cases, like OpenRC). With \-xx, shows init/rc
|
\- Show current init system (and init rc in some cases, like OpenRC).
|
||||||
version number, if available.
|
With \-xx, shows init/rc version number, if available.
|
||||||
.B \-x \-I
|
.B \-x \-I
|
||||||
\- Show system GCC, default. With \-xx, also show other installed GCC versions.
|
\- Show system GCC, default. With \-xx, also show other installed GCC
|
||||||
|
versions.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-I
|
.B \-x \-I
|
||||||
\- Show current runlevel (not available with all init systems).
|
\- Show current runlevel (not available with all init systems).
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-I
|
.B \-x \-I
|
||||||
\- If in shell (not in IRC client, that is), show shell version number (if available).
|
\- If in shell (not in IRC client, that is), show shell version number
|
||||||
|
(if available).
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-m
|
.B \-x \-m
|
||||||
\- Shows memory device Part Number (\fBpart:\fR). Useful to order new or replacement memory sticks etc. Usually part numbers are unique, particularly if you use the word \fBmemory\fR in the search as well. With \fB\-xx\fR, shows Serial Number and Manufactorer as well.
|
\- Shows memory device Part Number (\fBpart:\fR). Useful to order new or
|
||||||
|
replacement memory sticks etc. Usually part numbers are unique, particularly
|
||||||
|
if you use the word \fBmemory\fR in the search as well. With \fB\-xx\fR,
|
||||||
|
shows Serial Number and Manufactorer as well.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-m
|
.B \-x \-m
|
||||||
\- If present, shows maximum memory module/device size in the Array line. Only some systems will have this data available.
|
\- If present, shows maximum memory module/device size in the Array line.
|
||||||
|
Only some systems will have this data available.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-N
|
.B \-x \-N
|
||||||
\- Adds version/port(s)/driver version (if available) for each Network card;
|
\- Adds version/port(s)/driver version (if available) for each Network card;
|
||||||
|
@ -436,20 +526,24 @@ version number, if available.
|
||||||
\- Shows PCI Bus ID/Usb ID number of each Network card.
|
\- Shows PCI Bus ID/Usb ID number of each Network card.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-R
|
.B \-x \-R
|
||||||
\- md\-raid: Shows component raid id. Adds second RAID Info line: raid level; report on drives
|
\- md\-raid: Shows component raid id. Adds second RAID Info line: raid level;
|
||||||
(like 5/5); blocks; chunk size; bitmap (if present). Resync line, shows blocks synced/total blocks.
|
report on drives (like 5/5); blocks; chunk size; bitmap (if present). Resync
|
||||||
|
line, shows blocks synced/total blocks.
|
||||||
|
|
||||||
\- zfs\-raid: Shows raid array full size; available size; portion allocated to RAID (ie, not available as storage)."
|
\- zfs\-raid: Shows raid array full size; available size; portion allocated
|
||||||
|
to RAID (ie, not available as storage)."
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-S
|
.B \-x \-S
|
||||||
\- Desktop toolkit if available (GNOME/XFCE/KDE only); Kernel gcc version.
|
\- Desktop toolkit if available (GNOME/XFCE/KDE only); Kernel gcc version.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-t
|
.B \-x \-t
|
||||||
\- Adds memory use output to cpu (\fB\-xt c\fR), and cpu use to memory (\fB\-xt m\fR). For \fB\-xt c\fR will also show
|
\- Adds memory use output to cpu (\fB\-xt c\fR), and cpu use to memory
|
||||||
system Used/Total ram data if \fB\-t m\fR (memory) is not used AND \fB\-I\fR is not triggered.
|
(\fB\-xt m\fR). For \fB\-xt c\fR will also show system Used/Total ram data
|
||||||
|
if \fB\-t m\fR (memory) is not used AND \fB\-I\fR is not triggered.
|
||||||
.TP
|
.TP
|
||||||
.B \-x \-w / \-W
|
.B \-x \-w / \-W
|
||||||
\- Adds wind speed and time zone (\fB\-w\fR only), and makes output go to two lines.
|
\- Adds wind speed and time zone (\fB\-w\fR only), and makes output go to
|
||||||
|
two lines.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-A
|
.B \-xx \-A
|
||||||
\- Adds vendor:product ID of each Audio device.
|
\- Adds vendor:product ID of each Audio device.
|
||||||
|
@ -457,7 +551,8 @@ system Used/Total ram data if \fB\-t m\fR (memory) is not used AND \fB\-I\fR is
|
||||||
.B \-xx \-B
|
.B \-xx \-B
|
||||||
\- Adds serial number, voltage (if available).
|
\- Adds serial number, voltage (if available).
|
||||||
|
|
||||||
Note that \fBvolts\fR shows the data (if available) as: Voltage Now / Minimum Design Voltage
|
Note that \fBvolts\fR shows the data (if available) as: Voltage Now / Minimum
|
||||||
|
Design Voltage
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-C
|
.B \-xx \-C
|
||||||
\- Shows Minimum CPU speed (if available).
|
\- Shows Minimum CPU speed (if available).
|
||||||
|
@ -475,8 +570,9 @@ Note that \fBvolts\fR shows the data (if available) as: Voltage Now / Minimum De
|
||||||
\- Wayland/Mir only: if found, attempts to show compositor (experimental).
|
\- Wayland/Mir only: if found, attempts to show compositor (experimental).
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-G
|
.B \-xx \-G
|
||||||
\- For free drivers, adds OpenGL compatibility version number if it's available. For nonfree drivers,
|
\- For free drivers, adds OpenGL compatibility version number if it's available.
|
||||||
the core version and compatibility versions are the same. Example:
|
For nonfree drivers, the core version and compatibility versions are the same.
|
||||||
|
Example:
|
||||||
|
|
||||||
\fB3.3 Mesa 11.2.0 (compat\-v: 3.0)\fR
|
\fB3.3 Mesa 11.2.0 (compat\-v: 3.0)\fR
|
||||||
.TP
|
.TP
|
||||||
|
@ -487,33 +583,38 @@ the core version and compatibility versions are the same. Example:
|
||||||
\- Adds other detected installed gcc versions to primary gcc output (if present).
|
\- Adds other detected installed gcc versions to primary gcc output (if present).
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-I
|
.B \-xx \-I
|
||||||
\- Show, if detected, system default runlevel. Supports Systemd/Upstart/Sysvinit type defaults. Note that
|
\- Show, if detected, system default runlevel. Supports Systemd/Upstart/Sysvinit
|
||||||
not all systemd systems have the default value set, in that case, if present, it will use the data from
|
type defaults. Note that not all systemd systems have the default value set, in
|
||||||
\fB/etc/inittab\fR.
|
that case, if present, it will use the data from \fB/etc/inittab\fR.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-I
|
.B \-xx \-I
|
||||||
\- Adds parent program (or tty) that started shell, if not IRC client, to shell information.
|
\- Adds parent program (or tty) that started shell, if not IRC client, to shell
|
||||||
|
information.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-m
|
.B \-xx \-m
|
||||||
\- Shows memory device Manufacturer and Serial Number.
|
\- Shows memory device Manufacturer and Serial Number.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-m
|
.B \-xx \-m
|
||||||
\- Single/double bank memory, if data is found. Note, this may not be 100% right all of the time since it depends on the order that data is found in \fBdmidecode\fR output for \fBtype 6\fR and \fBtype 17\fR.
|
\- Single/double bank memory, if data is found. Note, this may not be 100% right
|
||||||
|
all of the time since it depends on the order that data is found in \fBdmidecode\fR
|
||||||
|
output for \fBtype 6\fR and \fBtype 17\fR.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-M
|
.B \-xx \-M
|
||||||
\- Adds chassis information, if any data for that is available. Also shows BIOS rom size if using dmidecode.
|
\- Adds chassis information, if any data for that is available. Also shows BIOS
|
||||||
|
rom size if using dmidecode.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-N
|
.B \-xx \-N
|
||||||
\- Adds vendor:product ID of each Network card.
|
\- Adds vendor:product ID of each Network card.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-R
|
.B \-xx \-R
|
||||||
\- md\-raid: Adds superblock (if present); algorythm, U data. Adds system info line (kernel support,
|
\- md\-raid: Adds superblock (if present); algorythm, U data. Adds system info
|
||||||
read ahead, raid events). Adds if present, unused device line. If device is resyncing, shows
|
sline (kernel support, read ahead, raid events). Adds if present, unused device
|
||||||
resync progress line as well.
|
line. If device is resyncing, shows resync progress line as well.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-S
|
.B \-xx \-S
|
||||||
\- Adds, if run in X, display manager type to Desktop information, if present. If none, shows N/A.
|
\- Adds, if run in X, display manager type to Desktop information, if present.
|
||||||
Supports most known display managers, like xdm, gdm, kdm, slim, lightdm, or mdm.
|
If none, shows N/A. Supports most known display managers, like xdm, gdm, kdm,
|
||||||
|
slim, lightdm, or mdm.
|
||||||
.TP
|
.TP
|
||||||
.B \-xx \-w / \-W
|
.B \-xx \-w / \-W
|
||||||
\- Adds humidity and barometric pressure.
|
\- Adds humidity and barometric pressure.
|
||||||
|
@ -522,22 +623,29 @@ Supports most known display managers, like xdm, gdm, kdm, slim, lightdm, or mdm.
|
||||||
\- Automatically uploads debugger data tar.gz file to \fIftp.techpatterns.com\fR.
|
\- Automatically uploads debugger data tar.gz file to \fIftp.techpatterns.com\fR.
|
||||||
.TP
|
.TP
|
||||||
.B \-xxx \-B
|
.B \-xxx \-B
|
||||||
\- Adds battery chemistry (like: \fBLi\-ion\fR), cycles (NOTE: there appears to be a problem with the Linux kernel
|
\- Adds battery chemistry (like: \fBLi\-ion\fR), cycles (NOTE: there appears to
|
||||||
obtaining the cycle count, so this almost always shows \fB0\fR. There's nothing that can be done about this glitch, the
|
be a problem with the Linux kernel obtaining the cycle count, so this almost
|
||||||
data is simply not available as of 2016\-04\-18), location (only available from dmidecode derived output).
|
always shows \fB0\fR. There's nothing that can be done about this glitch, the
|
||||||
|
data is simply not available as of 2016\-04\-18), location (only available from
|
||||||
|
dmidecode derived output).
|
||||||
.TP
|
.TP
|
||||||
.B \-xxx \-m
|
.B \-xxx \-m
|
||||||
\- Memory bus width: primary bus width, and if present, total width. eg: bus width: 64 bit (total: 72 bits). Note that total / data widths are mixed up sometimes in dmidecode output, so inxi will take the larger value as total if present. If no total width data is found, then inxi will not show that item.
|
\- Memory bus width: primary bus width, and if present, total width. eg:
|
||||||
|
bus width: 64 bit (total: 72 bits). Note that total / data widths are mixed up
|
||||||
|
sometimes in dmidecode output, so inxi will take the larger value as total if
|
||||||
|
present. If no total width data is found, then inxi will not show that item.
|
||||||
.TP
|
.TP
|
||||||
.B \-xxx \-m
|
.B \-xxx \-m
|
||||||
\- Adds device Type Detail, eg: DDR3 (Synchronous).
|
\- Adds device Type Detail, eg: DDR3 (Synchronous).
|
||||||
.TP
|
.TP
|
||||||
.B \-xxx \-m
|
.B \-xxx \-m
|
||||||
\- If present, will add memory module voltage. Only some systems will have this data available.
|
\- If present, will add memory module voltage. Only some systems will have this
|
||||||
|
data available.
|
||||||
.TP
|
.TP
|
||||||
.B \-xxx \-S
|
.B \-xxx \-S
|
||||||
\- Adds, if run in X, shell/panel type info to Desktop information, if present. If none, shows nothing.
|
\- Adds, if run in X, shell/panel type info to Desktop information, if present.
|
||||||
Supports some current desktop extras like gnome\-panel, lxde\-panel, and others. Added mainly for Mint support.
|
If none, shows nothing. Supports some current desktop extras like gnome\-panel,
|
||||||
|
lxde\-panel, and others. Added mainly for Mint support.
|
||||||
.TP
|
.TP
|
||||||
.B \-xxx \-w / \-W
|
.B \-xxx \-w / \-W
|
||||||
\- Adds location (city state country), weather observation time, altitude of system.
|
\- Adds location (city state country), weather observation time, altitude of system.
|
||||||
|
@ -545,43 +653,70 @@ If wind chill, heat index, or dew point are available, shows that data as well.
|
||||||
.SH ADVANCED OPTIONS
|
.SH ADVANCED OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.B \-! 31
|
.B \-! 31
|
||||||
Turns off hostname in System line. Useful, with \fB\-z\fR, for anonymizing your inxi output for posting on
|
Turns off hostname in System line. Useful, with \fB\-z\fR, for anonymizing your
|
||||||
forums or IRC.
|
inxi output for posting on forums or IRC.
|
||||||
.TP
|
.TP
|
||||||
.B \-! 32
|
.B \-! 32
|
||||||
Turns on hostname in System line. Overrides inxi config file value (if set): B_SHOW_HOST='false'.
|
Turns on hostname in System line. Overrides inxi config file value (if set):
|
||||||
|
B_SHOW_HOST='false'.
|
||||||
.TP
|
.TP
|
||||||
.B \-! 33
|
.B \-! 33
|
||||||
Force use of \fBdmidecode\fR. This will override \fB/sys\fR data in some lines, like \fB\-M\fR.
|
Force use of \fBdmidecode\fR. This will override \fB/sys\fR data in some lines,
|
||||||
|
like \fB\-M\fR.
|
||||||
.TP
|
.TP
|
||||||
.B \-! 34
|
.B \-! 34
|
||||||
Skip SSL certificate checks for all downloader actions (\fB\-U\fR, \fB\-w\fR, \fB\-W\fR, \fB\-i\fR).
|
Skip SSL certificate checks for all downloader actions (\fB\-U\fR, \fB\-w\fR,
|
||||||
Use if your system does not have current SSL certificate lists, or if you have problems making a connection for
|
\fB\-W\fR, \fB\-i\fR). Use if your system does not have current SSL certificate
|
||||||
any reason. Only works with \fBwget\fR, \fBcurl\fR, and \fBfetch\fR. This must go before the other options you use.
|
lists, or if you have problems making a connection for any reason. Only works
|
||||||
|
with \fBwget\fR, \fBcurl\fR, and \fBfetch\fR. This must go before the other
|
||||||
|
options you use.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-! 40
|
.B \-! 40
|
||||||
Will try to get display data out of X (does not usually work as root user).
|
Will try to get display data out of X (does not usually work as root user).
|
||||||
Default gets display info from display \fB:0\fR. If you use this format: \fB\-! 40:1\fR it
|
Default gets display info from display \fB:0\fR. If you use this format:
|
||||||
would get it from display \fB1\fR instead, or any display you specify
|
\fB\-! 40:1\fR it would get it from display \fB1\fR instead, or any display
|
||||||
as long as there is no space between \fB\-! 40\fR and the \fB:[display id]\fR.
|
you specify as long as there is no space between \fB\-! 40\fR and the
|
||||||
|
\fB:[display id]\fR.
|
||||||
|
|
||||||
Note that in some cases, \fB\-! 40\fR will cause inxi to hang endlessly when running the option
|
Note that in some cases, \fB\-! 40\fR will cause inxi to hang endlessly when
|
||||||
in console with Intel graphics (confirmed). Other free drivers like nouveau/ati unknown yet.
|
running the option in console with Intel graphics (confirmed). Other free
|
||||||
It may be that this is a bug with the intel graphics driver, more information required.
|
drivers like nouveau/ati unknown yet. It may be that this is a bug with the
|
||||||
|
intel graphics driver, more information required.
|
||||||
|
|
||||||
You can test this easily by running this command out of X/display server: \fBglxinfo -display :0\fR
|
You can test this easily by running this command out of X/display server:
|
||||||
|
\fBglxinfo -display :0\fR
|
||||||
|
|
||||||
If it hangs, \fB\-! 40\fR will not work.
|
If it hangs, \fB\-! 40\fR will not work.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B \-! 41
|
||||||
|
Bypass \fBCurl\fR as a downloader option. Priority is: Curl, Wget, Fetch,
|
||||||
|
HTTP::Tiny, OpenBSD only: ftp
|
||||||
|
|
||||||
|
.B \-! 42
|
||||||
|
Bypass \fBFetch\fR as a downloader option.Priority is: Curl, Wget, Fetch,
|
||||||
|
HTTP::Tiny, OpenBSD only: ftp
|
||||||
|
|
||||||
|
.B \-! 43
|
||||||
|
Bypass \fBWget\fR as a downloader option. Priority is: Curl, Wget, Fetch,
|
||||||
|
HTTP::Tiny, OpenBSD only: ftp
|
||||||
|
|
||||||
|
.B \-! 44
|
||||||
|
Bypass \fBCurl\fR, \fBFetch\fR, and \fBWget\fR as downloader options. This
|
||||||
|
basically forces the downloader selection to use \fBPerl 5.x\fR \fBHTTP::Tiny\fR,
|
||||||
|
which is in general slower than \fBCurl\fR or \fBWget\fR but it may help bypass
|
||||||
|
issues with downloading.
|
||||||
|
|
||||||
.SH DEBUGGING OPTIONS
|
.SH DEBUGGING OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.B \-%
|
.B \-%
|
||||||
Overrides defective or corrupted data.
|
Overrides defective or corrupted data.
|
||||||
.TP
|
.TP
|
||||||
.B \-@
|
.B \-@
|
||||||
Triggers debugger output. Requires debugging level \fB1\-14\fR (\fB8\-10\fR \- logging of data).
|
Triggers debugger output. Requires debugging level \fB1\-14\fR
|
||||||
Less than 8 just triggers inxi debugger output on screen.
|
(\fB8\-10\fR \- logging of data). Less than 8 just triggers inxi
|
||||||
|
debugger output on screen.
|
||||||
.TP
|
.TP
|
||||||
.B \-@
|
.B \-@
|
||||||
\fR[\fB1\fR\-\fB7\fR] \- On screen debugger output.
|
\fR[\fB1\fR\-\fB7\fR] \- On screen debugger output.
|
||||||
|
@ -596,8 +731,9 @@ Less than 8 just triggers inxi debugger output on screen.
|
||||||
\- Color logging.
|
\- Color logging.
|
||||||
.TP
|
.TP
|
||||||
.B \-@ <11\-14>
|
.B \-@ <11\-14>
|
||||||
The following create a tar.gz file of system data, plus collecting the inxi output to file:
|
The following create a tar.gz file of system data, plus collecting
|
||||||
To automatically upload debugger data tar.gz file to \fIftp.techpatterns.com\fR:
|
the inxi output to file: To automatically upload debugger data
|
||||||
|
tar.gz file to \fIftp.techpatterns.com\fR:
|
||||||
|
|
||||||
\fBinxi \-xx@ <11\-14>\fR
|
\fBinxi \-xx@ <11\-14>\fR
|
||||||
|
|
||||||
|
@ -607,27 +743,31 @@ For alternate ftp upload locations: Example:
|
||||||
\fIftp.yourserver.com/incoming\fB \-xx@ 14\fR
|
\fIftp.yourserver.com/incoming\fB \-xx@ 14\fR
|
||||||
.TP
|
.TP
|
||||||
.B \-@ 11
|
.B \-@ 11
|
||||||
\- With tree traversal data file read of \fB/sys\fR
|
\- With tree traversal data file read of \fB/sys\fR, and other system
|
||||||
|
data.
|
||||||
.TP
|
.TP
|
||||||
.B \-@ 12
|
.B \-@ 12
|
||||||
\- With xorg conf and log data, xrandr, xprop, xdpyinfo, glxinfo etc.
|
\- With xorg conf and log data, xrandr, xprop, xdpyinfo, glxinfo etc.
|
||||||
.TP
|
.TP
|
||||||
.B \-@ 13
|
.B \-@ 13
|
||||||
\- With data from dev, disks, partitions, etc., plus thes tree traversal data file read of \fB/sys\fR.
|
\- With data from dev, disks, partitions, etc.
|
||||||
.TP
|
.TP
|
||||||
.B \-@ 14
|
.B \-@ 14
|
||||||
\- Everything, full data collection.
|
\- Everything, full data collection.
|
||||||
.SH SUPPORTED IRC CLIENTS
|
.SH SUPPORTED IRC CLIENTS
|
||||||
BitchX, Gaim/Pidgin, ircII, Irssi, Konversation, Kopete, KSirc, KVIrc, Weechat, and Xchat. Plus any others that
|
BitchX, Gaim/Pidgin, ircII, Irssi, Konversation, Kopete, KSirc, KVIrc, Weechat,
|
||||||
are capable of displaying either built in or external script output.
|
and Xchat. Plus any others that are capable of displaying either built in or external
|
||||||
|
script output.
|
||||||
.SH RUNNING IN IRC CLIENT
|
.SH RUNNING IN IRC CLIENT
|
||||||
To trigger inxi output in your IRC client, pick the appropriate method from the list below:
|
To trigger inxi output in your IRC client, pick the appropriate method from the
|
||||||
|
list below:
|
||||||
.TP
|
.TP
|
||||||
.B Xchat, irssi
|
.B Xchat, irssi
|
||||||
\fR(and many other IRC clients)
|
\fR(and many other IRC clients)
|
||||||
.B /exec \-o inxi
|
.B /exec \-o inxi
|
||||||
\fR[\fBoptions\fR]
|
\fR[\fBoptions\fR]
|
||||||
If you leave off the \fB\-o\fR, only you will see the output on your local IRC client.
|
If you leave off the \fB\-o\fR, only you will see the output on your local
|
||||||
|
IRC client.
|
||||||
.TP
|
.TP
|
||||||
.B Konversation
|
.B Konversation
|
||||||
.B /cmd inxi
|
.B /cmd inxi
|
||||||
|
@ -641,10 +781,11 @@ the second for KDE 5]:
|
||||||
|
|
||||||
.B ln \-s /usr/local/bin/inxi /usr/share/konversation/scripts/inxi
|
.B ln \-s /usr/local/bin/inxi /usr/share/konversation/scripts/inxi
|
||||||
|
|
||||||
If inxi is somewhere else, change the path \fB/usr/local/bin\fR to wherever it is located.
|
If inxi is somewhere else, change the path \fB/usr/local/bin\fR to wherever it
|
||||||
|
is located.
|
||||||
|
|
||||||
If you are using KDE/QT 5, then you may also need to add the following to get the konversation
|
If you are using KDE/QT 5, then you may also need to add the following to get
|
||||||
\fR/inxi\fR command to work:
|
the konversation \fR/inxi\fR command to work:
|
||||||
|
|
||||||
.B ln \-s /usr/share/konversation /usr/share/apps/
|
.B ln \-s /usr/share/konversation /usr/share/apps/
|
||||||
|
|
||||||
|
@ -660,9 +801,10 @@ Then you can start inxi directly, like this:
|
||||||
.B OLD: /shell \-o inxi
|
.B OLD: /shell \-o inxi
|
||||||
\fR[\fBoptions\fR]
|
\fR[\fBoptions\fR]
|
||||||
|
|
||||||
Newer (2014 and later) WeeChats work pretty much the same now as other console IRC
|
Newer (2014 and later) WeeChats work pretty much the same now as other console
|
||||||
clients, with \fB/exec \-o inxi \fR[\fBoptions\fR]. Also, newer WeeChats have dropped
|
IRC clients, with \fB/exec \-o inxi \fR[\fBoptions\fR]. Also, newer WeeChats
|
||||||
the \fB\-curses\fR part of their program name, ie: \fBweechat\fR instead of \fBweechat\-curses\fR.
|
have dropped the \fB\-curses\fR part of their program name, ie:
|
||||||
|
\fBweechat\fR instead of \fBweechat\-curses\fR.
|
||||||
|
|
||||||
Deprecated:
|
Deprecated:
|
||||||
|
|
||||||
|
@ -678,26 +820,31 @@ Make the script executable by
|
||||||
|
|
||||||
.B chmod +x shell.py
|
.B chmod +x shell.py
|
||||||
|
|
||||||
Move it to your home folder: \fB/.weechat/python/autoload/\fR then logout, and start WeeChat with
|
Move it to your home folder: \fB/.weechat/python/autoload/\fR then logout,
|
||||||
|
and start WeeChat with
|
||||||
|
|
||||||
.B weechat\-curses
|
.B weechat\-curses
|
||||||
|
|
||||||
Top of screen should say what pythons scripts have loaded, and should include shell. Then to run inxi,
|
Top of screen should say what pythons scripts have loaded, and should include
|
||||||
you would enter a command like this:
|
shell. Then to run inxi, you would enter a command like this:
|
||||||
|
|
||||||
.B /shell \-o inxi \-bx
|
.B /shell \-o inxi \-bx
|
||||||
|
|
||||||
If you leave off the \fB\-o\fR, only you will see the output on your local weechat. WeeChat
|
If you leave off the \fB\-o\fR, only you will see the output on your local
|
||||||
users may also like to check out the weeget.py
|
weechat. WeeChat users may also like to check out the weeget.py
|
||||||
.SH INITIALIZATION FILE
|
.SH INITIALIZATION FILE
|
||||||
inxi will read the following configuration/initialization files in the following order:
|
inxi will read the following configuration/initialization files in the
|
||||||
|
following order:
|
||||||
|
|
||||||
\fB/etc/inxi.conf\fR is the default configurations. These can be overridden by user configurations
|
\fB/etc/inxi.conf\fR is the default configurations. These can be overridden
|
||||||
found in one of the following locations (inxi will place its config file using the following precedence
|
by user configurations found in one of the following locations (inxi will
|
||||||
as well, that is, if \fB$XDG_CONFIG_HOME\fR is not empty, it will go there, else if \fB$HOME/.conf/inxi.conf\fR
|
place its config file using the following precedence as well, that is,
|
||||||
exists, it will go there, and as a last default, the legacy location is used:
|
if \fB$XDG_CONFIG_HOME\fR is not empty, it will go there, else if
|
||||||
|
\fB$HOME/.conf/inxi.conf\fR exists, it will go there, and as a last default,
|
||||||
|
the legacy location is used:
|
||||||
|
|
||||||
\fB$XDG_CONFIG_HOME/inxi.conf\fR or \fB$HOME/.conf/inxi.conf\fR or \fB$HOME/.inxi/inxi.conf\fR
|
\fB$XDG_CONFIG_HOME/inxi.conf\fR or \fB$HOME/.conf/inxi.conf\fR or
|
||||||
|
\fB$HOME/.inxi/inxi.conf\fR
|
||||||
|
|
||||||
See wiki pages for more information on how to set these up:
|
See wiki pages for more information on how to set these up:
|
||||||
.TP
|
.TP
|
||||||
|
@ -742,23 +889,26 @@ Steven Barrett (aka: damentz) \- usb audio patch; swap percent used patch.
|
||||||
|
|
||||||
Jarett.Stevens \- dmidecode \-M patch for older systems with no /sys
|
Jarett.Stevens \- dmidecode \-M patch for older systems with no /sys
|
||||||
|
|
||||||
And a special thanks to the nice people at irc.oftc.net channels #linux\-smokers\-club and #smxi,
|
And a special thanks to the nice people at irc.oftc.net channels
|
||||||
who all really have to be considered to be co\-developers because of their non\-stop enthusiasm
|
#linux\-smokers\-club and #smxi, who all really have to be considered to
|
||||||
and willingness to provide real time testing and debugging of inxi development.
|
be co\-developers because of their non\-stop enthusiasm and willingness to
|
||||||
|
provide real time testing and debugging of inxi development.
|
||||||
|
|
||||||
A further thanks to the Siduction forum members, who have helped get some features
|
A further thanks to the Siduction forum members, who have helped get some
|
||||||
working by providing a lot of datasets that revealed possible variations, particularly
|
features working by providing a lot of datasets that revealed possible variations,
|
||||||
for the ram \fB\-m\fR option.
|
particularly for the ram \fB\-m\fR option.
|
||||||
|
|
||||||
Further thanks to the various inxi package maintainers, distro support people, forum
|
Further thanks to the various inxi package maintainers, distro support people,
|
||||||
moderators, and in particular, sys admins with their particular issues, which almost always
|
forum moderators, and in particular, sys admins with their particular issues,
|
||||||
help make inxi better, and any others who contribute ideas, suggestions, and patches.
|
which almost always help make inxi better, and any others who contribute ideas,
|
||||||
|
suggestions, and patches.
|
||||||
|
|
||||||
Without a wide range of diverse Linux kernel based Free Desktop systems to test on, we could
|
Without a wide range of diverse Linux kernel based Free Desktop systems to test
|
||||||
never have gotten inxi to be as reliable and solid as it's turning out to be.
|
on, we could never have gotten inxi to be as reliable and solid as it's turning
|
||||||
|
out to be.
|
||||||
|
|
||||||
And of course, big thanks locsmif, who figured out a lot of the core methods, logic,
|
And of course, big thanks locsmif, who figured out a lot of the core methods,
|
||||||
and tricks used in inxi.
|
logic, and tricks used in inxi.
|
||||||
|
|
||||||
This Man page was originally created by Gordon Spencer (aka aus9) and is maintained by
|
This Man page was originally created by Gordon Spencer (aka aus9) and is
|
||||||
Harald Hope (aka h2 or TechAdmin).
|
maintained by Harald Hope (aka h2 or TechAdmin).
|
||||||
|
|
|
@ -1,3 +1,48 @@
|
||||||
|
=====================================================================================
|
||||||
|
Version: 2.3.49
|
||||||
|
Patch Version: 00
|
||||||
|
Script Date: 2017-11-28
|
||||||
|
-----------------------------------
|
||||||
|
Changes:
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
New version, new tarball, new man page. This is the first attempt to correct an
|
||||||
|
issue a forum poster raised, which is the fact that despite the fact that GNU/Linux
|
||||||
|
has had reasonably ok zfs support for years now, inxi only tested for zfs on bsd
|
||||||
|
systems.
|
||||||
|
|
||||||
|
This has been corrected. Due to the complexity of handling software raid, inxi
|
||||||
|
will now test first for ZFS data, if none is found, it will then test for
|
||||||
|
/proc/mdstat.
|
||||||
|
|
||||||
|
In a perfect world I'd like to have full dynamic Raid support, but I'm missing
|
||||||
|
all the key ingredients required to add that:
|
||||||
|
|
||||||
|
1. systems to test on
|
||||||
|
2. software raid, I don't use it
|
||||||
|
3. data collection for non mdraid and zfs software raid, including the values
|
||||||
|
possible to gather from all non software raid.
|
||||||
|
|
||||||
|
Basically, the only way I'd extend -R raid option is if I get direct ssh access to
|
||||||
|
a machine that uses the alternate software raid type, otherwise it would take
|
||||||
|
forever to figure out the options.
|
||||||
|
|
||||||
|
Since the number of people who might be actually running zfs and mdraid and
|
||||||
|
using inxi probably numbers in the 10 globally, I figured this solution was a fine
|
||||||
|
way to handle adding zfs without messing up mdraid, which is more common on linux.
|
||||||
|
|
||||||
|
It also does not break BSDs, since bsds as far as I know don't use mdraid, and don't
|
||||||
|
have /proc/mdraid in the first place.
|
||||||
|
|
||||||
|
Also redid the man page to add -! 41, -! 42, -! 43, -! 44 options, which bypass
|
||||||
|
curl, fetch, wget, and all of them, respectively. Plus making the lines less wide.
|
||||||
|
|
||||||
|
That should make those people who actually use 80 column wide vi as an editor
|
||||||
|
happy, lol.
|
||||||
|
|
||||||
|
-----------------------------------
|
||||||
|
-- Harald Hope - Tue, 28 Nov 2017 17:17:00 -0800
|
||||||
|
|
||||||
=====================================================================================
|
=====================================================================================
|
||||||
Version: 2.3.48
|
Version: 2.3.48
|
||||||
Patch Version: 00
|
Patch Version: 00
|
||||||
|
|
Loading…
Reference in a new issue