Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
215snmp:30_install_snmp [le 02/07/2010 à 14:06] – prof | 215snmp:30_install_snmp [le 30/06/2018 à 15:42] (Version actuelle) – prof | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Installation des services SNMP ====== | ====== Installation des services SNMP ====== | ||
+ | Sur des « boites noires », l' | ||
+ | |||
Nous allons utiliser une Ubuntu 10.4 (lucid lynx) pour la démonstration. Il existe deux paquets fondamentaux : | Nous allons utiliser une Ubuntu 10.4 (lucid lynx) pour la démonstration. Il existe deux paquets fondamentaux : | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
aptitude install snmp snmpd | aptitude install snmp snmpd | ||
- | ===== Le pack « snmp » ===== | + | |
- | < | + | |
- | $ aptitude show snmp | + | |
- | Paquet : snmp | + | |
- | État: installé | + | |
- | Automatiquement installé: non | + | |
- | Version : 5.4.2.1~dfsg0ubuntu1-0ubuntu2.1 | + | |
- | Priorité : | + | |
- | Section : net | + | |
- | Responsable : | + | |
- | Taille décompressée : | + | |
- | Dépend: libc6 (>= 2.4), libsnmp15 (>= 5.4.2.1~dfsg), | + | |
- | Recommande: perl-modules | + | |
- | Description : | + | |
- | The Simple Network Management Protocol (SNMP) provides a framework for the exchange of management information between | + | |
- | | + | |
- | + | ||
- | The Net-SNMP applications are a collection of command line clients for issuing SNMP requests to agents. | + | |
- | Site : http:// | + | |
- | </ | + | |
- | Il n'y a rien de spécial à configurer ici. Nous disposons principalement d'une quantité impressionnante d' | + | |
- | < | + | |
- | $ dpkg -L snmp | + | |
- | /. | + | |
- | ... | + | |
- | /usr/bin | + | |
- | <span class=" | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | <span class=" | + | |
- | </ | + | |
- | + | ||
- | Beaucoup d' | + | |
===== Le pack « snmpd » ===== | ===== Le pack « snmpd » ===== | ||
< | < | ||
$ aptitude show snmpd | $ aptitude show snmpd | ||
- | Paquet : snmpd | + | Paquet |
État: installé | État: installé | ||
Automatiquement installé: non | Automatiquement installé: non | ||
- | Version : 5.4.2.1~dfsg0ubuntu1-0ubuntu2.1 | + | Version |
- | Priorité : optionnel | + | Priorité |
- | Section : net | + | Section |
- | Responsable : Ubuntu Core Developers < | + | Responsable |
- | Taille | + | Taille |
Dépend: libc6 (>= 2.4), libsnmp15 (>= 5.4.2.1~dfsg), | Dépend: libc6 (>= 2.4), libsnmp15 (>= 5.4.2.1~dfsg), | ||
Est en conflit: snmp (< 3.6-3), snmptraplogd | Est en conflit: snmp (< 3.6-3), snmptraplogd | ||
Remplace: snmptraplogd | Remplace: snmptraplogd | ||
- | Description : SNMP (Simple Network Management Protocol) agents | + | Description |
The Simple Network Management Protocol (SNMP) provides a framework for the exchange of management information between agents (servers) and clients. | The Simple Network Management Protocol (SNMP) provides a framework for the exchange of management information between agents (servers) and clients. | ||
The Net-SNMP agent is a daemon which listens for incoming SNMP requests from clients and provides responses. | The Net-SNMP agent is a daemon which listens for incoming SNMP requests from clients and provides responses. | ||
- | Site : http:// | + | Site : http:// |
</ | </ | ||
==== Contenu du pack ==== | ==== Contenu du pack ==== | ||
Ligne 97: | Ligne 49: | ||
Peu d' | Peu d' | ||
+ | |||
+ | ==== Première configuration ==== | ||
Le gros travail va être de se plonger dans ''/ | Le gros travail va être de se plonger dans ''/ | ||
Ligne 119: | Ligne 73: | ||
Il suffit de relancer le service '' | Il suffit de relancer le service '' | ||
/ | / | ||
- | et notre serveur devrait être en mesure de servir toutes les informations qu' | + | et notre serveur devrait être en mesure de servir toutes les informations qu' |
+ | ==== Vérification ==== | ||
+ | Avons-nous un service udp à l' | ||
+ | < | ||
+ | # netstat -laupn | ||
+ | Connexions Internet actives (serveurs et établies) | ||
+ | Proto Recv-Q Send-Q Adresse locale | ||
+ | <span class=" | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | </ | ||
+ | Il y a bien un processus à l' | ||
+ | |||
+ | Le fait que notre '' | ||
+ | |||
+ | ===== Le pack « snmp » ===== | ||
+ | < | ||
+ | $ aptitude show snmp | ||
+ | Paquet : snmp | ||
+ | État: installé | ||
+ | Automatiquement installé: non | ||
+ | Version : 5.4.2.1~dfsg0ubuntu1-0ubuntu2.1 | ||
+ | Priorité : | ||
+ | Section : net | ||
+ | Responsable : | ||
+ | Taille décompressée : | ||
+ | Dépend: libc6 (>= 2.4), libsnmp15 (>= 5.4.2.1~dfsg), | ||
+ | Recommande: perl-modules | ||
+ | Description : | ||
+ | The Simple Network Management Protocol (SNMP) provides a framework for the exchange of management information between | ||
+ | | ||
+ | |||
+ | The Net-SNMP applications are a collection of command line clients for issuing SNMP requests to agents. | ||
+ | Site : http:// | ||
+ | </ | ||
+ | ==== Contenu ==== | ||
+ | |||
+ | Il n'y a rien de spécial à configurer ici. Nous disposons principalement d'une quantité impressionnante d' | ||
+ | < | ||
+ | $ dpkg -L snmp | ||
+ | /. | ||
+ | ... | ||
+ | /usr/bin | ||
+ | <span class=" | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | <span class=" | ||
+ | </ | ||
+ | |||
+ | Beaucoup d' | ||
+ | |||
+ | ==== Vérification ==== | ||
+ | Pas question d' | ||
+ | ~$ snmpwalk -c public -v 1 localhost | ||
+ | devrait dérouler une longue liste de choses pour le moment incompréhensibles. Notez qu'il n'est nul besoin de privilèges '' | ||
+ | |||
+ | < | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | DISMAN-EVENT-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | SNMPv2-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | IF-MIB:: | ||
+ | ... | ||
+ | </ | ||
+ | Notez également l' | ||
+ | Tout ceci est surtout destiné à vérifier que l'on peut disposer d' |
Installation des services SNMP: Dernière modification le: 02/07/2010 à 14:06 par prof