nv-l
[Top] [All Lists]

Re: Re: NVADDTRAPDCONF - Brocade Switch

To: nv-l@lists.tivoli.com
Subject: Re: Re: NVADDTRAPDCONF - Brocade Switch
From: James_Shanks@tivoli.com
Date: Wed, 25 Oct 2000 15:30:03 -0400
Ray -

mib2trap is expecting to work on a complete MIB definition file, not a
piece of one.  So it would have to start with something like
     BROCADE-MIB  DEFINITIONS  ::= BEGIN
then contain the IMPORTS section and other clauses and end with
     END
just to get started.   And there are a host of other formatting problems in
that snippet that would have to be corrected in order for this to parse.
And finally, since it is extracted from a MIB, some of the important
information that mib2trap would need to build his output is missing.  For
example, mib2trap would
require that this MIB file define the enterprise id starting from
".iso.org.dod.internet.private.enteprises (.1.3.6.1.4.1)", so it would have
to include a line like
     Brocade    OBJECT IDENTIFIER  ::= { enterprises 1588  }
and other such OBJECT IDENTIFIER constructs until it defined one called
"sw" which is what shows up in the ENTERPRISE field of the TRAP_TYPE macro.
There is just not enough information here for mib2trap to make sense of.

Did you notice in the comments it says "-- DO NOT compile this file."?
That's because it will fail any MIB compiler, including the one that
mib2trap uses.
They are apparently expecting you to manually configure you box using this
information, not load it.


James Shanks
Team Leader, Level 3 Support
 Tivoli NetView for UNIX and NT



"Ray Westphal" <rwestphal@erac.com> on 10/25/2000 10:28:44 AM

Please respond to IBM NetView Discussion <nv-l@tkg.com>

To:   "NV List (E-mail)" <nv-l@tkg.com>
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  [NV-L] Re: NVADDTRAPDCONF - Brocade Switch




Hello Leslie and James,

Thanks for your replies. I manually added the traps in xnmtrap with the
help
of the v2_0_1atrp.mib file I located on the Brocade site. mib2trap would
not
work - it fails on the "IMPORTS" line. Here's the v2_0_1atrp.mib file
contents in case you want to check the different traps.

--
--                  "@(#)swtrap.smiv1 99/04/23"
--
-- Enterprise Specific Traps for Fibre Channel Switch (sw).
--        Version 2.0
--
-- This is specified based on RFC1215.
-- This specification is for reference in configuring your SNMP Station
only.
-- DO NOT compile this file.
--
-- See also V2_0SW.mib (version 2.0 of swmib-smiv1).

--

  IMPORTS
     enterprises
          FROM RFC1155-SMI
     swDiagResult,
     swSensorStatus, swSensorIndex, swSensorType, swSensorValue,
     swSensorInfo,
     swFCPortOpStatus, swFCPortIndex,
     swEventIndex, swEventTimeInfo, swEventLevel, swEventRepeatCount,
     swEventDescr
          FROM swmib-smiv1
     TRAP-TYPE
          FROM RFC1215;

  --
  -- sw Traps
  --

  swFault      TRAP-TYPE
     ENTERPRISE     sw
     VARIABLES { swDiagResult }
     DESCRIPTION    "A swFault(1) is generated whenever the diagnostics
          detects a fault with the switch."
     --#TYPE        "Switch is faulty."
     --#SUMMARY     "Faulty reason: %d"
     --#ARGUMENTS   { 0 }
     --#SEVERITY    CRITICAL
     --#TIMEINDEX   1
     --#STATE  NONOPERATIONAL
     ::= 1

  swSensorScn  TRAP-TYPE
     ENTERPRISE     sw
     VARIABLES { swSensorStatus, swSensorIndex, swSensorType,
                 swSensorValue, swSensorInfo }
     DESCRIPTION    "A swSensorScn(2) is generated whenever an
          environment sensor changes its operational state. For instance,
          a fan stop working. The VarBind in the Trap Data Unit shall
          contain the corresponding instance of the sensor
          status, sensor index, sensor type, sensor value (reading)
          and sensor information. Note that the sensor information
          contains the type of sensor and its number in textual format."
     --#TYPE        "A sensor (temperature, fan, etc.) changed its
operational state."
     --#SUMMARY     "%s: is currently in state %d"
     --#ARGUMENTS   { 4, 0 }
     --#SEVERITY    INFORMATIONAL
     --#TIMEINDEX   1
     --#STATE  OPERATIONAL
     ::= 2

   swFCPortScn      TRAP-TYPE
     ENTERPRISE     sw
     VARIABLES { swFCPortOpStatus, swFCPortIndex }
     DESCRIPTION    "A swFCPortScn(3) is generated whenever an FC_Port
          changes its operational state. For instance, the FC_Port
          goes from on-line to offline. The VarBind in the Trap Data
          Unit shall contain the corresponding instance of the
          FC_Port's operational status and index."
     --#TYPE        "A Fibre Channel Port changed its operational state."
     --#SUMMARY     "Port Index %d changed state to %d"
     --#ARGUMENTS   { 1, 0 }
     --#SEVERITY    INFORMATIONAL
     --#TIMEINDEX   1
     --#STATE  OPERATIONAL
     ::= 3

   swEventTrap           TRAP-TYPE
        ENTERPRISE      sw
        VARIABLES       { swEventIndex, swEventTimeInfo, swEventLevel,
                          swEventRepeatCount, swEventDescr }
        DESCRIPTION     "This trap is generated when an event whose
                level at or below swEventTrapLevel occurs."
     --#TYPE        "A firmware event has been logged"
     --#SUMMARY     "Event %d: %s (severity level %d) - %s"
     --#ARGUMENTS   { 0, 1, 2, 4 }
     --#SEVERITY    INFORMATIONAL
     --#TIMEINDEX   1
     --#STATE  OPERATIONAL
     ::= 4

   -- end of Enterprise Specific Traps for Fibre Channel Switch (sw)


Ray Westphal
NMSA Systems Administrator
Enterprise Rent-A-Car


_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web