getInfo 2.18.2

This commit is contained in:
kyodev 2017-10-26 07:05:22 +02:00
parent bd8c60d521
commit 988b36f8f8
3 changed files with 689 additions and 13 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
version=2.18.1
version=2.18.2
date="26/10/2017"
projet="simpledeb"
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
@ -314,6 +314,7 @@ f_display(){ # 25/10/2017
[[ "$2" == "sans" || "$2" == "var" || "$2" == "cmd" ]] || display="erreur script \$2 ($1 $2 $3)"
[ "$2" == "var" ] && display="**$3** \n"
[ "$2" == "cmd" ] && display="\`$3\` \n"
#echo $(sed -En 's/[^/]*(\/.*)$/\1/p' <<< "$3")
[[ "$2" == "cmd" && "$4" ]] && display="\`$3\` **$4** \n"
display+='``` \n'
display+="${!1} \n"
@ -321,6 +322,11 @@ f_display(){ # 25/10/2017
echo -en "$display \n" >> "$fileOutput" # flush fonction
}
# $1 fichier testé
f_display_file(){ # 26/10/2017
echo -e "* fichier **$1** non trouvé ou absent \n" >> "$fileOutput"
}
# $1 répertoire à scanner, $2 profondeur
f_display_scandir(){ # 21/10/2017
[ "$text" ] && echo -e "$text" >> "$fileOutput" # flush avant fonction
@ -669,14 +675,14 @@ fi_journal(){ # 25/10/2017
unset text
}
fi_locale(){ # 25/10/2017
fi_locale(){ # 26/10/2017
local locale localectl timezone timedatectl
local xKeyboardMap keyboard alert_Rtc alert_Rtc_info alert_NTP alert_Ntp_info text
# locale
locale="$(grep -Esv '#|^$' /etc/default/locale* /etc/locale.conf)"
[ "$(f__cmd_exist localectl)" ] && localectl=$(localectl --no-pager status)
# timezone
timezone="$(grep -s . /etc/timezone)"
timezone="$(grep -Hs . /etc/timezone)"
if [ "$(f__cmd_exist timedatectl)" ]; then
timedatectl="$(timedatectl status --no-pager)"
grep -q 'RTC in local TZ: yes' <<< "$timedatectl" && alert_Rtc="Attention RTC in local TZ"
@ -697,16 +703,16 @@ et/ou installer le démon Ntp: apt install ntp \n"
[ "$locale" ] && f_display "locale" "cmd" "grep -Esv '#|^$' /etc/default/locale* /etc/locale.conf"
[ "$localectl" ] && f_display "localectl" "cmd" "localectl --no-pager status"
# timezone
f_display "timezone" "cmd" "grep -s . /etc/timezone*"
f_display "timezone" "cmd" "grep -Hs . /etc/timezone*"
[ "$timezone" ] && f_display "timezone" "cmd" "grep -Hs . /etc/timezone*"
[ "$timezone" ] || f_display_file "/etc/timezone*"
[ "$timedatectl" ] && f_display "timedatectl" "cmd" "timedatectl status --no-pager"
[ "$alert_Rtc" ] && text+="$alert_Rtc_info \n"
[ "$alert_Ntp" ] && text+="$alert_Ntp_info \n"
# keyboard layout
[ "$keyboard" ] && f_display "keyboard" "cmd" "grep -Ev '#|^$' /etc/default/keyboard"
[ "$keyboard" ] || f_display_file "/etc/default/keyboard"
[ "$xKeyboardMap" ] && f_display "xKeyboardMap" "cmd" "setxkbmap -query"
# else
# text+="**pas d'informations détectées** \n\n"
# fi
printf "$text\n" >> "$fileOutput"
unset text
}
@ -758,15 +764,17 @@ fi_mem(){ # 25/10/2017
unset text
}
fi_nm(){ # 25/10/2017
fi_nm(){ # 26/10/2017
[ "$(f__cmd_exist nmcli)" ] || return 0
local nm_etat nm_conf text
nm_etat="$(grep -Ev '#|^$' /var/lib/NetworkManager/NetworkManager.state)"
nm_conf="$(grep -Ev '#|^$' /etc/NetworkManager/NetworkManager.conf)"
###
text="## NetworkManager \n\n"
f_display "nm_etat" "cmd" "grep -Ev '#|^$' /var/lib/NetworkManager/NetworkManager.state"
f_display "nm_conf" "cmd" "grep -Ev '#|^$' /etc/NetworkManager/NetworkManager.conf"
[ "$nm_etat" ] && f_display "nm_etat" "cmd" "grep -Ev '#|^$' /var/lib/NetworkManager/NetworkManager.state"
[ "$nm_etat" ] || f_display_file "/var/lib/NetworkManager/NetworkManager.state"
[ "$nm_conf" ] && f_display "nm_conf" "cmd" "grep -Ev '#|^$' /etc/NetworkManager/NetworkManager.conf"
[ "$nm_conf" ] || f_display_file "/etc/NetworkManager/NetworkManager.conf"
printf "$text\n" >> "$fileOutput"
unset text
}
@ -2138,7 +2146,7 @@ for j in $options; do
case $j in
-t | --test )
prg_1 "$*"
fi_graph
fi_locale
prg_3
exit ;; # test seulement
-c* | all )

View File

@ -0,0 +1,668 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<script src="/cdn-cgi/apps/head/sBN10ynu9QxQ0zZ3w6dHQn-E_D4.js"></script><link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css' />
<link href="/static/css/bootstrap.min.5c7070ef655a.css" rel="stylesheet" />
<link href="/static/css/style.0e456dc7a0d9.css" rel="stylesheet" />
<link href="/static/css/monokai.d36fde5c9268.css" rel="stylesheet" />
<title>
getInfo_2.17.0 - Pastery
</title>
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="getInfo_2.17.0" />
<meta property="og:url" content="https://www.pastery.net/vyajzs/" />
<meta property="og:image" content="https://www.pastery.net/static/images/icons/favicon-32x32.7771d435f2d0.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/static/images/icons/apple-touch-icon.0926d8b47fbb.png">
<link rel="icon" type="image/png" href="/static/images/icons/favicon-32x32.7771d435f2d0.png" sizes="32x32">
<link rel="icon" type="image/png" href="/static/images/icons/favicon-16x16.0b51eaa79c70.png" sizes="16x16">
<link rel="manifest" href="/static/images/icons/manifest.0251c9857092.json">
<link rel="mask-icon" href="/static/images/icons/safari-pinned-tab.eda0ce5cc527.svg" color="#5bbad5">
<link rel="shortcut icon" href="/static/images/icons/favicon.fff8155146c1.ico">
<meta name="msapplication-config" content="/static/images/icons/browserconfig.374a2c448998.xml">
<meta name="theme-color" content="#cc1b1b">
<link rel="alternate" type="application/json+oembed" href="https://www.pastery.net/oembed/?format=json&url=https%3A//www.pastery.net/vyajzs/" title="Pastery oEmbed Goodness" />
</head>
<body class="page-paste">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51110-26', 'auto');
ga('send', 'pageview');
</script>
<header class="top-header clearfix">
<div class="container">
<h1><a tabindex="-1" href="/" title="Pastery">Pastery</a></h1>
<div class="persona">
<a class="burger-button" id="burger" href="javascript:void(0);" title="Toggle toolbar">
<span></span>
<span></span>
<span></span>
</a>
<a data-next="/vyajzs/" class="login dark" href="/login/">Login</a>
</div>
</div>
</header>
<div class="paste">
<div class="container">
<header class="clearfix">
<div class="btn-group button-container" id="copy-code">
<div class="btn-group admin-parent dropdown-parent" role="group">
<a type="button" data-toggle="tooltip" aria-label="Clone" title="Clone" class="btn btn-default btn-sm dropdown-toggle admin-button" href="/?clone=vyajzs" type="button"><span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span></a>
<div class="dropdown-menu pseudo-dropdown">Clone</div>
</div>
<div class="btn-group dropdown-parent" role="group">
<a type="button" aria-label="Copy to clipboard" title="Copy to clipboard" class="btn btn-default btn-sm dropdown-toggle copy-clipboard" href="javascript:void(0);" type="button"><span class="glyphicon glyphicon-copy" aria-hidden="true"></span></a>
<div class="dropdown-menu pseudo-dropdown">
<div class="btn-group">Copy to clipboard</div>
</div>
</div>
<div class="btn-group dropdown-parent" role="group">
<button data-raw type="button" aria-label="Raw" title="Raw" class="btn btn-default btn-sm dropdown-toggle" type="button" data-placement="tooltip" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span> <span class="caret"></span>
</button>
<div class="dropdown-menu dropdown-menu-right">
<div class="btn-group">
<input data-container-raw title="Copied!" type="text" value="" readonly="" />
</div>
<div class="btn-group action-copy">
<button data-trigger="hover" data-toggle="tooltip" title="Copy to clipboard" aria-label="Copy to clipboard" class="btn btn-default btn-sm" type="button"><span class="glyphicon glyphicon-copy" aria-hidden="true"></span></button>
</div>
</div>
</div>
<div class="btn-group dropdown-parent" role="group">
<button type="button" aria-label="Embed" title="Embed" class="btn btn-default btn-sm dropdown-toggle" type="button" data-placement="tooltip" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-share" aria-hidden="true"></span> <span class="caret"></span>
</button>
<div class="dropdown-menu dropdown-menu-right">
<div class="btn-group">
<input title="Copied!" type="text" value="<script>(function(d, s, id) {var js, pastejs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src ='https://www.pastery.net/static/js/embed.js';pastejs.parentNode.insertBefore(js, pastejs);}(document, 'script', 'pastery-jssdk'));</script>&#13;&#10;<div class='paste-list' data-pasteid='vyajzs'></div>
" readonly="" />
</div>
<div class="btn-group action-copy">
<button data-trigger="hover" data-toggle="tooltip" title="Copy to clipboard" aria-label="Copy to clipboard" class="btn btn-default btn-sm" type="button"><span class="glyphicon glyphicon-copy" aria-hidden="true"></span></button>
</div>
</div>
</div>
<div class="btn-group dropdown-parent" role="group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" aria-label="Link" title="Link" type="button" data-placement="tooltip" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-link" aria-hidden="true"></span> <span class="caret"></span>
</button>
<div class="dropdown-menu dropdown-menu-right">
<div class="btn-group">
<input data-placement="top" title="Copied!" type="text" value="https://www.pastery.net/vyajzs/" readonly="" />
</div>
<div class="btn-group action-copy">
<button data-trigger="hover" data-toggle="tooltip" title="Copy to clipboard" aria-label="Copy to clipboard" class="btn btn-default btn-sm" type="button"><span class="glyphicon glyphicon-copy" aria-hidden="true"></span></button>
</div>
</div>
</div>
</div>
<h1 class="tabs">
<a href="javascript:void(0);" aria-label="Tab 1 vyajzs" class="tab active" data-tab="vyajzs">getInfo_2.17.0</a>
<a href="javascript:void(0);" aria-label="Add another paste" title="Add another paste" class="tab plus">+</a>
</h1>
<span class="tab-arrow left glyphicon glyphicon-arrow-left" aria-hidden="true" data-arrow="-1"></span>
<span class="tab-arrow right glyphicon glyphicon-arrow-right" aria-hidden="true" data-arrow="1"></span>
</header>
</div>
<div data-pasteid="vyajzs" data-language="Markdown" data-expires="Expires in 6 jours, 23 heures" data-rawurl="https://www.pastery.net/vyajzs/raw/" aria-hidden="false" class="pretty-paste markdown-language">
<blockquote>
<p><strong>getInfo</strong> sur localhost.localdomain </p>
</blockquote>
<p>Rapport du 25/10/2017 13:12 +0200 | ./getInfo | <a href="https://frama.link/doc-getInfo" rel="nofollow">getInfo 2.17.0</a> </p>
<h1>Système et matériel</h1>
<h2>système</h2>
<blockquote>
<p><strong>produit: Dell Inc. Inspiron 5548 A02 (8) <br>
board: Dell Inc. 079JDM A00 <br>
bios: Dell Inc. A02 12/04/2014 </strong> </p>
</blockquote>
<ul>
<li>CPU <ul>
<li><strong>1 x Intel Core i7-5500U (2cores, 4threads) {0.50/2.39/3.00GHz} microcode:0x25</strong> </li>
</ul>
</li>
<li>GPU <ul>
<li><strong>Intel Corporation HD Graphics 5500</strong></li>
<li><strong>Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265]</strong> </li>
</ul>
</li>
<li>boot <strong>EFI</strong> </li>
<li>distribution <strong> (non déterminée)</strong> </li>
</ul>
<pre><code>architecture: 64bits, amd64
uname: 4.13.8-300.fc27.x86_64 x86_64 GNU/Linux
BOOT_IMAGE=/vmlinuz-4.13.8-300.fc27.x86_64
root=UUID=b950baf5-3029-42f6-8c1b-c0759c1d8c43
ro
rootflags=subvol=root
rhgb
quiet
démon d'initialisation: systemd
serveur d'affichage: wayland
résolution:
desktop (DE): Gnome
window manager:
shell actif: bash 4.4.12(1)
shells installés: sh bash /sbin/nologin /usrsh /usrbash /usr/sbin/nologin /usrzsh zsh
espace des partitions fixes montées (total, utilisé, dispo): 104Go 7,1Go 97Go
1 alimentation, 0 branchée
1 batterie présente:
BAT1: SANYO (DELL R0JM64BQ) Li-ion 4 180mAh - 10.80V / 11.29V (mini/actuel) n° série: 0898
dernier boot: 25/10/2017 13:10 +0200, uptime: depuis 1 mn
charge système depuis les 1, 5 et 15 dernières minutes: 1.02 0.40 0.15
</code></pre>
<h2>processeur</h2>
<pre><code>1 x Intel Core i7-5500U (2cores, 4threads) {0.50/2.39/3.00GHz} microcode:0x25
{fréq. mini/nominale/maxi} GenuineIntel famille 6, modèle 61, révision 4
39b physique, 48b virtuel, bogomips: 4793, cache: 4096ko
</code></pre>
<p><strong>flags cpu:</strong> </p>
<pre><code>fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts
</code></pre>
<h2>mémoire</h2>
<pre><code>mém.: totale utilisée disponible
ram : 7.7Go 1.3Go 6.1Go
swap: 7.8Go 0ko 7.8Go
swappiness: 60
</code></pre>
<h2>hardware monitor ACPI</h2>
<pre><code>coretemp 38.0/38.0/37.0°C Package.id.0 Core.0 Core.1 (crit: 105.0°C) (maxi: 105.0°C)
</code></pre>
<h2>batterie</h2>
<pre><code>BAT1: SANYO (DELL R0JM64BQ) Li-ion 4 180mAh - 10.80V / 11.29V (mini/actuel) n° série: 0898
pleine charge effective: 3 187mAh, pleine charge théorique: 4 180mAh =&gt; 76.2% (indicateur)
en décharge, reste approximativement: 1 h 12 mn (consommation en cours: 1883mA, charge actuelle: 2 530mAh)
</code></pre>
<h2>graphisme</h2>
<blockquote>
<ul>
<li><strong>Intel Corporation HD Graphics 5500</strong></li>
<li><strong>Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265]</strong> </li>
</ul>
</blockquote>
<p><strong>résolution: </strong> </p>
<p><code>lspci -nnv | grep -iEA 13 'vga|display|3d</code> </p>
<pre><code>00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Dell Device [1028:0695]
Flags: bus master, fast devsel, latency 0, IRQ 49
Memory at d0000000 (64-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915
Kernel modules: i915
04:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265] [1002:6604] (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel driver in use: radeon
Kernel modules: radeon
</code></pre>
<h3>modules video</h3>
<p><strong>liste non garantie complète</strong> </p>
<pre><code>uvcvideo 90112 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 40960 2 uvcvideo,videobuf2_v4l2
videodev 176128 3 uvcvideo,videobuf2_core,videobuf2_v4l2
media 40960 2 uvcvideo,videodev
i915 1798144 25
radeon 1470464 0
i2c_algo_bit 16384 2 radeon,i915
drm_kms_helper 159744 2 radeon,i915
ttm 94208 1 radeon
drm 352256 27 radeon,i915,ttm,drm_kms_helper
video 40960 3 dell_wmi,dell_laptop,i915
</code></pre>
<h2>disque</h2>
<pre><code>espace des partitions fixes montées (total, utilisé, dispo): 104Go 7,1Go 97Go
disque fixe : sda
disque amovible : -
partitions fixes montées: sda1 sda2 sda4
partition swap : sda3
partition fixe non montée : -
partition amovible montée : -
partition amovible non montée : -
disk taille type vendeur modèle n° série révision
sda 111,8G Fixe ATA KINGSTON SHSS37A 50026B725C07C1BD 00.U
</code></pre>
<p><strong>types de disque</strong> </p>
<table>
<thead>
<tr>
<th>sata</th>
<th>usb</th>
<th>mmc</th>
<th>nvme</th>
</tr>
</thead>
<tbody>
<tr>
<td>sda</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</tbody>
</table>
<p><code>df -h --output=source,target,fstype,size,used,avail,pcent --exclude=tmpfs --exclude=devtmpfs</code> <strong>(utilisation disques)</strong> </p>
<pre><code>Sys. de fichiers Monté sur Type Taille Utilisé Dispo Uti%
/dev/sda4 / btrfs 103G 6,9G 96G 7%
/dev/sda2 /boot ext4 976M 151M 758M 17%
/dev/sda1 /boot/efi vfat 200M 11M 189M 6%
</code></pre>
<p><code>df -i --exclude=tmpfs --exclude=devtmpfs</code> <strong>(utilisation inoeuds)</strong> </p>
<pre><code>Sys. de fichiers Inœuds IUtil. ILibre IUti% Monté sur
/dev/sda4 0 0 0 - /
/dev/sda2 65536 30 65506 1% /boot
/dev/sda1 0 0 0 - /boot/efi
</code></pre>
<p><code>lsblk -o NAME,FSTYPE,SIZE,LABEL,MOUNTPOINT,UUID</code> <strong>(disques)</strong> </p>
<pre><code>NAME FSTYPE SIZE LABEL MOUNTPOINT UUID
sda 111,8G
├─sda1 vfat 200M /boot/efi 1D02-7BF4
├─sda2 ext4 1G /boot bea358c6-fd61-429b-a360-2c6beccac712
├─sda3 swap 7,8G [SWAP] 73dec7d1-0f2e-4642-bfeb-bee00947c37f
└─sda4 btrfs 102,8G fedora / b950baf5-3029-42f6-8c1b-c0759c1d8c43
</code></pre>
<p><code>grep -Ev '^[[:blank:]]*#|^$' /etc/fstab</code> <strong>(fstab)</strong> </p>
<pre><code>UUID=b950baf5-3029-42f6-8c1b-c0759c1d8c43 / btrfs subvol=root 0 0
UUID=bea358c6-fd61-429b-a360-2c6beccac712 /boot ext4 defaults 1 2
UUID=1D02-7BF4 /boot/efi vfat umask=0077,shortname=winnt 0 2
UUID=73dec7d1-0f2e-4642-bfeb-bee00947c37f swap swap defaults 0 0
</code></pre>
<p><code>grep -Evs '^[[:blank:]]*#|^$' /etc/initramfs-tools/conf.d/resume</code> <strong>(resume)</strong> </p>
<pre><code>pas de fichier _resume_ dans /etc/initramfs-tools/conf.d/
ce n'est pas forcément une erreur et n'a pas d'incidence si l'hibernation n'est pas utilisée
cela pourrait générer des erreurs en cas d'hibernation et de multiples partitions swap.
il vaudrait peut-être mieux créer alors ce fichier.
</code></pre>
<h2>USB</h2>
<p><code>lsusb</code> </p>
<pre><code>Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 064e:c231 Suyin Corp.
Bus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 002: ID 8087:07dc Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
</code></pre>
<p><code>lsusb -t</code> </p>
<pre><code>/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/11p, 480M
|__ Port 5: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 5: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 7: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M
|__ Port 8: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 8: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
</code></pre>
<h1>Configuration et packages</h1>
<h2>localisation</h2>
<p><code>grep -Esv '#|^$' /etc/default/locale* /etc/locale.conf</code> </p>
<pre><code>/etc/locale.conf:LANG="fr_FR.UTF-8"
</code></pre>
<p><code>localectl --no-pager status</code> </p>
<pre><code> System Locale: LANG=fr_FR.UTF-8
VC Keymap: fr
X11 Layout: fr
</code></pre>
<p><code>grep -s . /etc/timezone*</code> </p>
<pre><code>
</code></pre>
<p><code>timedatectl status --no-pager</code> </p>
<pre><code> Local time: mer. 2017-10-25 13:12:31 CEST
Universal time: mer. 2017-10-25 11:12:31 UTC
RTC time: mer. 2017-10-25 11:12:31
Time zone: Europe/Paris (CEST, +0200)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no
</code></pre>
<p><code>grep -Ev '#|^$' /etc/default/keyboard</code> </p>
<pre><code>
</code></pre>
<p><strong>pas d'informations détectées</strong> </p>
<h2>paquets non-libres</h2>
<p><code>vrms</code> </p>
<pre><code>les paquets non-free ou contrib ne peuvent être détectés sans l'installation de vrms
</code></pre>
<h1>Réseau</h1>
<h2>réseau</h2>
<p><code>lspci -nnv | grep -EiA 15 'network|ethernet</code> </p>
<pre><code>02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)
Subsystem: Dell Device [1028:0695]
Flags: bus master, fast devsel, latency 0, IRQ 48
I/O ports at 4000 [size=256]
Memory at d2200000 (64-bit, non-prefetchable) [size=4K]
Memory at d2000000 (64-bit, prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-36-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b3] (rev 83)
Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8470]
Flags: bus master, fast devsel, latency 0, IRQ 54
Memory at d2100000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [c8] Power Management version 3
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [40] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number d0-7e-35-ff-ff-89-67-32
Capabilities: [14c] Latency Tolerance Reporting
Capabilities: [154] Vendor Specific Information: ID=cafe Rev=1 Len=014 &lt;?&gt;
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
</code></pre>
<p><strong>IP locale(s):</strong> </p>
<pre><code> 192.168.0.121/24 ( wlp3s0 ) (wifi)
192.168.122.1/24 ( virbr0 )
</code></pre>
<ul>
<li>les adresses Mac peut être affichées avec <code>./getInfo --mac</code> ou <code>getInfo --mac</code> (script installé) </li>
<li>l'IP publique peut être connue avec: <code>./getInfo --ip</code> ou <code>getInfo --ip</code> (script installé) </li>
</ul>
<p><strong>Passerelle(s):</strong> </p>
<pre><code> 192.168.0.254 ( wlp3s0 )
</code></pre>
<p><strong>interface prioritaire</strong> </p>
<pre><code>192.168.0.121
</code></pre>
<p><code>ip address</code> <strong>(sans ipV6 et sans adresses MAC)</strong> </p>
<pre><code>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: enp2s0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
3: wlp3s0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000
inet 192.168.0.121/24 brd 192.168.0.255 scope global dynamic wlp3s0
4: virbr0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc noqueue state DOWN group default qlen 1000
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
5: virbr0-nic: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
</code></pre>
<p><code>ip route show</code> </p>
<pre><code>default via 192.168.0.254 dev wlp3s0 proto static metric 600
192.168.0.0/24 dev wlp3s0 proto kernel scope link src 192.168.0.121 metric 600
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
</code></pre>
<p><code>grep -Ersv '#|^$' /etc/network/interfaces*</code> </p>
<pre><code>
</code></pre>
<p><code>cat /etc/resolv.conf</code> <strong>(serveurs de noms DNS utilisés)</strong> </p>
<pre><code>search ccmt.local
nameserver 192.168.0.1
nameserver 192.168.0.254
</code></pre>
<p><code>iwconfig</code> </p>
<pre><code>wlp3s0 IEEE 802.11 ESSID:"Réseau Wi-Fi de Utilisateur"
Mode:Managed Frequency:5.5 GHz Access Point: F0:99:BF:06:D3:6D
Bit Rate=390 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=63/70 Signal level=-47 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:37 Missed beacon:0
</code></pre>
<p><code>iwlist chan</code> </p>
<pre><code>wlp3s0 32 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 36 : 5.18 GHz
Channel 40 : 5.2 GHz
Channel 44 : 5.22 GHz
Channel 48 : 5.24 GHz
Channel 52 : 5.26 GHz
Channel 56 : 5.28 GHz
Channel 60 : 5.3 GHz
Channel 64 : 5.32 GHz
Channel 100 : 5.5 GHz
Channel 104 : 5.52 GHz
Channel 108 : 5.54 GHz
Channel 112 : 5.56 GHz
Channel 116 : 5.58 GHz
Channel 120 : 5.6 GHz
Channel 124 : 5.62 GHz
Channel 128 : 5.64 GHz
Channel 132 : 5.66 GHz
Channel 136 : 5.68 GHz
Channel 140 : 5.7 GHz
Current Frequency:5.5 GHz (Channel 100)
</code></pre>
<ul>
<li>la configuration ssid utilisé peut être connue (si NetworkManager utilisé) avec <code>./getInfo --ssid</code> ou <br>
<code>getInfo --ssid</code> (script installé) </li>
</ul>
<h3>gestionnaire de réseau</h3>
<p>installé: <strong>NetworkManager</strong><br>
en fonctionnement: <strong>/usr/sbin/NetworkManager --no-daemon</strong> </p>
<h3>modules réseau</h3>
<p><strong>liste non garantie complète</strong> </p>
<pre><code>iwlmvm 385024 0
mac80211 753664 1 iwlmvm
wmi_bmof 16384 0
dell_wmi 16384 0
sparse_keymap 16384 1 dell_wmi
iwlwifi 196608 1 iwlmvm
snd_soc_rt5640 118784 0
cfg80211 610304 3 iwlmvm,iwlwifi,mac80211
dell_laptop 20480 0
dell_smbios 16384 2 dell_wmi,dell_laptop
snd_soc_rl6231 16384 1 snd_soc_rt5640
wmi 24576 2 dell_wmi,wmi_bmof
snd_soc_core 229376 2 snd_soc_ssm4567,snd_soc_rt5640
snd_pcm 98304 7 snd_hda_intel,snd_hda_codec,snd_pcm_dmaengine,snd_hda_core,snd_soc_rt5640,snd_hda_codec_hdmi,snd_soc_core
rfkill 28672 10 bluetooth,dell_laptop,dell_rbtn,cfg80211
video 40960 3 dell_wmi,dell_laptop,i915
</code></pre>
<h2>NetworkManager</h2>
<p><code>grep -Ev '#|^$' /var/lib/NetworkManager/NetworkManager.state</code> </p>
<pre><code>[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
</code></pre>
<p><code>grep -Ev '#|^$' /etc/NetworkManager/NetworkManager.conf</code> </p>
<pre><code>[main]
[logging]
</code></pre>
<h2>wifis à proximité</h2>
<p><code>nmcli -f SSID,BSSID,MODE,CHAN,FREQ,RATE,SIGNAL,BARS,SECURITY device wifi list</code> </p>
<pre><code>SSID BSSID MODE CHAN FRÉQ DÉBIT SIGNAL BARS SÉCURITÉ
Réseau Wi-Fi de Utilisateur F0:99:BF:06:D3:6C Infra 1 2412 MHz 54 Mo/s 99 ▂▄▆█ WPA2
Réseau Wi-Fi de Utilisateur F0:99:BF:06:D3:6D Infra 100 5500 MHz 54 Mo/s 73 ▂▄▆_ WPA2
</code></pre>
<h1>Analyse</h1>
<h2>analyse boot</h2>
<p><strong>durée de boot:</strong> 4.551s (firmware) + 5.636s (loader) + 1.559s (kernel) + 3.472s (initrd) + 9.140s (espace utilisateur) = <strong>24.361s</strong> </p>
<p><code>systemd-analyze blame | head -n 20</code> </p>
<pre><code> 6.869s NetworkManager-wait-online.service
4.500s plymouth-quit-wait.service
2.720s dracut-initqueue.service
1.028s fwupd.service
852ms lvm2-monitor.service
755ms firewalld.service
649ms systemd-udev-settle.service
572ms dev-sda4.device
571ms sssd.service
476ms initrd-switch-root.service
206ms udisks2.service
204ms libvirtd.service
167ms systemd-udev-trigger.service
164ms systemd-journal-flush.service
142ms systemd-tmpfiles-setup-dev.service
134ms dracut-pre-pivot.service
115ms ModemManager.service
105ms systemd-udevd.service
103ms abrtd.service
100ms user@42.service
</code></pre>
<h2>journaux Xorg</h2>
<p><code>grep -Es '\(WW\)|\(EE\)|\(\?\?\)' /var/log/Xorg.?.log /home/&lt;user&gt;/.local/share/xorg/Xorg.?.log</code> <strong>(Xorg.log)</strong> </p>
<pre><code>/var/log/Xorg.0.log : inexistant
/home/naguam/.local/share/xorg/Xorg.0.log : inexistant
</code></pre>
<h2>journalctl kernel (emergency, alert, erreur, warning ou critique)</h2>
<p><strong>Logs begin at Wed 2017-10-18 19:52:41 CEST</strong> </p>
<p><code>journalctl --no-hostname --boot 0 -k -p 1</code> <strong>(kernel emergency 0 &amp; alerte 1, 25 premières lignes)</strong> </p>
<pre><code> &lt;vide&gt;
</code></pre>
<p><code>journalctl --no-hostname --boot 0 -k -p 2..2</code> <strong>(kernel critique, 25 premières lignes)</strong> </p>
<pre><code> &lt;vide&gt;
</code></pre>
<p><code>journalctl --no-hostname --boot 0 -k -p 3..3</code> <strong>(kernel erreur, 25 premières lignes)</strong> </p>
<pre><code>Oct 25 13:10:40 kernel: radeon 0000:04:00.0: failed VCE resume (-110).
Oct 25 13:10:43 kernel: psmouse serio1: synaptics: Unable to query device: -1
</code></pre>
<p><code>journalctl --no-hostname --boot 0 -k -p 4..4</code> <strong>(kernel warning, 25 premières lignes)</strong> </p>
<pre><code>Oct 25 13:10:39 kernel: ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
Oct 25 13:10:39 kernel: ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
Oct 25 13:10:39 kernel: #2 #3
Oct 25 13:10:39 kernel: PCCT header not found.
Oct 25 13:10:39 kernel: pmd_set_huge: Cannot satisfy [mem 0xe0000000-0xe0200000] with a huge-page mapping due to MTRR override.
Oct 25 13:10:39 kernel: pci 0000:00:14.0: can't derive routing for PCI INT A
Oct 25 13:10:39 kernel: pci 0000:00:14.0: PCI INT A: no GSI
Oct 25 13:10:39 kernel: xhci_hcd 0000:00:14.0: can't derive routing for PCI INT A
Oct 25 13:10:39 kernel: xhci_hcd 0000:00:14.0: PCI INT A: no GSI
Oct 25 13:10:39 kernel: usb: port power management may be unreliable
Oct 25 13:10:40 kernel: r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
Oct 25 13:10:40 kernel: ATPX version 1, functions 0x00000033
Oct 25 13:10:40 kernel: ATPX Hybrid Graphics
Oct 25 13:10:40 kernel: CRAT table not found
Oct 25 13:10:43 kernel: systemd: 17 output lines suppressed due to ratelimiting
Oct 25 13:10:43 kernel: wmi_bus wmi_bus-PNP0C14:00: WQBC data block query control method not found
Oct 25 13:10:44 kernel: uvcvideo 2-8:1.0: Entity type for entity Extension 4 was not initialized!
Oct 25 13:10:44 kernel: uvcvideo 2-8:1.0: Entity type for entity Extension 3 was not initialized!
Oct 25 13:10:44 kernel: uvcvideo 2-8:1.0: Entity type for entity Processing 2 was not initialized!
Oct 25 13:10:44 kernel: uvcvideo 2-8:1.0: Entity type for entity Camera 1 was not initialized!
Oct 25 13:10:44 kernel: kauditd_printk_skb: 58 callbacks suppressed
Oct 25 13:10:46 kernel: psmouse serio1: Failed to enable mouse on isa0060/serio1
</code></pre>
<h2>journalctl hors kernel (emergency, alert, erreur, warning ou critique)</h2>
<p><strong>Logs begin at Wed 2017-10-18 19:52:41 CEST</strong> </p>
<p><code>journalctl --no-hostname --boot 0 -p 1 | grep -v kernel</code> <strong>(hors kernel, emergency 0 &amp; alerte 1, 25 premières lignes)</strong> </p>
<pre><code> &lt;vide&gt;
</code></pre>
<p><code>journalctl --no-hostname --boot 0 -p 2..2 | grep -v kernel</code> <strong>(hors kernel, critique, 25 premières lignes)</strong> </p>
<pre><code> &lt;vide&gt;
</code></pre>
<p><code>journalctl --no-hostname --boot 0 -p 3..3 | grep -v kernel</code> <strong>(hors kernel, erreur, 25 premières lignes)</strong> </p>
<pre><code>Oct 25 13:10:44 bluetoothd[673]: Failed to set mode: Blocked through rfkill (0x12)
Oct 25 13:10:48 spice-vdagent[1203]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Oct 25 13:10:48 bluetoothd[673]: Failed to set mode: Blocked through rfkill (0x12)
Oct 25 13:10:58 pulseaudio[1604]: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
Oct 25 13:10:59 spice-vdagent[1712]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Oct 25 13:10:59 bluetoothd[673]: Failed to set mode: Blocked through rfkill (0x12)
</code></pre>
<p><code>journalctl --no-hostname --boot 0 -p 4..4 | grep -v kernel</code> <strong>(hors kernel, warning, 25 premières lignes)</strong> </p>
<pre><code>Oct 25 13:10:40 systemd-vconsole-setup[344]: Invalid font metadata - width: 3239935192 (max 32), height: 4294950158 (max 32), count: 2285497088 (max 512)
Oct 25 13:10:40 systemd-vconsole-setup[344]: Fonts will not be copied to remaining consoles
Oct 25 13:10:44 avahi-daemon[681]: System host name is set to 'localhost'. This is not a suitable mDNS host name, looking for alternatives.
Oct 25 13:10:44 systemd[1]: dbxtool.service: Failed with result 'exit-code'.
Oct 25 13:10:46 firewalld[700]: WARNING: FedoraServer: INVALID_SERVICE: cockpit
Oct 25 13:10:46 org.gnome.Shell.desktop[970]: glamor: EGL version 1.4 (DRI2):
Oct 25 13:10:47 systemd-udevd[1008]: Could not generate persistent MAC address for virbr0: No such file or directory
Oct 25 13:10:47 dnsmasq[1055]: no servers found in /etc/resolv.conf, will retry
Oct 25 13:10:47 systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Oct 25 13:10:47 systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Oct 25 13:10:48 gnome-session-binary[962]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Oct 25 13:10:52 systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Oct 25 13:10:57 org.gnome.Shell.desktop[1520]: glamor: EGL version 1.4 (DRI2):
Oct 25 13:10:59 goa-identity-se[1687]: GoaKerberosIdentityManager: Using polling for change notification for credential cache type 'KCM'
Oct 25 13:10:59 gnome-shell[1520]: Unable to connect to ibus: Impossible de se connecter : Connexion refusée
Oct 25 13:10:59 gnome-session-binary[1455]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Oct 25 13:10:59 gsd-rfkill[1717]: g_object_notify: object class 'CcRfkillGlib' has no property named 'kernel-noinput'
Oct 25 13:10:59 gsd-sharing[1721]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit gnome-remote-desktop.service not loaded.
Oct 25 13:11:00 vmware-user.desktop[1907]: vmware-user: could not open /proc/fs/vmblock/dev
Oct 25 13:11:00 gsd-power[1715]: gsd_power_backlight_abs_to_percentage: assertion 'max &gt; min' failed
Oct 25 13:11:00 gsd-color[1211]: failed to set screen _ICC_PROFILE: Louverture du fichier « /home/naguam/.local/share/icc/edid-eb4727954fcb216f5ef33948606219fd.icc » a échoué : Permission non accordée
Oct 25 13:11:00 gsd-color[1211]: failed to set screen _ICC_PROFILE: Louverture du fichier « /home/naguam/.local/share/icc/edid-eb4727954fcb216f5ef33948606219fd.icc » a échoué : Permission non accordée
Oct 25 13:11:00 gnome-shell[1520]: STACK_OP_ADD: window 0x1c00001 already in stack
Oct 25 13:11:00 gnome-shell[1520]: STACK_OP_ADD: window 0x1c00001 already in stack
Oct 25 13:11:00 libcanberra-login-sound.desktop[1917]: Failed to play sound: File or data not found
</code></pre>
<p><strong>les 25 premières lignes commencent à la date du dernier boot</strong> </p>
<hr>
<p>Rapport du 25/10/2017 13:12 +0200 | ./getInfo | <a href="https://frama.link/doc-getInfo" rel="nofollow">getInfo 2.17.0</a> </p>
</div>
<div class="container">
<div class="meta-footer clearfix">
<div class="pull-left">
<span data-container-expiration>
Expires in 6 jours, 23 heures
</span> |
<form data-container-report data-confirm="Are you sure you want to report this paste?" action="" id="report-paste" method="post">
<input type='hidden' name='csrfmiddlewaretoken' value='xkN6Te9cyYnxTHzKfrh0JYrOdirg5KeHpiGzoSr6vn7vRCkXHDofAGSTvv0YiegB' />
<button type="submit">Report abuse</button>
</form>
</div>
<div data-container-language class="pull-right">
Markdown
</div>
</div>
</div>
</div>
<div class="container">
<div class="btn-container">
<a href="/" class="btn new-paste">New paste</a>
</div>
</div>
<div class="container">
<footer>
<a href="/api/">API</a> | <a href="/about/">About</a> | <a href="/plugins/">Plugins</a> | Not a git repo
</footer>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.5869c96cc8f1.js"></script>
<script src="/static/js/autosize.284f056dd1ee.js"></script>
<script src="/static/js/script.e4019f5f4038.js"></script>
</body>
</html>

View File

@ -9,18 +9,18 @@
* refaire/revoir figet_resolution
* revoir modules réseau
* réviser alert_
* revoir affichage cmd si présente sinon, juste signalement plus discret
---
* f__requis f__wget_test fscript_get_version fscript_update fscript_cronAnacron
* f__cmd_exist f__sudo f__requis
## 2.18.1 26/10/2017
## 2.18.2 26/10/2017
* nouveau: figet_screen (nb écrans & résolutions)
* suppression: figet_resolution neofetch
* nouveau: xrandr multi-écrans
* révision: affichage des fichiers manquants
* fix: suppression s/n batterie si champs rempli d'espace vide
## 2.17.4 25/10/2017