[ofa-general] [PATCH] ibnetdiscover - ports report

Hal Rosenstock hrosenstock at xsigo.com
Thu Dec 27 06:57:47 PST 2007


On Tue, 2007-12-25 at 06:47 +0000, Sasha Khapyorsky wrote:
> On 23:38 Thu 20 Dec     , Erez Strauss wrote:
> > Hello IB developers and users,
> > 
> >  
> > 
> > I would like to get feedback on the following patch to ibnetdiscover.
> > 
> >  
> > 
> > The patch introduce additional output mode for ibnetdiscover which is
> > focused on the ports, and print one line for each port with the needed
> > port information.
> > 
> >  
> > 
> > The output looks like:
> > 
> >  
> > 
> > SW     4 18 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4 17 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4 16 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4 15 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4 14 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4 13 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4  9 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4  8 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4  7 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4  6 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4  5 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4  4 0x0008f104003f0838 4x SDR
> > 'ISR9288/ISR9096 Voltaire sLB-24'
> > 
> > SW     4  1 0x0008f104003f0838 4x SDR - SW     6  3 0x0008f104004005f5 (
> > 'ISR9288/ISR9096 Voltaire sLB-24' - 'ISR9288 Voltaire sFB-12' )
> > 
> > SW     4  2 0x0008f104003f0838 4x SDR - SW     7  3 0x0008f104004005f6 (
> > 'ISR9288/ISR9096 Voltaire sLB-24' - 'ISR9288 Voltaire sFB-12' )
> > 
> > SW     4  3 0x0008f104003f0838 4x SDR - SW     1  3 0x0008f104004005f7 (
> > 'ISR9288/ISR9096 Voltaire sLB-24' - 'ISR9288 Voltaire sFB-12' )
> > 
> > SW     4 10 0x0008f104003f0838 4x SDR - SW     8  3 0x0008f104004006f5 (
> > 'ISR9288/ISR9096 Voltaire sLB-24' - 'ISR9288 Voltaire sFB-12' )
> > 
> > SW     4 11 0x0008f104003f0838 4x SDR - SW     9  3 0x0008f104004006f6 (
> > 'ISR9288/ISR9096 Voltaire sLB-24' - 'ISR9288 Voltaire sFB-12' )
> > 
> > SW     4 12 0x0008f104003f0838 4x SDR - SW    10  3 0x0008f104004006f7 (
> > 'ISR9288/ISR9096 Voltaire sLB-24' - 'ISR9288 Voltaire sFB-12' )
> > 
> > CA    14  1 0x0008f10403960091 4x SDR - SW     4 20 0x0008f104003f0838 (
> > 'Voltaire HCA400' - 'ISR9288/ISR9096 Voltaire sLB-24' )
> > 
> > CA    11  1 0x0002c90107a4e431 4x SDR - SW     4 19 0x0008f104003f0838 (
> > 'Voltaire HCA400' - 'ISR9288/ISR9096 Voltaire sLB-24' )
> > 
> > CA     2  1 0x0008f1000102d801 4x SDR - SW     1 15 0x0008f104004005f7 (
> > 'Voltaire IB-to-TCP/IP Router' - 'ISR9288 Voltaire 
> > 
> >  
> > 
> >  
> > 
> > Thanks,
> > 
> >  
> > 
> > Erez Strauss
> > 
> > Voltaire.
> > 
> >  
> > 
> > -------------
> > 
> > Date:   Thu Dec 20 19:36:14 2007 -0500
> > 
> >  
> > 
> >      Added the -p(orts) option, to generate ports reports
> > 
> >  
> > 
> >     Signed-off-by: Erez Strauss <erezs _at_ voltaire.com>
> 
> Applied. Thanks.
> 
> Please note, the originally posted patch was completely mangled by your
> mailer (so attached version was useful).

What about updating the ibnetdiscover man page for this too ?

-- Hal

> 
> Sasha
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general



More information about the general mailing list