Re: new to SNMP



Thank you Farooque comments and support.
I am going to contact the maker of the switch.

--
Best Regards


"Farooque Khan" wrote:

Hi,

Most of what you understood about SNMP is correct. You will need to know the
MIB from the switch vendor. That MIB will contain all the objects that the
switch supports (or exposes). You will have to find out what you need from
this MIB and get the OID for it from the MIB. You can then use the OID to
get/set the values (MAC may not be set). Usually the enterprise tree in the
MIB 2 (a standard) contains the custom built MIBs. Hence your vendors MIB
may also start from the enterprise MIB so the OID may contain the enterprise
OID part as well as the part assigned by the vendor. Some of the information
you need can also be found using MIB 2 which is a standard and is
implemented by all managed devices.

-Farooque


"David" <David@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C52362D8-81E0-4EE1-8999-5E205AFD3EDE@xxxxxxxxxxxxxxxx
Hello all,

I have been assigned a task of developing a program to retrieve
information
from a managed switch. Specifically the computers MAC Address and which
port
on the switch it is connected to. I have been lead to believe that this
can
be accomplished using SNMP.

I have been trying to research this task and I am developing an
understanding of SNMP. Though, my understanding is shaky. My intent is to
use
WinSNMP (SNMP Management API Functions) running on Windows XP.

What I think I understand it is a SNMP "agent" which runs on a managed
device (the switch) and the application I need to develop is a "Network
Manager." The network manager can open a session with the device using
the
following information:

The device's IP Address
Community String (public or private)

Once a session is open it can execute three basic commands: Get, Set and
GetNext. These commands are dependant on the Object Identifier (OID) of
the
managed device (in this case the switch). My understanding is that I can
get
the required information (computers MAC address and which switch it is
connected to) using Get and GetNext.
The problem I am having and can't seem to get by is getting the OID. Or
how
to properly use it. Are there other commands besides the ones listed?

I have found code that illustrates the listed functions and how to prepare
the OID in a VarBindList to pass it to each on of these functions. But, I
have been unsuccessful in getting the example programs to connect to a
managed device. I guess the main problem I am having is that I have never
seen this work or I don't have a clear understanding that my approach is
correct.

I have found site that talk about Management Information Base (MIB). This
has seemed to confuse me more. A MIB is a file implemented by the
developer
of the device? And, the MIB will contain the OID needed to execute
commands
on said device? If this is the case all I need to do is access the MIB to
retrieve the OID to execute commands on a managed device? Or, am I
responsible for develop a MID and assigning an OID and incorporating it on
the managed device?

Also, the OID is confusing. Do I use the whole OID to get this
information,
or does a managed device have several OIDs. A base part consisting of the
first several numbers while the remaining numbers reference the specific
information needed?

Someone please help clear these issues up.

--
Best Regards




.



Relevant Pages

  • Re: new to SNMP
    ... the manager application does not use an MIB but just uses the OIDs ... I am going to contact the maker of the switch. ... this MIB and get the OID for it from the MIB. ...
    (microsoft.public.win32.programmer.networks)
  • Re: new to SNMP
    ... You can search for an OID ... the manager application does not use an MIB but just uses the OIDs ... I am going to contact the maker of the switch. ...
    (microsoft.public.win32.programmer.networks)
  • Re: new to SNMP
    ... will my Network Manager application ... MIB from the switch vendor. ... this MIB and get the OID for it from the MIB. ... managed device. ...
    (microsoft.public.win32.programmer.networks)
  • Re: new to SNMP
    ... MIB from the switch vendor. ... this MIB and get the OID for it from the MIB. ... managed device. ...
    (microsoft.public.win32.programmer.networks)
  • Re: new to SNMP
    ... I am going to contact the maker of the switch. ... MIB from the switch vendor. ... this MIB and get the OID for it from the MIB. ... managed device. ...
    (microsoft.public.win32.programmer.networks)

Quantcast