Outils pour utilisateurs

Outils du site


tech:notes_snmp

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_snmp [2025/04/16 10:08] Jean-Baptistetech:notes_snmp [2026/02/26 11:44] (Version actuelle) Jean-Baptiste
Ligne 6: Ligne 6:
 Voir :  Voir : 
 * [[Notes SNMPv3]] * [[Notes SNMPv3]]
 +* https://www.net-snmp.org/docs/FAQ.html
 * https://wiki.deimos.fr/SNMP_:_Le_protocole_de_gestion_r%C3%A9seaux.html * https://wiki.deimos.fr/SNMP_:_Le_protocole_de_gestion_r%C3%A9seaux.html
 * https://makina-corpus.com/python/initiation-snmp-avec-python-pysnmp-partie-1-le-protocole-et-les-commandes * https://makina-corpus.com/python/initiation-snmp-avec-python-pysnmp-partie-1-le-protocole-et-les-commandes
Ligne 171: Ligne 172:
 ''/etc/snmp/snmpd.conf'' ''/etc/snmp/snmpd.conf''
 ~~~ ~~~
-rwuser: a SNMPv3 read-write user+rouser: a SNMPv3 read-write user
 #   arguments:  user [noauth|auth|priv] [restriction_oid] #   arguments:  user [noauth|auth|priv] [restriction_oid]
  
-rwuser nagios auth +rouser nagios auth
-rwuser nagios  +
 ~~~ ~~~
  
Ligne 340: Ligne 340:
 Exemples : Exemples :
 ~~~bash ~~~bash
 +# snmpwalk -t "$timeout" -r "$retries"
 +# '-Cc' Use this option to ignore number not increasing error
 +
 snmpwalk -v2c -c public localhost system snmpwalk -v2c -c public localhost system
 #snmpwalk -v <laversion> -c <lacommunaute> <adresseip> <oid> #snmpwalk -v <laversion> -c <lacommunaute> <adresseip> <oid>
Ligne 352: Ligne 355:
 # snmpwalk -v2c -c public 192.168.1.13 # snmpwalk -v2c -c public 192.168.1.13
 ~~~ ~~~
 +
 +Pour debug
 +~~~bash
 +snmpwalk -d -DAll
 +~~~
 +
  
 ### snmpget ### snmpget
Ligne 379: Ligne 388:
         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -P3 -L authNoPriv -a MD5 -U $USER3$ -A "$USER4$" -c 1,1 -o IF-MIB::ifOperStatus.$ARG1$         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -P3 -L authNoPriv -a MD5 -U $USER3$ -A "$USER4$" -c 1,1 -o IF-MIB::ifOperStatus.$ARG1$
         }         }
 +~~~
 +
 +
 +''switch.cfg''
 +~~~c
 +define service{
 + use generic-service ; Inherit values from a template
 + host_name linksys-srw224p
 + service_description Port 1 Link Status
 + check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
 + }
 +
 ~~~ ~~~
  
tech/notes_snmp.1744790906.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki