How SNMP agent gets data from snmp devices will work c# - snmp

I've been looking around the net for a guide or tutorial on how to start on using C#.NET to query SNMP devices but I have been unsuccessful.
I am using Sharpsnmplib because of MIT license.
I didn't understand about the flow of data that how devices will communicate with SNMP agent, is there any event for which agent will listen. How devices send traps to agent and then to manager.
What is v1, v2c and v3.? Is this device configuration.
I guess I have to create some window service and periodically (timer based) execute SendTrapV1 method and in another service(SNMP manager) I have to listen to these traps.
My requirement is to identify the antenna level trap of Impinj Reader and have many SNMP devices in the network.
I have to implement also auto-discovers facility to discover SNMP devices installed in the network.
Any project or code will be helpful in this case.

Related

Send snmp trap message to net snmp

I am trying to send a trap message from my agent to net-snmp but in my agent it looks like it's fine, however net-snmp doesn't show the message.
I want to know if net-snmp knows how to handle a trap message?
Normally, you would use net-snmp as an Agent.
Agents generally send traps, and don't receive them. They need to be able to handle get-requests, set-requests and get-next-requests, but not traps.
The system which receives SNMP traps is known as a Manager. Net-snmp is not an SNMP manager, but it contains all the (C) programming libraries needed for you to create your own SNMP manager, should you want to. There is also snmptrapd, which can log incoming traps into a file, or pass them to a perl script for processing.
Perhaps you're indeed asking about snmptrapd?
If traps are not logged on the receiver, normal network troubleshooting procedures apply. Snoop the traffic using Wireshark, first on the receiving system, then if needed, on the sending side. This can verify whether the traffic is dropped by the network (firewalls etc).
If you want to study the basics of the protocol, this RFC is a good starting point: "Protocol Operations for Version 2 of the Simple Network Management Protocol" http://www.ietf.org/rfc/rfc1905.txt

How to build an bulk sms sender or voip server?

I want to know how can I build my own Sms service provider?
In another say; What is needed to have a system to inject sms messages to the mobile network systems freely or is it possible at all?
with VoIP server we can do voice and video and text messaging through internet; but what about from internet to the land line or mobile network?
How Skype, smartvoip, etc. do this?
Please give me a direction that I could go through.
You need some sort of interface to the Mobile network to make this work. Your choices include:
build a system with a GSM/UMTS card or phone which you control to send SMS messages into the network. This will need a valid SIM and contract (and the small print may say that you are not allowed to use it to provide an IP to SMS service to others). If you google 'Asterix SMS Gateway' you can find several open source examples. You could also look at http://www.kannel.org/overview.shtml, although I am not sure how actively this is being maintained these days.
Build a front end for your SMS service and use an existing back end SMS service in whatever your target market is - i.e. connect directly to your local operators SMSC, most likely using SMPP protocol. This assumes the operator provides this service in your target network/market.
Use an SMS aggregator service such as MBlox or Clickatell

Communicationg with NDIS on WinXP/7

There is device connected to PC via 1Gbit Ethernet. WinXP/7
I want to capture data in the following way:
PC sends command to devices (initiate data acquisition)
Device is sending data to PC
User application waits for acquisition
Driver saves data in the memory
Device sends command to notify that it finished acquisition
Driver generates interrupt and user application starts reading data from driver
I have no idea how to implement that.
There is NIC driver. There is NDIS. Can user application communicate with NDIS?
Do i need to write additional driver to communicate with NDIS?
Your problem really has two parts:
How to send commands to the device
How to capture data sent from the device
The first problem has two possible solutions, depending on whether your device accepts commands encapsulated in IPv4/IPv6, or whether it requires some other low-level protocol. If the device accepts commands encapsulated in IPv4/IPv6, then just use the sockets API in your favorite programming language.
If the device requires its own non-IP protocol, then you need to add an NDIS protocol driver. There is a sample protocol driver that is included with the Windows Driver Kit; this driver essentially opens a channel that allows a usermode application to send any kind of packet. (This would be a security issue if it were deployed widely, which is why it's not a built-in feature of the operating system.) You may need to modify the protocol driver to selectively listen only for control messages from your device.
The second problem — packet capture — is already solved. You should be able to pull existing software off the shelf and integrate it in your solution. Microsoft Network Monitor has an API that you can use to easily start/stop packet capture, and iterate through the captured results. Alternatively, some people use WinPcap.

How to send an snmp request to any computer on LAN?

I want to build an application using snmp for searching my LAN and exploring the devices which have shared some resources. I need some assistance to start with it, I have trying to do the same using net-snmp, but still no success.
SNMP is on UDP, so you can simply do a broadcast.
It is quite normal that net-snmp times out in such cases, as no SNMP agent would like to respond to you or no SNMP agent is there in the same LAN.

Cisco IP Phone Call Manager handle events

I'm new on cisco IP Phones.
I have a cisco call manager system also a 7970 Ip phone.
The phone cominicates with Cisco Call Manager application.
I want to listen events when user logon and send some commands to phone.,
Is there any idea about this task?
Is there a way to got events from cisco call manager or I have to listen up the ports of IP phone?
Cisco JTAPI is the best API to perform 3rd party call control and get events about IP phone state. You'll write an application in Java that uses the Cisco JTAPI jar. This api will let you subscribe to a specific phone and you'll be able to get events like OnHook, OffHook, Connected, Disconnected, etc.
JTAPI is fairly complicated. Cisco has a product called Cisco Unified Application Environment that can help simplify the development task. It isn't free, however.
Is the phone registered as SIP phone or SCCP phone .
Traces from the call manager are the best way of finding out what is happening in the sytem.
You can also look for packet captures on the phone in those captures you can see SCCP events and SIP events
for example you can see events like
SIP INVITE , OK , BYE..etc.
apart from this call manager traces SDI and SDL traces for "call manager service" will give you whole lot of information you need.
This link will help you take traces in call manager:
http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a0080094e89.shtml

Resources