Outils pour utilisateurs

Outils du site


issue148:certifie_linux

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
issue148:certifie_linux [2019/09/02 12:04] – créée auntieeissue148:certifie_linux [2019/09/14 14:35] (Version actuelle) d52fr
Ligne 1: Ligne 1:
  
-Where we are: https://www.lpi.org/our-certifications/exam-201-objectives (Measure and troubleshoot resource usage).+**Where we are: https://www.lpi.org/our-certifications/exam-201-objectives (Measure and troubleshoot resource usage).**
  
-Welcome back learners, and a nod to those “just interested”We are continuing from last issue with the very first topic, capacity planningWe are still busy with resource availability and troubleshooting. Last issue, we covered ps & pstree, and how you can use it to troubleshoot. This time, let us look at network & bandwidth measuring and troubleshooting.+Rappelons où nous en sommes : https://www.lpi.org/our-certifications/exam-201-objectives (Mesurer et gérer les problèmes concernant l'utilisation des ressources).
  
-NowLPIC objectives say netstat - and netstat is something you can write book about. Luckily, they do not expect you to remember every switch, etcoff the top of your head(Have a look here: https://www.tecmint.com/20-netstat-commands-for-linux-network-management/ )The man page is rather overwhelming for newbiesbut feel free to peruse it. Though dstat has replaced it in some distributions, you still have it on a vast variety of systemsso let us look at what we need to know+**Welcome back learners, and a nod to those “just interested”We are continuing from last issue with the very first topic, capacity planningWe are still busy with resource availability and troubleshootingLast issuewe covered ps & pstreeand how you can use it to troubleshoot. This time, let us look at network & bandwidth measuring and troubleshooting.**
  
-When one troubleshoots a network connectionusually we run the “ping” command or “traceroute” command. When things look offwe run “netstat -r” to see the routing tableThis is handy when you have multiple networks on multiple subnetsor multiple network cards on your serverOpen terminal and type netstat -s pleaseLook at the output. Scroll up and down if you have to. One of the nice features of netstat is that it will reversely resolve hostnames for youso if you are connected to www.somedomain.comit will pop back and give you the IP, say, 41.42.43.44but this can take time. When you are on your home PC or laptop, this is usually very quick and you do not wait. Now, imagine a server with thousands of open ports, connected to thousands of clients. As sysadmin, you run a netstat -l and the ‘Foreign Address’ field needs to be populated for each one... This is where the -n option comes into play. At the night school where I used to teach, we had a lecturer who used to get his students to memorise “netstat -tuna”. Funny and handy. I would recommend that you make rhymes or funny words to remember the options you want to use, say “netstat -cult -n”.+Chers apprenantsje salue votre retouret je fais un coucou à ceux qui sont « juste intéressés »Nous continuons la série suite au dernier numéro avec le tout premier sujetla disponibilité des ressourcesNous nous occupons toujours de la gestion des ressources et le dépannage quand il y un problèmeDans le dernier numéronous avons parlé de ps et pstreeet de la façon dont vous pouvez utiliser ces commandes pour le « dépannage »Cette fois-ciexaminons comment on mesure et dépanne les problèmes de réseau et de bande passante.
  
-Let us deconstruct that last one:+**Now, LPIC objectives say netstat - and netstat is something you can write a book about. Luckily, they do not expect you to remember every switch, etc. off the top of your head. (Have a look here: https://www.tecmint.com/20-netstat-commands-for-linux-network-management/ ). The man page is rather overwhelming for newbies, but feel free to peruse it. Though dstat has replaced it in some distributions, you still have it on a vast variety of systems, so let us look at what we need to know.**   
 + 
 +Bon, les objectifs de LPIC comprennent netstat, mais netstat est une commande qui mériterait un livre à elle toute seule. Heureusement, ils ne s'attendent pas à ce que vous vous souveniez, de tête, de chaque option. (Jetez un coup d'œil ici : https://www.tecmint.com/20-netstat-commands-for-linux-network-management/). La page du manuel est plutôt surchargée pour les débutants, mais n'hésitez pas à la consulter. Bien que dstat ait remplacé netstat dans certaines distributions, cette commande est toujours disponible sur une grande variété de systèmes, alors voyons ce que nous avons besoin de savoir. 
 + 
 +**When one troubleshoots a network connection, usually we run the “ping” command or “traceroute” command. When things look off, we run “netstat -r” to see the routing table. This is handy when you have multiple networks on multiple subnets, or multiple network cards on your server. Open a terminal and type netstat -s please. Look at the output. Scroll up and down if you have to. One of the nice features of netstat is that it will reversely resolve hostnames for you, so if you are connected to www.somedomain.com, it will pop back and give you the IP, say, 41.42.43.44, but this can take time. When you are on your home PC or laptop, this is usually very quick and you do not wait. Now, imagine a server with thousands of open ports, connected to thousands of clients. As sysadmin, you run a netstat -l and the ‘Foreign Address’ field needs to be populated for each one... This is where the -n option comes into play. At the night school where I used to teach, we had a lecturer who used to get his students to memorise “netstat -tuna”. Funny and handy. I would recommend that you make rhymes or funny words to remember the options you want to use, say “netstat -cult -n”.** 
 + 
 +Quand on dépanne une connexion réseau, on exécute généralement la commande « ping » ou « traceroute » et quand on veut en savoir plus, nous lançons "netstat -r" pour accéder à la table de routage. C'est pratique lorsque vous avez plusieurs réseaux sur plusieurs sous-réseaux ou plusieurs cartes réseau sur votre serveur. Ouvrez un terminal et tapez netstat -s , si vous le voulez bien. Regardez le résultat. Faites défiler vers le haut, et vers le bas s'il le faut. Une des caractéristiques intéressantes de la commande netstat réside dans le fait qu’elle va effectuer une résolution inverse des noms d'hôtes, donc, si vous êtes connecté à www.somedomain.com, cela vous donnera l'IP, par exemple, 41.42.43.44, mais cela peut prendre un certain temps. Lorsque vous êtes sur votre ordinateur personnel ou portable, c'est généralement très rapide et vous n'attendez pas. Maintenant, imaginez un serveur avec des milliers de ports ouverts, connectés à des milliers de clients. En tant qu'administrateur système, vous exécutez un netstat -l et le champ « Foreign Address » (Adresse distante) doit être rempli pour chaque ligne... C'est là que l'option -n entre en jeu. Au cours du soir où j'enseignais, nous avions un conférencier qui avait l'habitude de faire mémoriser « netstat -tuna » (tuna, c'est le thon) par ses élèves. Drôle et pratique. Je vous recommande de faire des rimes ou des phrases drôles pour vous rappeler les options que vous voulez utiliser, dites "netstat -cult -n". 
 + 
 +**Let us deconstruct that last one:
 • To see listening ports, -l • To see listening ports, -l
 • To see TCP ports, -t • To see TCP ports, -t
 • To see UDP ports, -u • To see UDP ports, -u
 • To have no foreign address resolution, -n • To have no foreign address resolution, -n
-• To have it constantly updated, -c+• To have it constantly updated, -c **
  
-Remember -tuna” and “-t -u -n -a” is the same. Can you come up with a catchy phrase?+Déconstruisons cette dernière commande :  
 +• Pour voir les ports d'écoute, -l  
 +• Pour voir les ports TCP, -t  
 +• Pour voir les ports UDP, -u  
 +• Pour n'avoir aucune résolution d'adresse distante, -n  
 +• Pour avoir une mise à jour constante, -c
  
-Try them out! +**Remember , “-tuna” and “-t -u -n -a” is the same. Can you come up with a catchy phrase?**
  
-Let us do what we did with the previous commands and try to link it up.+Rappelez-vous, « -tuna » et « -t -u -n -a » revient au même. A vous de trouver une phrase facile à mémoriser.
  
-When you add the -p option, you will see the PID / Program name added at the end of the output. Again this is very handy to see what is hogging your resources, which is what we want to do in “measuring” and “troubleshooting”. So don’t break your head over all the options now; for the exam, know how to “measure” and “troubleshoot”.+**Try them out!** 
  
-Some questions+Essayez-les !
  
-Which of the following commands will list the IPv4 neighbours of the current system? This includes IP and MAC addresses (choose TWO correct answers):+**Let us do what we did with the previous commands and try to link it up.** 
 + 
 +Faisons ce que nous avons fait avec les commandes précédentes et essayons de les relier. 
 + 
 +**When you add the -p option, you will see the PID / Program name added at the end of the output. Again this is very handy to see what is hogging your resources, which is what we want to do in “measuring” and “troubleshooting”. So don’t break your head over all the options now; for the exam, know how to “measure” and “troubleshoot”.** 
 + 
 +Lorsque vous ajoutez l'option -p, vous verrez le PID/nom du programme ajouté à la fin de la sortie. Encore une fois, c'est très pratique pour voir ce qui monopolise vos ressources, ce que nous voulons faire en terme de « mesure » et « dépannage ». Alors ne vous cassez pas la tête avec toutes les options maintenant ; pour l'examen, sachez comment « mesurer » et « dépanner ». 
 + 
 +**Some questions** 
 + 
 +Quelques questions 
 + 
 +**Which of the following commands will list the IPv4 neighbours of the current system? This includes IP and MAC addresses (choose TWO correct answers):
 A. arp  A. arp 
 B. ifconfig -lv eth0  B. ifconfig -lv eth0 
 C. netstat -al C. netstat -al
-D. ip neigh show +D. ip neigh show **
  
-If you said C ... SHAME on you! Just because we were learning about netstat doesn’t mean the answer will automatically be netstat!+Laquelle des commandes suivantes liste les systèmes IPv4 voisins du système actuel ? Cela inclut les adresses IP et MAC (choisissez DEUX bonnes réponses) :  
 +Aarp  
 +Bifconfig -lv eth0  
 +C. netstat -al  
 +D. ip neigh show
  
-Give us your answer/explanation at misc@fullcirclemagazine.org +**If you said C ... SHAME on you! Just because we were learning about netstat doesn’t mean the answer will automatically be netstat!**
  
-If you would like to jump ahead, or test your skills at an LPI exam, do a test paper here: https://www.itexams.com/exam/117-201 These were once valid LPI questions and will ease you into the format:+Si tu as répondu C... Honte à toi ! Ce n'est pas parce que nous en apprenions plus sur netstat que la réponse serait automatiquement netstat ! 
 + 
 +**Give us your answer/explanation at misc@fullcirclemagazine.org**  
 + 
 +Donnez-nous votre réponse/explication à misc@fullcirclemagazine.org 
 + 
 +**If you would like to jump ahead, or test your skills at an LPI exam, do a test paper here: https://www.itexams.com/exam/117-201 These were once valid LPI questions and will ease you into the format:
 • The new exam number is 201-400, 117-201 was the old one. • The new exam number is 201-400, 117-201 was the old one.
 • The site does require signing up, but sign up with temporary email – not your real email. • The site does require signing up, but sign up with temporary email – not your real email.
-• DO NOT learn these questions parrot fashion, as they are probably not real exam questions.+• DO NOT learn these questions parrot fashion, as they are probably not real exam questions.** 
 + 
 +Si vous êtes impatient, ou voulez tester vos compétences face à un examen LPI, passez un test ici : https://www.itexams.com/exam/117-201. Ces questions faisaient autrefois partie de l’examen LPI et donc cela pourra vous être utile :  
 +• La nouvelle référence de l’examen est 201-400, l’ancienne était 117-201.  
 +• Le site nécessite une inscription, mais inscrivez-vous à l'aide d'une adresse mail temporaire – pas votre adresse principale.  
 +• N'APPRENEZ PAS ces questions par cœur, car ce ne sont probablement pas les vraies questions de l'examen. 
 + 
 + 
 +**Let us know how you did, good or bad, it does not matter. Good means you are ready to write and confident in your skills. Bad means you will be learning new stuff!! Yay! There is no down side here. If you do not know why an answer is the way it is, contact us.** 
  
-Let us know how you didgood or badit does not matterGood means you are ready to write and confident in your skillsBad means you will be learning new stuff!! YayThere is no down side hereIf you do not know why an answer is the way it iscontact us+Dites-nous comment vous vous en êtes sortibien ou malpeu importeBon signifie que vous êtes prêts pour l’examen et que vous avez confiance en vos compétencesMauvais veut dire que vous devez encore apprendre de nouvelles choses !! Chouette Et ce n’est pas un problèmeSi vous ne comprenez pas le sens d’une réponse alorscontactez-nous
  
issue148/certifie_linux.1567418681.txt.gz · Dernière modification : 2019/09/02 12:04 de auntiee