nv-l
[Top] [All Lists]

Re: [nv-l] mib2trap

To: nv-l@lists.tivoli.com
Subject: Re: [nv-l] mib2trap
From: Leslie Clark <lclark@us.ibm.com>
Date: Sat, 17 May 2003 00:10:39 -0400
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Sat, 17 May 2003 05:13:00 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
List-help: <mailto:nv-l-help@lists.tivoli.com>
List-post: <mailto:nv-l@lists.tivoli.com>
List-subscribe: <mailto:nv-l-subscribe@lists.tivoli.com>
List-unsubscribe: <mailto:nv-l-unsubscribe@lists.tivoli.com>
Mailing-list: contact nv-l-help@lists.tivoli.com; run by ezmlm



This may be sort of related. I've noticed that a number of the mibs
delivered with Netview now have a couple of records added near the top,
along with instructions to uncomment them for mib2trap. These added records
appear to handle higher-up missing oids. I'm pretty sure they were Cisco
mibs.
When I followed those instructions, mib2trap worked fine. I re-commented
them for loading.

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit



                                                                                
                                                 
                      James                                                     
                                                 
                      Shanks/Raleigh/IB        To:       nv-l@lists.tivoli.com  
                                                 
                      M@IBMUS                  cc:                              
                                                 
                                               Subject:  Re: [nv-l] mib2trap    
                                                 
                      05/13/2003 12:30                                          
                                                 
                      PM                                                        
                                                 
                                                                                
                                                 
                                                                                
                                                 




Ooops.  Well, I admit that I didn't read that far.  Sorry, my bad.

I'd say that mib2trap probably produced output but that it lacks the -i
field for the enterprise oid so the addtraps won't work until that is
provided.
So it is the case that there is a missing definition.

But that's common with mib2trap when the MIB isn't self-contained.  It
needs to start with an entry which locates it under the enterprise tree,
1.3.6.1.4.1 in order to build that enterprise oid correctly.  So if a
prior MIB s needed, either you have to concatenate the two MIBs into one
first, or you have to add a couple of OBJECT IDENTIFIER statements to  the
MIB to provide that location.  In fact this is so common that there are
comments about it in
        /usr/OV/snmp_mibs/READMES/cisco.readme.


But that brings up another question about this case all together.  Why do
it in the first place?  I didn't notice that this cisco MIB was one we
already ship.  That makes running mib2trap on this Cisco MIB pointless.

All the traps contained in the Cisco MIBs which occur in the
/usr/OV/snmp_mibs directory are ALREADY defined in trapd.conf, and in more
detail than what mib2trap will provide.  So there is no need to run
mib2trap on them at all, and if you do, and then you run the addtraps, you
will likely lose some formatting which is already provided.  Go take a
look at these traps in xnmtrap and you'll see what I mean.




James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group




Joe Fernandez <jfernand@kardinia.com>
05/13/2003 11:24 AM


        To:     nv-l@lists.tivoli.com
        cc:
        Subject:        Re: [nv-l] mib2trap



At 10:34 AM 12/05/2003 -0400, James Shanks wrote:
>Well, actually, there is nothing to do for mib2trap.  I'll bet you output

>files are fine.  Have you examined them?
>

I'm not brave enough to take the bet but you've got my curiosity going.

The messages at the end say the enterprise OIDs for the traps have not
been
resolved.  Aren't these needed for the addtrap? And aren't the messages
saying the top of the MIB itself cannot be resolved (ciscoFlashMIB, which
I
presume needs the usual cisco-smi)?


>Theses are warning messages produced by the xnmloadmib2 compiler -- the
>sort of thing you would get if you loaded this MIB into the MIB database
>and didn't have all the pre-reqs or if one of your pre-reqs was
>out-of-date.  Basically, the some parts of this cannot be fully resolved
>with what you already have loaded.
>Beginning in 7.1.3 all warning messages are now displayed.  In prior
>releases, they were all suppressed, but then some users missed critical
>error messages and couldn't determine why their MIBs wouldn't compile
into
>trap definitions.   It was an all or nothing thing and it used to be
>nothing.  Now it is all.
>
>The first message is probably the key one:
>        Left-over node ciscoFlashCopyEntry ::= { ciscoFlashCopyTable 1 }
(1)
>Your current MIB tree probably doesn't have an entry for
ciscoFlashCopyTable so  there is no place to put what follows.
>
>In any case, you can probably ignore this if all you are doing is
>mib2trap.   If you want to browse the MIB with xnmbrowser2 then you'll
>need to examine the IMPORTS section and load the Cisco MIB which defines
ciscoFlashCopyTable first.
>
>James Shanks
>Level 3 Support  for Tivoli NetView for UNIX and NT
>Tivoli Software / IBM Software Group
>
>
>
>
>"Simon Collins" <Simon@ae.ibm.com>
>05/12/2003 10:17 AM
>
>
>        To:     nv-l@lists.tivoli.com
>        cc:
>        Subject:        [nv-l] mib2trap
>
>
>
>Hi,
>
>Netview 7.1.3 - AIX 5.2
>
>
>I'm running the following command and receive the output below. Could
>anyone advise how I might resolve this?
>
>netview> mib2trap /usr/OV/snmp_mibs/cisco-flash-mib-v1smi.mib flash.sh
>flash.baroc
>
>
>
>Warning: The mib description doesn't seem to be consistent.
> Some nodes couldn't be linked under the "iso" tree.
> These nodes are left:
>Left-over node ciscoFlashCopyEntry ::= { ciscoFlashCopyTable 1 } (1)
>Left-over node ciscoFlashPartitioningEntryStatus ::= {
>ciscoFlashPartitioningEntry 9 } (1)
>Left-over node ciscoFlashPartitioningTime ::= {
>ciscoFlashPartitioningEntry
>8 } (139)
>Left-over node ciscoFlashPartitioningNotifyOnCompletion ::= {
>ciscoFlashPartitioningEntry 7 } (1)
>Left-over node ciscoFlashPartitioningStatus ::= {
>ciscoFlashPartitioningEntry 6 } (134)
>Left-over node ciscoFlashPartitioningPartitionSizes ::= {
>ciscoFlashPartitioningEntry 5 } (1)
>Left-over node ciscoFlashPartitioningPartitionCount ::= {
>ciscoFlashPartitioningEntry 4 } (195)
>Left-over node ciscoFlashPartitioningDestinationName ::= {
>ciscoFlashPartitioningEntry 3 } (1)
>Left-over node ciscoFlashPartitioningCommand ::= {
>ciscoFlashPartitioningEntry 2 } (134)
>Left-over node ciscoFlashPartitioningSerialNumber ::= {
>ciscoFlashPartitioningEntry 1 } (195)
>Left-over node ciscoFlashFileName ::= { ciscoFlashFileEntry 5 } (1)
>Left-over node ciscoFlashFileStatus ::= { ciscoFlashFileEntry 4 } (134)
>Left-over node ciscoFlashFileChecksum ::= { ciscoFlashFileEntry 3 } (133)
>Left-over node ciscoFlashFileSize ::= { ciscoFlashFileEntry 2 } (195)

>Left-over node ciscoFlashFileIndex ::= { ciscoFlashFileEntry 1 } (195)
>Left-over node ciscoFlashChipMaxEraseRetries ::= { ciscoFlashChipEntry 7
}
>(195)
>Left-over node ciscoFlashChipMaxWriteRetries ::= { ciscoFlashChipEntry 6
}
>(195)
>Left-over node ciscoFlashChipEraseRetries ::= { ciscoFlashChipEntry 5 }
>(199)
>Left-over node ciscoFlashChipWriteRetries ::= { ciscoFlashChipEntry 4 }
>(199)
>Left-over node ciscoFlashChipDescr ::= { ciscoFlashChipEntry 3 } (1)
>Left-over node ciscoFlashChipCode ::= { ciscoFlashChipEntry 2 } (133)
>Left-over node ciscoFlashChipIndex ::= { ciscoFlashChipEntry 1 } (195)
>Left-over node ciscoFlashPartitionEntry ::= { ciscoFlashPartitionTable 1
}
>(1)
>Left-over node ciscoFlashMIBTrapPrefix ::= { ciscoFlashMIBObjects 3 } (0)
>Left-over node ciscoFlashOps ::= { ciscoFlashMIBObjects 2 } (0)
>Left-over node ciscoFlashDevice ::= { ciscoFlashMIBObjects 1 } (0)
>Left-over node ciscoFlashMIB ::= { ciscoMgmt 10 } (0)
>Left-over node ciscoFlashCopyEntryStatus ::= { ciscoFlashCopyEntry 11 }
>(1)
>Left-over node ciscoFlashCopyTime ::= { ciscoFlashCopyEntry 10 } (139)
>Left-over node ciscoFlashCopyNotifyOnCompletion ::= { ciscoFlashCopyEntry

>9
>} (1)
>Left-over node ciscoFlashCopyStatus ::= { ciscoFlashCopyEntry 8 } (134)
>Left-over node ciscoFlashCopyRemoteUserName ::= { ciscoFlashCopyEntry 7 }
>(1)
>Left-over node ciscoFlashCopyDestinationName ::= { ciscoFlashCopyEntry 6
}
>(1)
>Left-over node ciscoFlashCopySourceName ::= { ciscoFlashCopyEntry 5 } (1)
>Left-over node ciscoFlashCopyServerAddress ::= { ciscoFlashCopyEntry 4 }
>(136)
>Left-over node ciscoFlashCopyProtocol ::= { ciscoFlashCopyEntry 3 } (134)
>Left-over node ciscoFlashCopyCommand ::= { ciscoFlashCopyEntry 2 } (134)
>Left-over node ciscoFlashCopySerialNumber ::= { ciscoFlashCopyEntry 1 }
>(195)
>Left-over node ciscoFlashPartitionTable ::= { ciscoFlashPartitions 1 }
>(14)
>Left-over node ciscoFlashFiles ::= { ciscoFlashPartitions 2 } (0)
>Left-over node ciscoFlashMiscOpTable ::= { ciscoFlashOps 3 } (14)
>Left-over node ciscoFlashPartitioningTable ::= { ciscoFlashOps 2 } (14)
>Left-over node ciscoFlashCopyTable ::= { ciscoFlashOps 1 } (14)
>Left-over node ciscoFlashMiscOpEntry ::= { ciscoFlashMiscOpTable 1 } (1)
>Left-over node ciscoFlashDeviceEntry ::= { ciscoFlashDeviceTable 1 } (1)
>Left-over node ciscoFlashMIBGroups ::= { ciscoFlashMIBConformance 2 } (0)
>Left-over node ciscoFlashMIBCompliances ::= { ciscoFlashMIBConformance 1
}
>(0)
>Left-over node ciscoFlashMIBCompliance ::= { ciscoFlashMIBCompliances 1 }
>(0)
>Left-over node ciscoFlashPartitionFileNameLength ::= {
>ciscoFlashPartitionEntry 12 } (195)
>Left-over node ciscoFlashPartitionNeedErasure ::= {
>ciscoFlashPartitionEntry 11 } (1)
>Left-over node ciscoFlashPartitionName ::= { ciscoFlashPartitionEntry 10
}
>(1)
>Left-over node ciscoFlashPartitionUpgradeMethod ::= {
>ciscoFlashPartitionEntry 9 } (134)
>Left-over node ciscoFlashPartitionStatus ::= { ciscoFlashPartitionEntry 8

>}
>(134)
>Left-over node ciscoFlashPartitionChecksumAlgorithm ::= {
>ciscoFlashPartitionEntry 7 } (134)
>Left-over node ciscoFlashPartitionFileCount ::= {
ciscoFlashPartitionEntry

>6 } (195)
>Left-over node ciscoFlashPartitionFreeSpace ::= {
ciscoFlashPartitionEntry
>5 } (200)
>Left-over node ciscoFlashPartitionSize ::= { ciscoFlashPartitionEntry 4 }
>(195)
>Left-over node ciscoFlashPartitionEndChip ::= { ciscoFlashPartitionEntry
3
>} (195)
>Left-over node ciscoFlashPartitionStartChip ::= {
ciscoFlashPartitionEntry
>2 } (195)
>Left-over node ciscoFlashPartitionIndex ::= { ciscoFlashPartitionEntry 1
}
>(195)
>Left-over node ciscoFlashDeviceTable ::= { ciscoFlashDevice 2 } (14)
>Left-over node ciscoFlashDevicesSupported ::= { ciscoFlashDevice 1 }
(195)
>Left-over node ciscoFlashPartitions ::= { ciscoFlashDevice 4 } (0)
>Left-over node ciscoFlashChips ::= { ciscoFlashDevice 3 } (0)
>Left-over node ciscoFlashMiscOpGroup ::= { ciscoFlashMIBGroups 8 } (0)
>Left-over node ciscoFlashPartitioningOpGroup ::= { ciscoFlashMIBGroups 7
}
>(0)
>Left-over node ciscoFlashCopyOpGroup ::= { ciscoFlashMIBGroups 6 } (0)
>Left-over node ciscoFlashFileInfoGroup ::= { ciscoFlashMIBGroups 5 } (0)
>Left-over node ciscoFlashPartitionInfoGroup ::= { ciscoFlashMIBGroups 4 }
>(0)
>Left-over node ciscoFlashChipInfoGroup ::= { ciscoFlashMIBGroups 3 } (0)
>Left-over node ciscoFlashDeviceOptionalInfoGroup ::= {
ciscoFlashMIBGroups
>2 } (0)
>Left-over node ciscoFlashDeviceInfoGroup ::= { ciscoFlashMIBGroups 1 }
(0)
>Left-over node ciscoFlashMIBConformance ::= { ciscoFlashMIB 2 } (0)
>Left-over node ciscoFlashMIBObjects ::= { ciscoFlashMIB 1 } (0)
>Left-over node ciscoFlashMiscOpEntryStatus ::= { ciscoFlashMiscOpEntry 7
}
>(1)
>Left-over node ciscoFlashMiscOpTime ::= { ciscoFlashMiscOpEntry 6 } (139)
>Left-over node ciscoFlashMiscOpNotifyOnCompletion ::= {
>ciscoFlashMiscOpEntry 5 } (1)
>Left-over node ciscoFlashMiscOpStatus ::= { ciscoFlashMiscOpEntry 4 }
>(134)
>Left-over node ciscoFlashMiscOpDestinationName ::= {
ciscoFlashMiscOpEntry
>3 } (1)
>Left-over node ciscoFlashMiscOpCommand ::= { ciscoFlashMiscOpEntry 2 }
>(134)
>Left-over node ciscoFlashMiscOpSerialNumber ::= { ciscoFlashMiscOpEntry 1

>}
>(195)
>Left-over node ciscoFlashMIBTraps ::= { ciscoFlashMIBTrapPrefix 0 } (0)
>Left-over node ciscoFlashPartitioningEntry ::= {
>ciscoFlashPartitioningTable 1 } (1)
>Left-over node ciscoFlashDeviceRemovable ::= { ciscoFlashDeviceEntry 13 }
>(1)
>Left-over node ciscoFlashDeviceInitTime ::= { ciscoFlashDeviceEntry 12 }
>(1)
>Left-over node ciscoFlashDeviceProgrammingJumper ::= {
>ciscoFlashDeviceEntry 11 } (134)
>Left-over node ciscoFlashDeviceCard ::= { ciscoFlashDeviceEntry 10 } (1)
>Left-over node ciscoFlashDeviceController ::= { ciscoFlashDeviceEntry 9 }
>(1)
>Left-over node ciscoFlashDeviceDescr ::= { ciscoFlashDeviceEntry 8 } (1)
>Left-over node ciscoFlashDeviceName ::= { ciscoFlashDeviceEntry 7 } (1)
>Left-over node ciscoFlashDeviceChipCount ::= { ciscoFlashDeviceEntry 6 }
>(195)
>Left-over node ciscoFlashDevicePartitions ::= { ciscoFlashDeviceEntry 5 }
>(195)
>Left-over node ciscoFlashDeviceMaxPartitions ::= { ciscoFlashDeviceEntry
4
>} (195)
>Left-over node ciscoFlashDeviceMinPartitionSize ::= {
>ciscoFlashDeviceEntry
>3 } (195)
>Left-over node ciscoFlashDeviceSize ::= { ciscoFlashDeviceEntry 2 } (195)

>Left-over node ciscoFlashDeviceIndex ::= { ciscoFlashDeviceEntry 1 }
(195)
>Left-over node ciscoFlashFileEntry ::= { ciscoFlashFileTable 1 } (1)
>Left-over node ciscoFlashChipEntry ::= { ciscoFlashChipTable 1 } (1)
>Left-over node ciscoFlashFileTable ::= { ciscoFlashFiles 1 } (14)
>Left-over node ciscoFlashChipTable ::= { ciscoFlashChips 1 } (14)
>Enterprise object id not found for trap ciscoFlashCopyCompletionTrap,
>(6,1).Enterprise object id not found for trap ciscoFlashPartit
>ioningCompletionTrap, (6,2).Enterprise object id not found for trap
>ciscoFlashMiscOpCompletionTrap, (6,3).Enterprise object id not f
>ound for trap ciscoFlashDeviceChangeTrap,
>(6,4).labtmr@(/usr/OV/snmp_mibs)#
>
>
>Thanks
>
>Simon
>
>
>_______________________________________
>
>Simon Collins
>Gulf Business Machines - Distributor of IBM WTC
>PO Box 9226
>Dubai, United Arab Emirates
>+ 971 (0)50 65 66 417
>Email: simon@ae.ibm.com
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
>For additional commands, e-mail: nv-l-help@lists.tivoli.com
>
>*NOTE*
>This is not an Offical Tivoli Support forum. If you need immediate
>assistance from Tivoli please call the IBM Tivoli Software Group
>help line at 1-800-TIVOLI8(848-6548)
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
>For additional commands, e-mail: nv-l-help@lists.tivoli.com
>
>*NOTE*
>This is not an Offical Tivoli Support forum. If you need immediate
>assistance from Tivoli please call the IBM Tivoli Software Group
>help line at 1-800-TIVOLI8(848-6548)
>
Joe Fernandez
Kardinia Software
jfernand@kardinia.com

http://www.kardinia.com



---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)





---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)





---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


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

Archive operated by Skills 1st Ltd

See also: The NetView Web