Networking NVIDIA NVOS User Manual for InfiniBand Switches

IB Router Commands

The nv show ib router commands and nv action clear ib router counters are available only after you enable IB routing with nv action change system profile. For more information, see IB Router.

nv action change system profile


nv action change system profile ib-routing {enabled|disabled} num-of-swids <1-4> [force]

Changes the system profile: enables or disables IB routing and sets the number of SWIDs (IB subnets).
The switch resets its configuration to the defaults and reboots.

Syntax Description

ib-routing

Enables or disables IB routing: enabled or disabled.

num-of-swids

The number of SWIDs: 1-4.
When IB routing is enabled, valid values are 2-4. When IB routing is disabled, the value must be 1.

force

Runs the action without prompting for confirmation.

Default

ib-routing: disabled
num-of-swids: 1

History

25.02.7002
25.02.8008 Updated output of the command

Example

admin@nvos:~$ nv action change system profile ib-routing enabled num-of-swids 2
The operation will reset the system configuration and initiate a reboot.
The resulting system profile values will be:
ib-routing: enabled
num-of-swids: 2
adaptive-routing-groups: 1792
Type [y] to confirm the system profile change and reboot.
Type [N] to abort.
Do you want to continue? [y/N] y
Action executing ...
System will be rebooted, configurations and system files might be deleted
Action executing ...

admin@nvos:~$ nv action change system profile ib-routing disabled num-of-swids 1
The operation will reset the system configuration and initiate a reboot.
The resulting system profile values will be:
ib-routing: disabled
num-of-swids: 1
adaptive-routing-groups: 1792
Type [y] to confirm the system profile change and reboot.
Type [N] to abort.
Do you want to continue? [y/N] y
Action executing ...
System will be rebooted, configurations and system files might be deleted
Action executing ...


REST API

POST https://<ip>/nvue_v1/system/profile/@change

Related Commands

nv show system profile

Notes



nv set interface <interface-id> link ib-subnet <subnet-name>
nv unset interface <interface-id> link ib-subnet

Assigns an IB interface to an IB subnet (SWID).
The unset form of the command assigns the interface to the default subnet (infiniband-default).

Syntax Description


interface-id

The IB interface name or a range of IB interfaces (for example, sw3p1 or sw3-4p1-2).

subnet-name

The IB subnet: infiniband-default, infiniband-1, infiniband-2, or infiniband-3.

Default

infiniband-default

History

25.02.7002
25.02.8008 Updated output of the command

Example

admin@nvos:~$ nv set interface sw3-4p1-2 link ib-subnet infiniband-1
admin@nvos:~$ nv config apply -y
Warning: IB interface configuration is changed. In order to apply configuration the port will be restarted.

REST API

PATCH https://<ip>/nvue_v1/interface/<interface-id>/link

Related Commands

nv show interface
nv show interface <interface-id> link

Notes

  • This command is supported only on IB ports. You cannot assign FNM ports to an IB subnet.

  • When you change the subnet of an interface, the other port on the same transceiver goes down temporarily, even if its subnet does not change. For example, when you change the subnet of sw1p1, sw1p2 restarts.

nv show ib router routing-table


nv show ib router routing-table

Shows the IB routing table: one entry for each subnet, with the subnet name, the subnet prefix, and the validity status.

Syntax Description

N/A

Default

N/A

History

25.02.7002

Example

admin@nvos:~$ nv show ib router routing-table
IB Subnet           Subnet Prefix        Valid
------------------  -------------------  -------
infiniband-1        fec0:0000:0000:0002  true
infiniband-2        0000:0000:0000:0000  false
infiniband-3        0000:0000:0000:0000  false
infiniband-default  fec0:0000:0000:0001  true

REST API

GET https://<ip>/nvue_v1/ib/router/routing-table

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet
nv show ib router ib-subnet

Notes

  • An entry is valid (true) when at least one port in the up state is assigned to the subnet and a Subnet Manager that runs on the subnet configured the entry.

nv show ib router ib-subnet


nv show ib router ib-subnet

Shows detailed information about all the IB subnets.

Syntax Description

N/A

Default

N/A

History

25.02.8008

Example

admin@nvos:~$ nv show ib router ib-subnet
IB Subnet           Subnet Prefix        Logical State  Physical State  GIDs
------------------  -------------------  -------------  --------------  ---------------------------------------
infiniband-1        fec0:0000:0000:0002  Active         Up              fec0:0000:0000:0002:b8e9:2403:0000:b909
                                                                        fec0:0000:0000:0002:b8e9:2403:0000:b929
                                                                        fec0:0000:0000:0002:b8e9:2403:0000:b949
                                                                        fec0:0000:0000:0002:b8e9:2403:0000:b969
infiniband-2        0000:0000:0000:0000  Initialize     Up              0000:0000:0000:0000:b8e9:2403:0000:b90a
                                                                        0000:0000:0000:0000:b8e9:2403:0000:b92a
                                                                        0000:0000:0000:0000:b8e9:2403:0000:b94a
                                                                        0000:0000:0000:0000:b8e9:2403:0000:b96a
infiniband-3        0000:0000:0000:0000  Initialize     Up              0000:0000:0000:0000:b8e9:2403:0000:b90b
                                                                        0000:0000:0000:0000:b8e9:2403:0000:b92b
                                                                        0000:0000:0000:0000:b8e9:2403:0000:b94b
                                                                        0000:0000:0000:0000:b8e9:2403:0000:b96b
infiniband-default  fec0:0000:0000:0001  Active         Up              fe80:0000:0000:0000:b8e9:2403:0000:b908
                                                                        fe80:0000:0000:0000:b8e9:2403:0000:b928
                                                                        fe80:0000:0000:0000:b8e9:2403:0000:b948
                                                                        fe80:0000:0000:0000:b8e9:2403:0000:b968

REST API

GET https://<ip>/nvue_v1/ib/router/ib-subnet

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet
nv show ib device
nv show ib device ib-subnet

Notes


nv show ib router ib-subnet subnet-name


nv show ib router ib-subnet <subnet-name>

Shows detailed information about an IB subnet.

Syntax Description

subnet-name

The IB subnet: infiniband-default, infiniband-1, infiniband-2, or infiniband-3.

Default

N/A

History

25.02.8008

Example

admin@nvos:~$ nv show ib router ib-subnet infiniband-1
                operational
--------------  ---------------------------------------
subnet-prefix   fec0:0000:0000:0002
logical-state   Active
physical-state  Up
[gid]           fec0:0000:0000:0002:b8e9:2403:0000:b909
[gid]           fec0:0000:0000:0002:b8e9:2403:0000:b929
[gid]           fec0:0000:0000:0002:b8e9:2403:0000:b949
[gid]           fec0:0000:0000:0002:b8e9:2403:0000:b969

REST API

GET https://<ip>/nvue_v1/ib/router/ib-subnet/<subnet-name>

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet
nv show ib router ib-subnet
nv show ib device
nv show ib device ib-subnet

Notes


nv show ib router ib-subnet subnet-name counters


nv show ib router ib-subnet <subnet-name> counters

Shows the counters of an IB subnet.

Syntax Description

subnet-name

The IB subnet: infiniband-default, infiniband-1, infiniband-2, or infiniband-3.

Default

N/A

History

25.02.8008

Example

admin@nvos:~$ nv show ib router ib-subnet infiniband-1 counters
                                operational
------------------------------  -----------
in-bytes                        0 Bytes
in-pkts                         0
in-drops                        0
out-bytes                       0 Bytes
out-pkts                        0
out-drops                       0
out-errors                      0
out-unicast-pkts                0
out-multicast-pkts              0
in-unicast-pkts                 0
in-multicast-pkts               0
buffer-overrun-errors           0
out-wait                        0
link
  carrier-down-count            0
  error-recovery                0
  port-rcv-switch-relay-errors  0
  port-rcv-constraint-errors    0
  local-integrity-errors        0

REST API

GET https://<ip>/nvue_v1/ib/router/ib-subnet/<subnet-name>/counters

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet

Notes

Unlike the IB port counters, the subnet counters do not include in-errors.


nv show ib router ib-subnet <subnet-name> counters link

Shows the link counters of an IB subnet.

Syntax Description

subnet-name

The IB subnet: infiniband-default, infiniband-1, infiniband-2, or infiniband-3.

Default

N/A

History

25.02.8008

Example

admin@nvos:~$ nv show ib router ib-subnet infiniband-1 counters link
                              operational
----------------------------  -----------
carrier-down-count            0
error-recovery                0
port-rcv-switch-relay-errors  0
port-rcv-constraint-errors    0
local-integrity-errors        0

REST API

GET https://<ip>/nvue_v1/ib/router/ib-subnet/<subnet-name>/counters/link

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet
nv show ib router ib-subnet counters

Notes

Unlike the IB port link counters, the subnet link counters do not include port-rcv-remote-physical-errors.

nv show ib router ib-subnet subnet-name gid


nv show ib router ib-subnet <subnet-name> gid

Shows the GID of each ASIC in an IB subnet.

Syntax Description

subnet-name

The IB subnet: infiniband-default, infiniband-1, infiniband-2, or infiniband-3.

Default

N/A

History

25.02.8008

Example

admin@nvos:~$ nv show ib router ib-subnet infiniband-1 gid
GID                                      ASIC
---------------------------------------  -----
fec0:0000:0000:0002:b8e9:2403:0000:b909  ASIC1
fec0:0000:0000:0002:b8e9:2403:0000:b929  ASIC2
fec0:0000:0000:0002:b8e9:2403:0000:b949  ASIC3
fec0:0000:0000:0002:b8e9:2403:0000:b969  ASIC4

REST API

GET https://<ip>/nvue_v1/ib/router/ib-subnet/<subnet-name>/gid

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet
nv show ib router ib-subnet

Notes


nv show ib router --view counters


nv show ib router --view counters

Shows the counters of all IB subnets.

Syntax Description

N/A

Default

N/A

History

25.02.8008

Example

admin@nvos:~$ nv show ib router --view counters
Counter                       infiniband-default  infiniband-1  infiniband-2  infiniband-3
----------------------------  ------------------  ------------  ------------  ------------
in-bytes                      0                   0             0             0
in-pkts                       0                   0             0             0
in-drops                      0                   0             0             0
out-bytes                     0                   0             0             0
out-pkts                      0                   0             0             0
out-drops                     0                   0             0             0
out-errors                    0                   0             0             0
out-unicast-pkts              0                   0             0             0
out-multicast-pkts            0                   0             0             0
in-unicast-pkts               0                   0             0             0
in-multicast-pkts             0                   0             0             0
buffer-overrun-errors         0                   0             0             0
out-wait                      0                   0             0             0
carrier-down-count            0                   0             0             0
error-recovery                0                   0             0             0
port-rcv-switch-relay-errors  0                   0             0             0
port-rcv-constraint-errors    0                   0             0             0
local-integrity-errors        0                   0             0             0

REST API

GET https://<ip>/nvue_v1/ib/router

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet
nv show ib router ib-subnet subnet-name counters
nv show ib router ib-subnet subnet-name counters link

Notes


nv action clear ib router counters


nv action clear ib router counters

Clears the counters of all IB subnets.

Syntax Description

N/A

Default

N/A

History

25.02.8008

Example

admin@nvos:~$ nv action clear ib router counters
Action executing ...
Cleared IB router counters successfully
Action succeeded

REST API

POST https://<ip>/nvue_v1/ib/router/@clear

Related Commands

nv action change system profile ib-routing num-of-swids
nv set interface link ib-subnet
nv show ib router ib-subnet subnet-name counters
nv show ib router ib-subnet subnet-name counters link
nv show ib router --view counters

Notes


Last updated: