3

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??

Divya mohan Singh
  • 485
  • 2
  • 7
  • 18
  • From bitter experience, SNMP is a pretty lousy protocol for what it does (it does have an excuse, it was written for machines of extremely limited capabilities). If you have affirmative reason for using it, have fun. – msw Mar 12 '10 at 13:33
  • Thanx msx,..can u suggest me some other protocol which will provide me all the features which SNMP provides us?? – Divya mohan Singh Mar 13 '10 at 08:43
  • SNMP is still a feasible protocol. It was designed for simple applications, so if you don't plan a complex product, why not use it? Even companies such as Cisco, HP use SNMP still. Its replacement TR-069 is not yet popular. – Lex Li Mar 13 '10 at 10:48
  • If you plan to extend Windows SNMP service, you can start from here, http://technet.microsoft.com/en-us/library/cc750391.aspx – Lex Li Mar 13 '10 at 10:53

2 Answers2

3

There is an excellent open-source implementation for the .NET framework called SharpSnmpLib. It can implement a normal SNMP server, and it allows you to load your own custom MIBS.

A couple of tips:

  • You can find existing MIB's at oidview or the Cisco Mib Browser
  • Avoid v3 and the RFC's that belong to it (in fact, I'd avoid the RFC's at all, they're confusing and cover many areas that were not adopted)
  • Test early and often with machines as close to the production setup as you can
Andomar
  • 232,371
  • 49
  • 380
  • 404
2

If you ever start implementing any standardized protocol, the first step is to read the standards defining it. In case of SNMPv3. the relevant standards are

RFC:s

The good (and bad) thing about RFC's is that they usually very clearly state what you MUST, SHOULD, MUST NOT, SHOULD NOT and MAY do in your implemention.

Community
  • 1
  • 1
Kimvais
  • 38,306
  • 16
  • 108
  • 142