[openib-general] cable test/error count utilities?

Troy Benjegerdes hozer at hozed.org
Fri Jun 3 10:14:31 PDT 2005


On Fri, Jun 03, 2005 at 06:14:34AM -0400, Hal Rosenstock wrote:
> On Thu, 2005-06-02 at 20:25, Troy Benjegerdes wrote:
> > Some of my problems seem to be from intermittent cables.. 
> > 
> > Is there anything for OpenIB that can read error counters?
> 
> Aside from pulling these from the driver via
> /sys/class/infiniband/mthca0/ports/1/counters/, there is also perfquery
> which displays the portcounters (which contains the error counters):
> 
> Usage: perfquery [-d(ebug) -G(uid_addr) -a(ll_ports) -r(reset_after_read) -C ca_name -P hca_port -R(eset_only) -t timeout_ms -V(ersion) -h(elp)] [<lid|guid> [[port] [reset_mask]]]

How can I query a port between two switches?

        [1] {00066a009800044d}
DR path [0][1] -> new remote switch {00084e000000014a} portnum 0 lid 0x3-0x3 "Di
vergeNet Meshlink 4X Switch"
        [4] {00084e000000014a}
DR path [0][1] -> processing switch {00084e000000014a} portnum 0 lid 0x2-0x2 "Di
vergeNet Meshlink 4X Switch"
        [5] {00084e000000014a}
DR path [0][1][5] -> new remote switch {00084e0000000152} portnum 0 lid 0x1-0x1
"DivergeNet Meshlink 4X Switch"
        [6] {00084e0000000152}
DR path [0][1][5] -> processing switch {00084e0000000152} portnum 0 lid 0x0-0x0
"DivergeNet Meshlink 4X Switch"
        [2] {00084e0000000152}
DR path [0][1][5][2] -> new remote hca {00066a009800043c} portnum 1 lid 0x7-0x7
"MT23108 InfiniHost Mellanox Technologies"
        [1] {00066a009800043c}
warn: [17598] _do_madrpc: send failed; Invalid argument
warn: [17598] handle_port: Nodeinfo on DR path [0][1][5][3] port 3 failed, skipp
ing port
        [4] {00084e0000000152}
DR path [0][1][5][4] -> new remote hca {00066a0098000458} portnum 1 lid 0x9-0x9
"MT23108 InfiniHost Mellanox Technologies"
        [1] {00066a0098000458}
        [8] {00084e0000000152}
DR path [0][1][5][8] -> new remote hca {00066a0098000444} portnum 1 lid 0x8-0x8
"MT23108 InfiniHost Mellanox Technologies"
        [1] {00066a0098000444}
#
# Topology file: generated on Fri Jun  3 12:13:51 2005
#

switchguids=0x84e000000014a
Switch  8 "S-00084e000000014a"          # DivergeNet Meshlink 4X Switch port 0 l
id 3
[5]     "S-00084e0000000152"[6]
[4]     "H-00066a009800044d"[1]

switchguids=0x84e0000000152
Switch  8 "S-00084e0000000152"          # DivergeNet Meshlink 4X Switch port 0 l
id 1
[8]     "H-00066a0098000444"[1]
[4]     "H-00066a0098000458"[1]
[2]     "H-00066a009800043c"[1]
[6]     "S-00084e000000014a"[5]

hcaguids=0x66a0098000444
Hca     2 "H-00066a0098000444"          # MT23108 InfiniHost Mellanox Technologi
es
[1]     "S-00084e0000000152"[8]         # lid 8 lmc 0

hcaguids=0x66a0098000458
Hca     2 "H-00066a0098000458"          # MT23108 InfiniHost Mellanox Technologi
es
[1]     "S-00084e0000000152"[4]         # lid 9 lmc 0

hcaguids=0x66a009800043c
Hca     2 "H-00066a009800043c"          # MT23108 InfiniHost Mellanox Technologi
es
[1]     "S-00084e0000000152"[2]         # lid 7 lmc 0

hcaguids=0x66a009800044d
Hca     2 "H-00066a009800044d"          # MT23108 InfiniHost Mellanox Technologi
es
[1]     "S-00084e000000014a"[4]         # lid 2 lmc 0





More information about the general mailing list