This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: SNMP - How add variable to MIB
- To: Marek Łącki <lacki at rts dot com dot pl>
- Subject: Re: [ECOS] SNMP - How add variable to MIB
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 08 May 2001 14:39:04 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <00e301c0d7b7$14beced0$1400a8c0@rts.com.pl>
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