Topic
1 reply Latest Post - ‏2011-03-29T16:17:21Z by SystemAdmin
SystemAdmin
SystemAdmin
238 Posts
ACCEPTED ANSWER

Pinned topic Where can I download CASTIRON-REGISTRATIONS-MIB

‏2011-03-29T07:41:17Z |
I am trying to convert the CASTIRON-IA mib to a mdl file using the Mibutility tool so that I can monitor using the Universal agent and it complains about CASTIRON-REGISTRATIONS-MIB missing ? Any ideas where I can download it ?
Shashi
Updated on 2011-03-29T16:17:21Z at 2011-03-29T16:17:21Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    238 Posts
    ACCEPTED ANSWER

    All the MIBs are inside castironsys.mib

    ‏2011-03-29T16:17:21Z  in response to SystemAdmin


    The Cast Iron MIB file, as it is downloaded from the WMC, contains many individual MIBs.  The tool you're using is only able to find the first MIB entry in the file, so you'll need to break castironsys.mib up into separate files.  Each individual MIB looks like

    <MIB-NAME> DEFINITIONS ::= BEGIN
    <ul> <li> <ul> <li>All the contents of the <MIB-NAME></li> <li>...</li> <li>...</li> </ul> </li> </ul> END

    Just create a separate file for each <MIB-NAME> entry (there are about 22 of them) and then your tool should be able to locate all the MIBs. If you are using Linux, this script can do the work for you.

    #!/bin/bash
    sed -ne 's/DEFINITIONS ::= BEGIN.*//p' castironsys.mib |
    while read mib; do
    echo $mib
    sed -ne "/^$mib/,/^END/p" castironsys.mib >   $mib
    done

    <ul> <li> <ul> <li></li> </ul> </li> </ul> Layne