Server Management - Systems Insight Manager
1755233 Members
6874 Online
108831 Solutions
New Discussion юеВ

Re: Compiling MIB's for liebert UPS

 
SOLVED
Go to solution
mwalders
Occasional Advisor

Compiling MIB's for liebert UPS

I am trying to compile MIB files for a Liebert 30KVA UPS. I have downloaded and copied the MIB's to the SIM server. I then open up the command line and browse to where I copied the MIB's and run the mcomile command. After running the mcompile command I get the following error's.

E:\liebert mibs>mcompile LIEBERT_GP_AGENT.MIB

HP Systems Insight Manager Mib Compiler, Version 5.0.2.1
Copyright (c) 2003-2006 Hewlett Packard Corporation

Compiling LIEBERT_GP_AGENT.MIB

Failed to open import file: rfc1213-mib.mib
could not compile module RFC1213-MIB

Failed to open import file: snmpv2-smi.mib
could not compile module SNMPv2-SMI

Failed to open import file: liebert-gp-registration-mib.mib
could not compile module LIEBERT-GP-REGISTRATION-MIB

Failed to open import file: snmpv2-tc.mib
could not compile module SNMPv2-TC

Mib file compilation completed with warnings

A configuration file is created but neither the MIB or this config file is copied to the MIB folder in my SIM install directory. Are there any log files that I may be able to look at to see why this is failing? Am I doing something wrong that results in this failing?
7 REPLIES 7
Rob Buxton
Honored Contributor
Solution

Re: Compiling MIB's for liebert UPS

Copy the Liebert MIB into the HPSIM MIB's directory, e.g. C:\Program Files\HP\Systems Insight Manager\mibs
Then change to that directory and run the mcompile from there. That way it'll pick up the associated mibs.

Not sure about the rfc1213-mib.mib as that's listed as just rfc1213.mib in HPSIM. Try it but you may need to tweak the Liebert MIB.
mwalders
Occasional Advisor

Re: Compiling MIB's for liebert UPS

Thanks. That did the trick. However I am still having trouble importing one MIB

I get the following error now.

E:\Program Files\HP\Systems Insight Manager\mibs>mxmib -a LIEBERT-GP-NOTIFICATIONS-MIB.cfg

IMPORTING CFG LIEBERT-GP-NOTIFICATIONS-MIB.cfg
Error reading CFG: MIB node has no parent Line: 22.
AN ERROR OCCURRED EXECUTING THE COMMAND

Usage:
mxmib -a
mxmib -f
mxmib -l
mxmib -t
mxmib -d


I've attached the config file
Gene Pinson_1
New Member

Re: Compiling MIB's for liebert UPS

Not sure, wound up contacting Emerson Power to get mibs that work properly with SIM.
Gene Pinson_1
New Member

Re: Compiling MIB's for liebert UPS

Oops, also ment to mention that I attached them to my last reply.

Gene
mdelorie
Occasional Advisor

Re: Compiling MIB's for liebert UPS

I've been trying to get a hold of that MIB file with no success, is there any chance you could try re-attaching it or emailing it to me?
JPMenard
New Member

Re: Compiling MIB's for liebert UPS

Hi all,

After 2 days I was finally able to have it worked.

First
For mcompile any line in the mib with -- at the begining is a line of comment. If the line have more - then the 2 first one, remove the reming ones.

Example:
line like:
-- ----------
should now looks like
--

line like:
-- this is a comment -------
should now looks like:
-- this is a comment

This resolve my problem for the SNMPV2-SMI & SNMPV2-TC

Second
Within the first 12 lines of all the mibs look for any lines that states LIEBERET-GP-????????-MIB. Remove the trailing -MIB, replace the - with _ and rename REGISTRATION by REG or CONDITIONS by COND.

Exemple:
in the mib LIEBERT_GP_COND.MIB you have a line that say:

LIEBERT-GP-REGISTRATION-MIB

that line should be replace with:

LIEBERT_GP_REG

This resolve my problem of not finding the mib required to compile the mib after the LIEBERET_GP_REG.MIB.

It worked fine on HP SIM 5.3
forrest_1
New Member

Re: Compiling MIB's for liebert UPS

I saw the problem solved about the first step: mcompile *.mib.

Error: In the second step: MxMIB, you could see some error message like "MIB node has no parent. Line 83".

Cause: In Line 83," lgpAgentDevice OBJECT IDENTIFIER ::= { lgpAgent 4 }" , "lgpAgent" IDENTIFIER has not defined before this line yet.

Solution: Define this "lgpAgent"

1) Copy this identifier from file LIEBERT-GP-REGISTRATION-MIB.mib or some where like:
lgpAgent OBJECT IDENTIFIER ::= { liebertGlobalProducts 2 }
And paste to the first block (identifier block)of this .cfg file

2) Fill up all the un-defined IDENTIFIERS until you can link all IDENTIFIERS chain.

3) Run MxMIB again.