This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SNMP - How add variable to MIB


Marek Łącki wrote:
> 
> Hi
> I stared a SNMP agent . This agent uses a standart MIB . I need to add
> extra variables.
> How to do it ?????.  Do I have to use a "mib2c"  ( perl script that is
> provided with eCos)
> If I have to use it , tell me how should I use it.

Although terse, I believe the README-eCos file in the utils/mib2c directory
does include all you need to know I believe. From that I determined:

setenv MIBS ALL (in csh)
export MIBS=ALL (in bash)
perl -I<location of PERL SNMP module from nsPerl> mib2c <mib to generate
code for>

You can get nsPerl from
http://cpan.valueclick.com/modules/by-category/05_Networking_Devices_IPC/SNMP/

I'll add this to the readme.


Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]