nv-l

Re: [NV-L] INformation in traps

2007-09-21 12:40:43
Subject: Re: [NV-L] INformation in traps
From: Dietmar Gaulhofer <DIETMAR_GAULHOFER AT at.ibm DOT com>
To: Tivoli NetView Discussions <nv-l AT lists.ca.ibm DOT com>
Date: Fri, 21 Sep 2007 18:23:29 +0200
Hi,

First i would recommend you do an snmpwalk against the SAN switch to a file
, after you grep parts of the OID sent with the trap. You should be able to
see what OID is used Port, Port Index , PortName , which you  need after in
a script useing snmpget .

 I wrote a script as automatic action on the Port Status Change Trap and
gave "$*" as a parameter, in the script you have to extract the OID and do
an snmpget about the Port, PortName whatever ...

or, maybe in your switch the last from the OID-1 is your port . like .


16.0.0.96.105.128.109.226.0.0.0.0.0.0.0.0.21 (Integer): 3


would means port 21-1 = Port 20 , not very nice but might work as well.


And the status (up/down) you have as a value in the trap anyway.. ( like 3
= Up , ...-> check FCMGMT mib )


If you have a cisco-mds then you might only need the Index sent with the
trap , all other information i found in the starndard interface mib.


hope this might help,






                                                                           
             Denis Peuziat                                                 
             <dpeuziat@amadeus                                             
             .com>                                                      To 
             Sent by:                  Tivoli NetView Discussions          
             nv-l-bounces@list         <nv-l AT lists.ca.ibm DOT com>           
  
             s.ca.ibm.com                                               cc 
                                                                           
                                                                   Subject 
             19.09.2007 17:27          Re: [NV-L] INformation in traps     
                                                                           
                                                                           
             Please respond to                                             
              Tivoli NetView                                               
                Discussions                                                
             <nv-l AT lists.ca DOT ib                                           
  
                  m.com>                                                   
                                                                           
                                                                           





Hi,

The answer is unfortunately nowhere.
The fiber channel management traps are useless, I used to configure MLM to
check the active ports and issue specific traps when needed, and of course
to block all incoming fcmgmt traps.
This can also be done through a script or in Netview.

Hope this helps,

Best regards

Denis Peuziat
System & Network Engineer
Enterprise Systems Management Specialist
DEV-IIS-OAU-NET
Amadeus IT Group SA
T: +33 4 97 15 46 92
dpeuziat AT amadeus DOT com
www.amadeus.com


(Embedded image moved to file: pic17487.gif)Amadeus logo

                                                                          
 JaneTaylor AT hbosplc DOT com  JaneTaylor AT hbosplc DOT com                   
        
                                                                          
                                                                          
                     To  Please respond to : Tivoli NetView Discussions   
           [email protected]  <nv-l AT lists.ca.ibm DOT com>                         
 
           a.ibm.com                                                      
                     cc                                                   
                         Sent by: nv-l-bounces AT lists.ca.ibm DOT com          
 
                    bcc  19/09/2007 16:47                                 
                                                                          
                Subject                                                   
           [NV-L]                                                         
           INformation                                                    
           in traps                                                       
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          







Can any one tell me how I get the port number from this entry.

The mib definition is

    connUnitPortStatusChange TRAP-TYPE
       ENTERPRISE fcmgmt
       VARIABLES { connUnitPortStatus, connUnitPortState }
       DESCRIPTION
           "The overall status of the connectivity unit has changed.
           Recommended severity level (for filtering): alert"
       ::= 6


The information in trapd.log looks like this

1190203118 7  Wed Sep 19 12:58:38 2007 192.168.208.242           A fcmgmt 6
6 3 args:  [1] 16.0.0.96.105.128.109.226.0.0.0.0.0.0.0.0.21 (Integer): 9
1190203118 7  Wed Sep 19 12:58:38 2007  192.168.208.242           A  [2]
16.0.0.96.105.128.109.226.0.0.0.0.0.0.0.0.21 (Integer): 3
1190203118 7  Wed Sep 19 12:58:38 2007  192.168.208.242           A  [3]
16.0.0.96.105.128.109.226.0.0.0.0.0.0.0.0.21 (OctetString):

The traps seems to pass on 3 bits of information relating to port status
(9), port state (3) and a blank entry. However, the information in each
line contains the port number 21 at the end of the string of numbers. If
there any way I can pick up this information to forward to tec. I'm not
sure what this information is 16.0.0.96.105.128.109.226.0.0.0.0.0.0.0.0.21
or how I can pick bits out of it.

It would be very useful.

Thanks

Jane


.
----------------------------------------------------------------------------------------------------------------------


HBOS plc, Registered in Scotland No. SC218813. Registered Office: The
Mound, Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of
which are authorised and regulated by the Financial Services Authority.
==============================================================================

_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)


Attachment: pic17487.gif
Description: GIF image

_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)
<Prev in Thread] Current Thread [Next in Thread>