473,769 Members | 4,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5325
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******@onlin e.microsoft.com > wrote in message
news:ux******** ******@TK2MSFTN GP11.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******@onlin e.microsoft.com > wrote in message
news:ux******** ******@TK2MSFTN GP11.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
10042
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 wonder if anyone has got any suggestions? Commercial software is fine, as it's for a specialised in-house application. I've tried PySNMP which, while a fine piece of code (I've learnt a lot looking through it!), it's fairly CPU intensive in my application. I've also tried using UCDSNMP via...
1
3993
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 session request with a set of OIDs to make the system run through the large set of queries faster. the problem i'm seeing is that if the request method does the request, and one particular index doesn't exist on the device, the entire request bails and no results are returned, thus skipping over any...
1
532
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 MIB in .NET. I won't be modify anything on the MAX (even though a SET isn't anymore difficult then a GET or a WALK I don't think).
0
1668
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 in the adoption of SNMP back into the enterprise. Your customers are going to be asking for the inclusion of SNMP back into the monitoring suite. I'm not just talking about sending piddly SNMP traps. I mean the "real meat" stats you get out of your DB2 instances (physical-to-logical layout,...
0
1271
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 Note::: 1. Consider NMS Software(actas a client) running one one PC and SNMP Agent(act as a server) may be just another PC. 2. If I run the NMS Software, it will send SNMP request to SNMP
2
2370
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. Anyone know a good sample or libs that can do this?
4
4227
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 library '/usr/local/lib/php/20060613-debug/snmp.so' - Cannot open "/usr/local/lib/php/20060613-debug/snmp.so" in Unknown on line 0 Any ideas?
1
4182
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 for duplicate posting } We need to set up a server 2003 (or a win XP system) to accept and act upon traps sent out from a storage system. Responding to various error conditions, this system can be fully configured to send traps.
7
3524
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)=$_; # Device name to read from my ($community)=$_; # SNMP Community String my ($timeout)=$_; # Timeout value for SNMP-GET request my ($type)=$_; # SNMP Object Type
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.