Re: [SNMP4J] SNMP4J CLT - compiling MIBs

2018-05-10 Thread David Artus
Thanks, that is indeed simple, and just what I need.

On Thu, 10 May 2018 at 18:46 Frank Fock  wrote:

> Hi Dave,
>
> It is probably simpler than you image: You can use SNMP4J-CLT to compile a
> MIB file.
> Run
>
> java -jar snmp4j-clt.jar -M  mib add  Where  is a text file with one or more MIB
> module definitions.
>
>  can be an empty directory, but is preferably the path to the
> “mibrespository” directory
> That comes with the SNMP4J-CLT distribution ZIP.
>
> Hope that helps.
>
> Best regards,
> Frank
>
> > On 10. May 2018, at 18:08, David Artus  wrote:
> >
> > Using the command line tool. I see the option
> >
> > -MmibRepositoryPath Set the path to the MIB repository to be used
> > to resolve
> > object names (OIDs) and parse/format object values ('repository' is the
> > default). The repository directory must contain compiled MIB modules
> files
> > only.
> >
> > What does a compiled MIB file look like? How do I make one?
> >
> > I haven't found a utility to produce compiled files.
> >
> > I can see SNMP4J classes for parsing a MIB, in effect compiling into
> > memory, but haven't yet found anything for writing a file; anyway surely
> I
> > don't need to write my own tool for this?
> >
> > 
> >
> > Thanks,
> >
> > Dave
> > ___
> > SNMP4J mailing list
> > SNMP4J@agentpp.org
> > https://oosnmp.net/mailman/listinfo/snmp4j
>
>
___
SNMP4J mailing list
SNMP4J@agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j


Re: [SNMP4J] SNMP4J CLT - compiling MIBs

2018-05-10 Thread Frank Fock
Hi Dave,

It is probably simpler than you image: You can use SNMP4J-CLT to compile a MIB 
file.
Run 

java -jar snmp4j-clt.jar -M  mib add  is a text file with one or more MIB module 
definitions.

 can be an empty directory, but is preferably the path to the 
“mibrespository” directory
That comes with the SNMP4J-CLT distribution ZIP.

Hope that helps.

Best regards,
Frank

> On 10. May 2018, at 18:08, David Artus  wrote:
> 
> Using the command line tool. I see the option
> 
> -MmibRepositoryPath Set the path to the MIB repository to be used
> to resolve
> object names (OIDs) and parse/format object values ('repository' is the
> default). The repository directory must contain compiled MIB modules files
> only.
> 
> What does a compiled MIB file look like? How do I make one?
> 
> I haven't found a utility to produce compiled files.
> 
> I can see SNMP4J classes for parsing a MIB, in effect compiling into
> memory, but haven't yet found anything for writing a file; anyway surely I
> don't need to write my own tool for this?
> 
> 
> 
> Thanks,
> 
> Dave
> ___
> SNMP4J mailing list
> SNMP4J@agentpp.org
> https://oosnmp.net/mailman/listinfo/snmp4j

___
SNMP4J mailing list
SNMP4J@agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j


[SNMP4J] SNMP4J CLT - compiling MIBs

2018-05-10 Thread David Artus
Using the command line tool. I see the option

-MmibRepositoryPath Set the path to the MIB repository to be used
to resolve
object names (OIDs) and parse/format object values ('repository' is the
default). The repository directory must contain compiled MIB modules files
only.

What does a compiled MIB file look like? How do I make one?

I haven't found a utility to produce compiled files.

I can see SNMP4J classes for parsing a MIB, in effect compiling into
memory, but haven't yet found anything for writing a file; anyway surely I
don't need to write my own tool for this?



Thanks,

Dave
___
SNMP4J mailing list
SNMP4J@agentpp.org
https://oosnmp.net/mailman/listinfo/snmp4j