snmp

Better Performance: WMI vs SNMP?

What has better performance under Windows for retrieving stats like CPU/Memory/Disk usage, etc.? WMI or SNMP? Thanks, Steve ...

Framing V1 traps in WINSNMP

I am writing an interface code using WINSNMP for SNMP manager application . The manager application expects traps in v1 format ( serialised - as it is received from wire). My interface code (using WINSNMP) receives the traps in v2 format , However I am not able to convert those traps to SNMP v1 trap format. I have set the translate mode ...

SNMP++ same user, different password

I'm using SNMP++ for a monitoring project. It seems if I set the same user on different boxes, with different passwords, SNMP++ tries to pull the one of the passwords out of the USM table to use on both servers.I was going to use the localized users, but you would have to do discovery first to get the engineId. Any ideas on how to get it...

SnmpExtensionTrap has a size limit?

I am working on a problem in SNMP extension agent in windows, which is passing traps to snmp.exe via SnmpExtensionTrap callback. We added a couple of fields to the agent recently, and I am starting to see that some traps are getting lost. When I intercept the call in debugger and reduce the length of some strings, the same traps, that w...

Mibble MIB Parser - extracting comments from the mib.

I am using the Mibble MIB Parser to extract all simple data types from an MIB file. I've been successful until my attempt to extract comment text. Take the following module as an example: invBookList OBJECT-TYPE SYNTAX INTEGER { mobydick(1), -- call me ishmael paradiselost(2), -- aComm...

How do I use SNMP to monitor job status on a printer?

I've been trying to figure out how to monitor job status via SNMP and I have found a solution on Xerox based printers (using Xerox implemented mibs), but I'm looking for something that will work across other vendors' printers. I see the Job Monitoring rfc2707 looks like the proper mib to be using but it doesn't appear that many printers ...

Software development using SNMP

Hi!! I would like to write a code in java for network management and monitoring using snmp. Can somebody tell me how to go about with this? what are the inputs that are needed? Thanks, ann ...

How to send SNMP traps with C# ?

In my application I have been asked to send error codes via SNMP traps. I believe that this will need to be done using version 3 because of the security issues with versions 1 and 2. Is there anything in the .net framework to do this or should I be looking to buy a third party library. ...

How do i get printer model via snmp in c#?

Basicaly what i want to do is retrieve hp's Printer Model from network printer via SNMP in c#. Searching SO didn't yield anything usefull. Where do i start? ...

PHP monitor VPN connection

I have a a sonicwall nsa 4500 and i would like to monitor the vpn tunnels on it. Is this possible? I have walked the snmp and I didn't see anything that was related to VPN tunnels. Anyone have ideas on this? ...

How do you handle SNMP v3 Traps in Ruby?

I currently have a script that listens for incoming traffic for e-mail / syslog / and SNMP v1, I'm looking to add functionality for SNMP v3 but the ruby SNMP library doesn't include v3 support. I prefer it to be a ruby only solution because this tool will be used by others and I don't want to require them to install something like net-s...

SNMP Library for iPhone

Are there any open source libraries for doing SNMP GET/SETs using the Objective C/Cocoa Touch (for IPhone)? ...

What is a simple way to receive SNMP traps in Scala?

I'd love it if there is an awesome native Scala library for SNMP like there is Dispatch for HTTP but I can't find one. Is there one? Baring that, should I use a Java library like SNMP4J? What I want to do is so simple that it almost seems like overkill: I just want to listen on a given port for SNMP messages (which will always be in the ...

What is a good way to show a floating point number via SNMP?

I am coding an SNMP Agent. I need to send values that have a decimal point to an SNMP Manager. I have a couple options: Truncate the number. Multiply by a constant. Ask Stackoverflow. If I truncate the number I lose a lot of information that I need. If I multiply by a constant, then the manager will display strange units that the ...

Checking if MIB object is DisplayString

Hi! I'm using java Mibble library to process MIB files and create MIB implementation for my snmp agent. And have a little problem with that: There is a DisplayString type that is the representation of OCTET_STRING but can contains only 7bit ASCII chars. There is also type like AdminString that is another represetnation of OCTET_STRING ...

What is the Backwards Compatibility of SNMP?

I am working on a network monitoring application and need to know what versions of SNMP are backwards compatible with the other versions. I am writing the program in Java and using SNMP4J to query OIDs on particular devices. Within SNMP4J, you must specify the version of the SNMP device when setting up the target. Currently, there is SN...

variable instance number in snmp traps

Suppose I'm writing an SNMP v1/2 agent. Is it mandatory to append the instance number to the variable OIDs in a trap PDU? In SNMP V1 for instance a trap is defined in RFC 1157, with these fields: Enterprise Agent address Generic trap type Specific trap code Time stamp Variable bindings The "variable bindings" section consist of a l...

how to read SNMP for bandwidth using php

Hello I would like to get data using SNMP from a router. The data shall be used for a graph I guess using the jquery flot. But my issue is I do not know how to get my webpage to read the data using SNMP from the router. I normally use MRTG but I would like to learn how to handcode it if possible. BR. Anders ...

what are needed to make my own SNMP Agent and server??

Hii, I want to make my own snmp server and agent.with my own MIB and OID's. how can i do it??and where to start?? And if i want to use windows SNMP service and extend it and insert my own OID's into its MIB then ,is it possible??.n if yes,how can i do this?? ...

Is there a simple way to map snmp(MIB) strings to OIDs in Perl?

Is there a simple way/module to map snmp(MIB) strings to OIDs in Perl? E.g. I start with "sysUpTime.0" and get "1.3.6.1.2.1.1.3.0". As far as I can see, Net::SNMP expects you to have them already mapped. ...