This is a discussion on Re: Is it necessary to be root to install Net-SNMP within the SNMP Users forums, part of the Networking and Network Related category; 2008/5/9 Raghavendra Prasad <raghavendra.p@gmail.com>: >>>OK - so install the perl modules (...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
2008/5/9 Raghavendra Prasad <raghavendra.p@gmail.com>:
>>>OK - so install the perl modules (manually) into a suitable location, >>>and tweak the @INC search list to look there. > > Could you please explain in more detail. Are you referring to fiddling > with Make file? No. I mean installing these modules manually. i.e. rather than cd perl ; make install which will attempt to install the modules into the system location (typically requiring root access). Instead do something like: mkdir $HOME/perl mkdir $HOME/perl/NetSNMP cd perl cp SNMP.pm $HOME/perl/ cp ASN/ASN.pm OID/OID.pm default_store/*.pm $HOME/perl/NetSNMP then tweak the mib2c script to add use lib $HOME/perl; so that the script will look there as well. Note that this is completely untested, and I'm no perl expert. But it ought to work. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
|
|||
|
2008/5/29 Raghavendra Prasad <raghavendra.p@gmail.com>:
> ./configure --with-mib-modules="dio_modules/snmpData dio_modules/controller > dio_modules/controller_trap dio_modules/general dio_modules/general_trap > dio_modules/channelA dio_modules/channelA_trap dio_modules/channelB > dio_modules/channelB_trap dio_modules/coupler dio_modules/coupler_trap > dio_modules/standardPwrAmplif dio_modules/standardPwrAmplif_trap > dio_modules/cabinet dio_modules/cabinet_trap dio_modules/klystronPwrAmplif1 > dio_modules/klystronPwrAmplif1_trap dio_modules/klystronPwrAmplif2 > dio_modules/klystronPwrAmplif2_trap dio_modules/inventory > dio_modules/inventory_trap dio_modules/config dio_modules/config_trap > dio_modules/sys dio_modules/sys_trap dio_modules/sysKp > dio_modules/sysKp_trap dio_modules/rmsGeneral dio_modules/rmsGeneral_trap > dio_modules/rcvr1 dio_modules/rcvr1_trap dio_modules/rcvr2 > dio_modules/rcvr2_trap" You might find it easier if you created a file 'dio_modules.h' containing config_require( dio_modules/snmpData ) config_require( dio_modules/controller ) : config_require( dio_modules/rcvr2_trap ) Then you could simply invoke configure --with-mib-modules=dio_modules --with-persistent-directory..... rather than listing all the modules every time. > It am not able to get an agent with second configuration. What do you mean by this? Does the compilation fail? If so, what are the last few lines of (cd agent ; make ) Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |