[openib-general] Re: when executing sminfo with a port in down state, there is a retur n value 0

Hal Rosenstock halr at voltaire.com
Tue Aug 30 06:26:16 PDT 2005


Hi Dotan,

On Tue, 2005-08-23 at 02:33, Dotan Barak wrote:
> I'm working with gen2 svn rev. 3155 with 2 Mellanox HCAs (23108) (1 on
> each host; they are connected b2b: port 1 to port 1).

Is port 2 also connected to port 2 ?

> I executed opensm on host 1, port 1.
> When i executed sminfo on host 2 port 1 everything was as expected
> (return value = 0).
> 
> I killed the opensm
> When i executed sminfo on host 2 port 1 everything was as expected
> (return value = 255).
> 
> When i executed sminfo on host 2 port 2 everything i got 0 (i expected
> to get return value = 255).
> 
> Port 2 in host 2 was down, so i don't know why i got the return value
> 0.
>
> here is the output:
> 
> host2:~ # /usr/local/bin/sminfo -C mthca0 -P 2
> sminfo: sm lid 0x0 sm guid 0x8200000000, activity count 0 priority 0
> state SMINFO_NOTACT 0
> host2:~ # echo $?
> 0
> host2:~ # /usr/local/bin/sminfo -C mthca0 -P 2
> sminfo: sm lid 0x0 sm guid 0x0, activity count 0 priority 0 state
> SMINFO_STANDBY 2
> host2:~ # echo $?
> 0
> 
> host2:~ #  vstat
> hca_id: mthca0
>         phys_port_cnt:                  2
>                 port:   1
>                         state:                  PORT_ACTIVE (4)
>                         max_mtu:                0 (0)
>                         active_mtu:             0 (0)
>                         sm_lid:                 1
>                         port_lid:               2
>                         port_lmc:               0x00
> 
>                 port:   2
>                         state:                  PORT_DOWN (1)
>                         max_mtu:                0 (0)
>                         active_mtu:             0 (0)
>                         sm_lid:                 0
>                         port_lid:               0
>                         port_lmc:               0x00
> 
> 
> can you please help me with this issue?

I have this on my list TODO but it is lower down in priority. I haven't
forgotten about it. I will get back to it after the 1.8.0 merge.

-- Hal




More information about the general mailing list