Re: how to make a device snmp enabled??

Pushpa Thimmaiah <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAASqVJXnnxciCsw=ObEkhd+GO_svooLZRxCzaQxb75BesgErGQ@mail.gmail.com>
Hi,

1. Download net-snmp source code and use cross compiler to compile.
net-snmp souce code has text file 'INSTALL' , it has
more info on compiling net-snmp source code for different arch/platform.
2. After compilation, copy net-snmp libraries, config files and snmpd on to
hardware and run/execute snmpd

   snmp provides standard mibs(system, snmpframework etc...) verify
snmpget/snmpwalk snmpset commands .
You are able to manage the hardware. :)

3. To add your own mib (private mib). This needs practice, however tried to
explain briefly
[Ref:
http://net-snmp.sourceforge.net/wiki/index.php/TUT:mib2c_General_Overview
  http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mib_module/
  3a. Write mib file for the objects [Refer files inside net-snmp/mibs/]
  3b. Use tool 'mib2c' to generate template. They .c .h files (priv_mib.c
priv_mib.h) and only templates, its developer/organization must modify set
and get module according to requirement. [Refer already implemented
standard mibs eg: net-snmp/agent/mibgroup/]
  3c. copy .c and .h files (priv_mib.c priv_mib.h) to
net-snmp/agent/mibgroup/new_folder
       create new_folder.h in net-snmp/agent/mibgroup/new_folder.h and add
line 'config_require(new_folder/priv_mib)'
  3d. RECONFIGURE net-snmp  source code to compile your new priv_mib
    i.e use  option '--with-mib-modules= append your mib' eg:
--with-mib-modules=new_folder
  3e:  RECOMPILE net-snmp source code, fix any compilation error
  3f: copy net-snmp libraries and snmpd on to the hardware
  3g: use snmpget to query on new mib

Hope it helps.

Thanks,
Pushpa.T

On Tue, Dec 27, 2016 at 2:09 PM, deepak.sachan deepak.sachan <
[email protected]> wrote:

>
> Hello friends
>  We have developed a hardware /device for communication  purpose and we
> make it to SNMP enabled so that it can be remotely configured & Monitored .
> So what are the basic requirements. We have a processor with Linux OS on
> the device.
>  My main concern is How we developed MIB for that device. And how MIB can
> be integrate with snmp daemon.
>
> ​Thanks Deepak
>
>
> The contents of this Email communication are confidential to the
> addressee. If you
> are not the intended recipient you may not disclose or distribute this
> communication
> in any form should immediately contact the sender. The information,
> images, documents
> and views expressed in this Email are personal to the Sender and do not
> expressly or
> implicitly represent official positions of DRDO and no authority exists on
> behalf of
> DRDO to make any agreements, or other binding commitment by means of Email.
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.