472,353 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

SNMP access using ASP

Is it possible to connect to devices and read SNMP data with ASP? I did a
search and all I could find was utilities for sale to do it, wondered if it
can be done using straight ASP.

We are using InterDev 6, IIS5 on W2KServer.

Thanks!

Jul 19 '05 #1
3 5205
Short Answer:
SNMP is not exposed as a COM interface natively, so ASP cannot access it.

Longer answer:
It depends on if you are looking to read actual SNMP data or are interested
in its equivalent. In other words, are you (for example) looking for
network packets dropped on the web server and don't care how you get the
numbers or are you looking to read remote SNMP agents (e.g. a switch)?

For local stuff (or other Windows based servers Win2k and later) you can use
WMI to get most of the data you would want. That said, writing WMI code is
not a trivial exercise. It is possible (and non-trivial) to wrap the SNMP
(or WMI for that matter) with COM objects that are easier to use from script
code.

Pat
"Kevin Ingram" <tc*@myrealbox.com> wrote in message
news:bu********@enews2.newsguy.com...
Is it possible to connect to devices and read SNMP data with ASP? I did a
search and all I could find was utilities for sale to do it, wondered if it can be done using straight ASP.

We are using InterDev 6, IIS5 on W2KServer.

Thanks!

Jul 19 '05 #2
Wanting to read and control remote devices using SNMP, such as switches,
routers etc.

Would this be more appropriately accomplished using VB or C++? We have some
experience in VB, almost none in C++ but we can learn if needed : )

Once we develop an app to handle the SNMP, we can use ASP to input/output
the data to the app, just need a little advice which direction would be best
to write the SNMP app.

We are using Visual Studio 6 and Windows2000 Server, if that factors any
limits to which way to advise us.

Appreciate any advice you might offer.

Thanks!
"Pat [MSFT]" <pa******@online.microsoft.com> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
Short Answer:
SNMP is not exposed as a COM interface natively, so ASP cannot access it.

Longer answer:
It depends on if you are looking to read actual SNMP data or are interested in its equivalent. In other words, are you (for example) looking for
network packets dropped on the web server and don't care how you get the
numbers or are you looking to read remote SNMP agents (e.g. a switch)?

For local stuff (or other Windows based servers Win2k and later) you can use WMI to get most of the data you would want. That said, writing WMI code is not a trivial exercise. It is possible (and non-trivial) to wrap the SNMP
(or WMI for that matter) with COM objects that are easier to use from script code.

Pat
"Kevin Ingram" <tc*@myrealbox.com> wrote in message
news:bu********@enews2.newsguy.com...
Is it possible to connect to devices and read SNMP data with ASP? I did a search and all I could find was utilities for sale to do it, wondered if

it
can be done using straight ASP.

We are using InterDev 6, IIS5 on W2KServer.

Thanks!


Jul 19 '05 #3
I believe that most of the SNMP libraries lack a COM interface, so C++ is
likely going to be the only way to go. Having done some of this in the
distant past, it was not trivial to write (it may have improved in the
intervening 6 years).

But, yes, if you write a COM object that wraps the calls to the SNMP
libraries, then you could instantiate it from ASP/VB and pass whatever you
would like. I don't know how much the SNMP COM objects are, but I would
recommend comparing the cost to the time involved.

VS6 should be fine and Win2k is OK too. The tricky bit is getting the
control codes from the switch/router vendors. SNMP is just a protocol, not
an implementation. So, every vendor has their own control codes (that you
send over the protocol) to get various information. One of the big
value-adds that management software (e.g. OpenView and most others) brings
is that they have plug-ins for virtually every major HW vendor.

Pat

"Kevin Ingram" <tc*@myrealbox.com> wrote in message
news:bu********@enews2.newsguy.com...
Wanting to read and control remote devices using SNMP, such as switches,
routers etc.

Would this be more appropriately accomplished using VB or C++? We have some experience in VB, almost none in C++ but we can learn if needed : )

Once we develop an app to handle the SNMP, we can use ASP to input/output
the data to the app, just need a little advice which direction would be best to write the SNMP app.

We are using Visual Studio 6 and Windows2000 Server, if that factors any
limits to which way to advise us.

Appreciate any advice you might offer.

Thanks!
"Pat [MSFT]" <pa******@online.microsoft.com> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
Short Answer:
SNMP is not exposed as a COM interface natively, so ASP cannot access it.

Longer answer:
It depends on if you are looking to read actual SNMP data or are interested
in its equivalent. In other words, are you (for example) looking for
network packets dropped on the web server and don't care how you get the
numbers or are you looking to read remote SNMP agents (e.g. a switch)?

For local stuff (or other Windows based servers Win2k and later) you can

use
WMI to get most of the data you would want. That said, writing WMI code

is
not a trivial exercise. It is possible (and non-trivial) to wrap the SNMP (or WMI for that matter) with COM objects that are easier to use from

script
code.

Pat
"Kevin Ingram" <tc*@myrealbox.com> wrote in message
news:bu********@enews2.newsguy.com...
Is it possible to connect to devices and read SNMP data with ASP? I
did a search and all I could find was utilities for sale to do it, wondered

if it
can be done using straight ASP.

We are using InterDev 6, IIS5 on W2KServer.

Thanks!



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Matthew Bell | last post by:
Hi, I'm looking for a high-performance SNMP manager toolkit (SNMPv1 / v2, GET / GETNEXT / GETBULK) I can use with Python on Windows2K/XP. I...
1
by: dan byers | last post by:
hey everyone, i'm working on a system to monitor devices through SNMP. i'm using the Net::SNMP modules by D.Town. i try to load the snmp...
1
by: ZacBowling | last post by:
Does anyone have an idea of how to access the SNMP API or WMI SNMP provider in C#/.NET? I need to query a Ascend MAX's SNMP service with a custom...
0
by: Chris | last post by:
For the IBM DB2 Development following this group. SNMP is coming back in a big way. Changes in Version 2c and adoptions of Version 3 are ushering...
0
by: ramgce2003 | last post by:
Dear all... We have an NMS Software(Created by using GUI(Window) based application in VC++) already used to comminicate to our SNMP Agent ...
2
by: Sleurhutje | last post by:
Hi, I need to add SNMP functionality to an existing app. I need to be able to read specific real-time data from another system using SNMP traps....
4
by: Oliver | last post by:
Hi group: I'm running FreeBSD 6.2 with PHP5.2.4. I get this error when I try to start PHP: PHP Warning: PHP Startup: Unable to load dynamic...
1
by: Dirk Van de moortel | last post by:
{ OOPS, posted this to moderated group perl.cpan.discuss as well, so it can take a while to get through, if it gets through at all Otherwise sorry...
7
by: moon1 | last post by:
how will I change the code the 1st code according to the 2nd one? 1st code sub snmpGet(@) { # Assign arguments my ($deviceName)=$_; ...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.