Questions tagged [winsnmp]
18 questions
3
votes
2 answers
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…

Divya mohan Singh
- 485
- 2
- 7
- 18
2
votes
2 answers
Help with SNMP in C++?
I'm trying to write a simple program using WinSnmp in C++. There is very little information out there regarding this, and I am completely lost. All I want to do is query the printers on my network & read the info sent to me. Here is my code:…

Ashton
- 81
- 3
- 11
2
votes
1 answer
error LNK2028 when calling the WinSnmp function SnmpStartup?
I'm trying to write a simple demo application in C++. I just want to query some of the printers on my network and sort the incoming info into a few database tables but I get this error when compiling my code:
Error 1 error LNK2028: unresolved…

Ashton
- 81
- 3
- 11
2
votes
1 answer
WinSNMP v1traps
I'm using WinSNMP in c++ to send snmp traps. For backwards compatibility I’m required to send v1 snmp traps. WinSNMP works with v2 traps but is capable of converting those v2 traps to v1 when sending the trap. I use…

J W
- 1,679
- 4
- 20
- 28
2
votes
0 answers
C++ SNMP Extension Agent - how to work with AsnSequence?
What I need is to create SNMP agent for monitoring our software systems.
I’m using "winsnmp" for writing my SNMP Extension Agent in Visual C++. The output is x64 DLL, which is registered in Windows registry, loaded by "SNMP Service" and properly…

xeonya
- 31
- 3
1
vote
1 answer
SnmpRegister() fails in WinSNMP
I just started with WinSNMP (in Visual Studio 2005), and have written the following code. (This is a snippet.)
m_Status = SnmpStartup(&m_MajorVersion, &m_MinorVersion, &m_Level, &m_TranslateMode, &m_RetransmissionMode);
ASSERT(m_Status !=…

c0da
- 1,009
- 3
- 14
- 28
1
vote
2 answers
Help with SNMP in C++?
I've been trying to build an application in C++ using WinSNMP, and although I'm slowly making progress, I keep running into issues. So far, my program tries to startup, create, and open an SNMP session, sets a port, and then attempts to listen to…

Ashton
- 81
- 3
- 11
1
vote
1 answer
SNMP trap not recognized by Manager
I'm attempting to create a sample application utilizing Microsoft's WinSNMP library to create an example of a trap. See the code sample below:
//Send a trap;
LPSTR strSrcAddr = "10.12.0.21";
LPSTR strDstAddr = "10.2.255.8";
UINT32…

ZeroDefect
- 663
- 1
- 8
- 27
1
vote
0 answers
How to solve SNMPAPI_NOOP error?
I'm new around here but I hope to find a answer for my question. I'm supposed to write an WinSNMP application, I already learned how the process has to be and my code is working fine until it comes to receive the message.
This is part of code where…

mcanerim
- 11
- 1
1
vote
0 answers
Cannot receive SNMP Trap with WinSNMP APIs
I'm writing a simple and small SNMP manager program with WinSNMP.
But it cannot receive trap events...
Can anyone help me?
Here's sample code:
#include
#include
SNMPAPI_STATUS CALLBACK MySnmpCallback(
HSNMP_SESSION…

Jaming
- 11
- 2
1
vote
1 answer
Using SNMP set message on MS Windows SNMP agent
State of TCP connection (tcpConnState) is writable per RFC 1213. Everything is fine when i reset this tcpConnState value from established (5) to deleteTCB (12) with SNMP set message with SNMP Agent from DMH software…

Thanh Le
- 11
- 2
0
votes
2 answers
How to send a SNMP GET request with wrong type using net-snmp?
How could I send a net-snmp GET request, such that:
netsnmp_check_vb_type
will return SNMP_ERR_WRONGTYPE?

Andrei
- 1,862
- 4
- 15
- 15
0
votes
1 answer
How to capture and forward SNMP messages using WinSNMP?
I'm fairly new to SNMP/WinSNMP and I'm trying to access what it would take to accept SNMP traffic on ports 161/162 and forward it to another device. I would like to be able to examine messages and possibly modify them before passing them to the…

bdristan
- 1,048
- 1
- 12
- 36
0
votes
1 answer
SNMP Broadcast on Windows
I'm writing an SNMP agent in windows. The agent responds fine simple get and get-next request sent directly to computer's ip address. But when I do a SNMP broadcast, the computer receives the packet but does not anwer that. Why is that? The firewall…

SNMP Dev
- 1
0
votes
1 answer
Does anyone has Win SNMP API C++ code example
SnmpSendMsg function usage to send SNMP Trap on Windows.
Does Win SNMP API support IPv6

Avinash
- 12,851
- 32
- 116
- 186