From aab8225baa606f7a778371b2409da75a067e0139 Mon Sep 17 00:00:00 2001 From: Maxime BOURIEAU Date: Tue, 13 Oct 2026 15:15:57 +0200 Subject: [PATCH] Add maintenance command documentation for Windows and Ubuntu --- .../Commande Maintenance.md | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Maintenance Préventive/Commande Maintenance.md diff --git a/Maintenance Préventive/Commande Maintenance.md b/Maintenance Préventive/Commande Maintenance.md new file mode 100644 index 0000000..ca2251f --- /dev/null +++ b/Maintenance Préventive/Commande Maintenance.md @@ -0,0 +1,47 @@ +# Commandes de maintenance + +## Vérifier le serveur de temps sous Windows + +```powershell +w32tm /query /source +``` + +## Consulter l’utilisation du processeur et de la mémoire sous Ubuntu + +```bash +echo "CPU: $(vmstat 1 2 | tail -1 | awk '{print 100 - $15"%"}') | RAM: $(free | awk '/Mem/ {printf("%.2f%%", $3/$2 * 100.0)}')" +``` + +## Vérifier le serveur de temps sous Ubuntu + +```bash +timedatectl show-timesync --all +``` + +## Mettre à jour la configuration d’APT-Cacher sur Ubuntu + +Ouvrir le fichier de configuration : + +```bash +nano /etc/apt/apt.conf +``` + +Adresse IP de TELEMF : `10.33.35.13` + +## Mettre à jour Ubuntu + +```bash +apt-get update +sudo apt-get install -y software-properties-common +sudo apt-get install update-manager-core +sudo apt dist-upgrade --fix-missing +``` + +## Appliquer la modification sur TELEML + +```bash +sudo systemctl stop apt-cacher-ng +sudo rm -rf /var/cache/apt/* +sudo rm -rf /var/cache/apt-cacher-ng/* +sudo systemctl start apt-cacher-ng +```