Manuel de l'administrateur Table des matières LinkedIn social network LinkedIn social network LinkedIn social network LinkedIn social network Share on social media

SNMP simulateur

Introduction à snmp trap snmp notification et de simulation

Le simulateur de Trap SNMP ou de Notification SNMP de LoriotPro est un outil idéal pour la simulation et les tests des filtres de Trap. Trap Simulator vous permet de forger de faux Trap SNMPv1 ou des notifications snmp V2c et de les envoyer à n'importe quel récepteur de trap snmp tel que LoriotPro.

SNMP Trap simulation est très utile pour tester les filtres de Trap et vérifier que les actions associées sont bien exécutées. Il est difficile sur un serveur avec un agent SNMP de forcer la génération d'un trap SNMP ou un snmp v2c notification qui est envoyé lorsque le disque dur, une alimentation électrique d'un ventilateur sont en défaut.

SNMP v1 piège par snmp v2c notification

Les trap SNMPv1 ont été défini dans la RFC 1157, avec les champs suivants:

Enterprise Identifies the type of managed object generating the snmp v1 trap. Enterprise field contains value of sysObjectID of the device sending trap. For vendor specific snmp v1 traps, Generic snmp v1 trap type field is set to enterpriseSpecific(6).
Agent address Provides the address of the managed object generating the snmp v1 trap.
Generic trap type Indicates one of a number of generic snmp v1 trap types.
Specific trap code Indicates one of a number of specific trap codes.
Time stamp Provides the amount of time that has elapsed between the last network reinitialization and generation of the snmp v1 trap.
Variable bindings The data field of trap containing PDU. Each variable binding associates a particular MIB object instance with its current value.

Les trap standard en snmp v1 sont:

0 coldStart The snmp device performs a power on
1 warmStart The snmp device performs a sofwtare reload or ipl
2 linkDown One of the interface of the snmp device went down
3 linkUp One of the interface of the snmp device went up
4 authenticationFailure A snmp manager tries to access a snmp agent with a wrong community or wrong user rights
5 egpNeighborLoss Exterior gateway protocol loss a neighbor router
6 enterprise specific Entreprise proprietary traps
En SNMPv2c les trap sont appellé NOTIFICATION et formaté différemment par rapport à SNMPv1. Une notification dispose des cahmps suivants:
sysUpTime Same as Time stamp in SNMPv1 trap
snmpTrapOID Trap identification field. For generic traps, values are defined in RFC 1907, for vendor specific traps snmpTrapOID is essentially a concatenation of the SNMPv1 Enterprise parameter and two additional sub-identifiers, '0', and the SNMPv1 Specific trap code parameter.
VarBindList A list of variable bindings

 

Lancer le module Trap Simulator

Pour tester une action déclenché par un Trap snmp ou une Notification v2c , sélectionnez l'onglet Service de l'espace de travail et appeler le menu contextuel par un clic droit. Sélectionnez l'option Trap Simulator.

snmp trap simultaor selection
Load the trap simulator

Vous avez accès à l'interface du module Trap Simulator.

snmp trap simulator

Envoi de simulation piège et de notification

Si vous souhaitez envoyer un faux Trap SNMP v1, vous pouvez sélectionner l'adresse de la source du Trap.

Entrez ensuite l'adresse et la communauté. Si vous envoyez à partir de ce LoriotPro à ce LoriotPro utiliser l'adresse de bouclage 127.0.0.1. Vérifiez que la communauté est bonne si vous voulez vérifier un filtre sur la communauté du Trap.

Dans la boîte combo standard V1 ou dans le Trap V1 entreprise et de notification, sélectionnez le Trap ou la notification que vous souhaitez simuler par un double clic. Le Trap a le nom affiché en bas et la zone de texte variable bindings domaine est complétée.

Le liste déroulante "V1 Standard Trap" ne contient que des Trap SNMP V1 à l'exception des entreprises piège (Trap V1 de type 6).

snmp v1 trap

Description des snmp v2c notification et des snmp v1 trap

Name The trap or notification name as defined in the MIB
Trap V1 name or father the full name of the trap in snmp v1 or the father object name for snmp v2c
Version the snmp version, snmp v1 or snmp v2
V1 Enterprise specific A unique number that identifies this trap among all the traps from this vendor
MIB The MIB file compiled on the LoriotPro manager where is defines this trap or notification
Objects list of object, variable bindings and their value. Arbitrary value are assigned for the simulation.
La liste contient tous les trap SNMP V1 (Enterprise) et SNMP V2c notification).

Les équipements ne sont pas en mesure de fournir la liste de tous les notifications ou SNMP Trap. Vous pouvez utiliser l'outil SNMP Walker pour trouver les objets de MIB supportés par un équipement ou un système.

Dans l'exemple ci-dessous, nous sélectionnons une notification snmp v2 et un Trap SNMP v1 en même temps.

snmp v2 trap send

Vous pouvez modifier la valeur de la variable bindings dans la partie inférieure de l'écran. Dans notre exemple, la variable obligatoire sont définies et l'importation du fichier de MIB. Les valeurs ont été arbitrairement fixé à 145 par LoriotPro, mais vous pouvez les modifier.

Les valeurs doivent être précédés d'un seul des types ci-dessous:

(NU) NULL
(ID) OBJECT ID
(OS) OCTET SRTING
(IN) INTEGER
(IP) IP ADDRESS
(CO) COUNTER
(GA) GAUGE
(TI) TIMETICKS
(HS) HEXA OCTET STRING

Lorsque vous avez fait votre choix, cliquez sur Envoyer.

Revenez à la LoriotPro Event Manager et sélectionnez l'onglet Trap. Les Trap SNMP sont affichés dans la fenêtre Traps. La simulation de Trap SNMP est également fausse pour les variable bindings (varbinds 1 à 10) des colonnes valueX,OID.

Version

Generic snmp trap / Notification Icon Description

SNMP V1

0 - Cold Start

cold start trap

A Cold Start snmp trap signifies that the SNMP entity, acting in an agent role, is reinitializing itself and that its configuration may have been altered

SNMP V1
 

1 - Warm Start

warm start trap

A Warm Start snmp trap signifies that the SNMP entity, acting in an agent role, is reinitializing itself such that its configuration is unaltered.

SNMP V1

2 - Link Down

link down trap

A Link Down snmp trap signifies that the SNMP entity, acting in an agent role, has a Network Interface becoming down.

SNMP V1

3 - Link Up

link up trap

A Link Down snmp trap signifies that the SNMP entity, acting in an agent role, has a Network Interface becoming up.

SNMP V1

4 - Authentication Failure

authentication trap

An Authentication Failure snmp trap signifies that the SNMP entity, acting in an agent role, has received a protocol message that is not properly authenticated. 

SNMP V1

5 - Egp

egp trap

EGP Router snmp trap

SNMP V1

6 - Enterprise

enterprise trap

An Enterprise snmp trap signifies that the SNMP entity, acting in an agent role, has sent a snmp trap that is defined in the private MIB section. Enterprise

unknown

 

unknown trap

unrecognized trap

SNMP V2 Notification

V2

SNMP v2c notification

snmp v2c trap or snmp v2c notification type

SNMP V2 Notification

V2

SNMP v2c notification

snmp v2c trap or snmp v2c notification type

SNMP V3 Notification

V3

SNMP v3 notification

snmp v3 trap or snmp v3 notification type

SNMP V3 Notification

V3

SNMP v3 notification

snmp v3 trap or snmp v3 notification type

 

Si vous avez défini le filtre associé à un Trp SNMP les actions seront exécutées.

 


www.loriotpro.com