Mib Parsing trouble in using snmptranslate

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <32180_1294763401_4D2C8589_32180_53647_1_C0317F7BF873D14C98195164E79E24F5245D96D8F9@PUEXCB1E.nanterre.francetelecom.fr>
Good evening,

I'm Thibaut Allain and i'm currently working for Orange-FT group, a french telecommunication company.

I'm trying to build a shell script using the net snmp tools on a red hat server.
The script has to automatically check the validity of inputs which are mib files.
For example, display errors during the parsing of mib files to sort the wrong and the good files.

I tried many things with the tool snmptranslate and in modifying the snmp.conf file but i can't obtain the result i want.
The mib files have been installed in  the default directory /usr/share/snmp/mibs/ .
Could you please give me some help in explaining to me how to completely parse an unknown mib file ?

Thanks a lot,

Thibaut Allain

*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl

_______________________________________________
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
snmp.conf (application/octet-stream, 1.9 KB)
###########################################################################
#
# snmp.conf
#
#   - created by the snmpconf configuration program
#






###########################################################################
# SECTION: Output style options
#
#   This section allows you to control how the output of the
#   various commands will be formated

# printnumericoids: Print OIDs numericly or textually
#   command line equivelent: -On
#   arguments: (1|yes|true|0|no|false)

printnumericoids  yes

# quickprinting: Make the output simple for quick parsing
#   This option removes the equal sign and value identifies leaving
#   just the oid and the value on the output for easier parsing in scripts
#   command line equivelent: -Oq
#   arguments: (1|yes|true|0|no|false)

quickprinting  yes



###########################################################################
# SECTION: Textual mib parsing
#
#   This section controls the textual mib parser.  Textual
#   mibs are parsed in order to convert OIDs, enumerated
#   lists, and ... to and from textual representations
#   and numerical representations.

# mibdirs: Specifies directories to be searched for mibs.
#   Adding a '+' sign to the front of the argument appends the new
#   directory to the list of directories already being searched.
#   arguments: [+]directory[:directory...]

mibdirs  /usr/share/snmp/mibs/

# mibs: Specifies a list of mibs to be searched for and loaded.
#   Adding a '+' sign to the front of the argument appends the new
#   mib name to the list of mibs already being searched for.
#   arguments: [+]mibname[:mibname...]

mibs  ALL

# showmiberrors: Should errors in mibs be displayed when the mibs are loaded
#   arguments: (1|yes|true|0|no|false)

showmiberrors  yes
showmiberrors  yes

# mibwarninglevel: Should warnings about mibs be displayed when the mibs are loaded
#   arguments: 1|2

mibwarninglevel  1
mibwarninglevel  1
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.