• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • Last Modified:

About SNMP

I am trying to  build a application to get some parameters from CISCO Router
or CISCO Switch Using SNMP protocol in vb6,
Can anybody give me some suggestion?

If there is a good sample code,
I will increase the points.
1 Solution
The best solution is to look at
they sell third party software which will let you talk to your router.
You can get a trial version to learn with.  It has good documentation and help.

Here is an example of what the code would look like;

Public Function getmibvalue(itsoid As String) As Variant

'Read the value stored at mib address itsoid
' Input parameter itsoid- the oid address of the item to be read
' Return - the value read as a variant

    Dim value As SnmpVariable
    Dim returned As Variant
    If gblnDebug = False Then
      ' Start the SNMP manager - see Dart documentation

      frmSNMP.Manager1.AgentName = UnitIP
      frmSNMP.Manager1.AgentPort = 161
      'Get the sysContact for the agent using the AgentVariable property
       Set value = frmSNMP.Manager1.AgentVariable(itsoid)

       returned = value.value
     ' Close the SNMP manager
       Unload frmSNMP

       getmibvalue = returned
        getmibvalue = TestMIB(itsoid)
    End If
End Function

You can also get source support code for SNMP++, which will do the same things from the SNMP++ list at Intel.  The trouble is that you have to compile the code yourself.

If you want to do-it-yourself you might start with

If you want pointers to specific subjects ask, and I'll post answers or links.
hxbAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now