IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C++Builder Discussion :

OID SNMP capture paquets


Sujet :

C++Builder

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    106
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 106
    Par défaut OID SNMP capture paquets
    bonjour, jai besoin de votre aide pour mon projet. J'utilise SNMP pour recuperer des valeurs de la MIB de mes postes sur le reseau. Mais je ne sais pas comment faire pour capturer les paquets. pouvez vous m'aider ?? merci

  2. #2
    Membre chevronné

    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    531
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 531
    Par défaut
    tu utilises quoi une librairie SNMP ou un composant intégré comme avec INDY ??
    regarde dans ce dernier cas:

    Summary
    Implements a Simple Network Management Protocol (SNMP) client.
    Description
    TIdSNMP is a TIdUDPClient descendant that implements a Simple Network Management Protocol (SNMP) client, as described in the Internet Standards document:
    RFC 1157 - A Simple Network Management Protocol [SNMP]

    The Internet Activities Board recommends that all IP and TCP implementations be network manageable. This implies implementation of the Internet MIB, as described in the Internet Standards documents:

    RFC 1155 - Structure and Identification of Management Information for TCP/IP-based Internets

    RFC 1156 - Management Information Base for Network Management of TCP/IP-based internets

    SNMP allows devices in the network to exchange information about themselves (like parameters and statistics). Devices have current status that indicates if the running conditions are healthy and many interesting knowing about its neighbourhood (active stations, statistics, problems).

    SNMP standardizes the types and uses for "interesting" device information stored across many different vendors products using the concept of the Management Information Base (or MIB). The MIB specifies what kind of configuration, status and statistical information are associated with a device.

    The information may be stored at device as a combination of switchs, settings, hardware counters, in memory variables and tables or files. This can be considered conveniently as a database. SNMP standards, use this logical database of network management information. It is called a MIB (Management Information Base). The internal structure of those MIBs are not important for the manager, but the way and the accessibility of the data base is very important.

    TIdSNMP provides properties and methods that allowing monitoring of network state at a significant level of detail using polling. TIdSNMP provides properties and methods to configure, send, and receive solicited SNMP messages.

    TIdSNMP also provides properties and methods to configure, send, and receive unsolicited SNMP messages (traps).

    TIdSNMP uses port number 161 specified in the Port property, as required in the SNMP protocol, to receive UDP datagrams using the basic encoding rules of ASN.1. on the host with which it is associated. TIdSNMP uses port number 162 specified in TrapPort to receive unsolicited trap messages.

    TIdSNMP makes extensive use of the TSNMPInfo class used to communicate management information among management entities using the exchange of SNMP protocol messages. SNMP messages consist of a version identifier, an SNMP community name, and a protocol data unit (PDU).

    TIdSNMP can be used to poll a managed SNMP device, or to build a SNMP management console for SNMP-enabled agents.


    Todo
    !!! Does not use PDUSetRequest or PDUGetResponse.
    !!! Discuss PDU (Protocol Data Unit)

    SNMP agents which generate SNMP messages must perform the following top-level actions:


    Construct PDU

    Pass Community, transport address source and destination, and PDU

    build response message

    serialize response message

    Similarly, the top-level actions of a SNMP protocol entity which receives a message are as follows:

    parse incoming data

    verify SNMP version number

    pass community and data to the destination transport

    parse response message
    See Also
    TIdUDPClient TSNMPInfo

Discussions similaires

  1. OID snmp pour les switchs Alcatel-Lucent
    Par tdloic dans le forum Supervision
    Réponses: 7
    Dernier message: 10/04/2014, 23h58
  2. Windows seven - OID SNMP
    Par laurent1 dans le forum Windows 7
    Réponses: 1
    Dernier message: 16/05/2011, 16h04
  3. OID snmp
    Par xqbal dans le forum Réseau
    Réponses: 27
    Dernier message: 29/08/2007, 17h20
  4. Capture paquets WinPcap4.0 C++ CLI
    Par abbd dans le forum C++/CLI
    Réponses: 5
    Dernier message: 03/07/2007, 19h53
  5. [SNMP] OID de l'IP, disque dur et RAM?
    Par maire106 dans le forum Développement
    Réponses: 4
    Dernier message: 08/01/2005, 21h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo