User Manual

OpenSM – Subnet ManagerRev 2.2-1.0.1
Mellanox Technologies
194
Predefined Port Groups
There are 3 predefined, automatically created port groups that are available for use, yet
cannot be defined in the policy file (if a group in the policy is configured with the name
of one of these predefined groups, the policy fails) -
ALL - a group that includes all nodes in the fabric
ALL_SWITCHES - a group that includes all switches in the fabric.
ALL_CAS - a group that includes all HCA's in the fabric.
Port Groups Policy Examples
port-group
name: grp3
use: Subtract of groups grp1 and grp2
subtract-rule: grp1, grp2
end-port-group
port-group
name: grp1
port-guid: 0x281, 0x282, 0x283
end-port-group
port-group
name: grp2
port-guid-range: 0x282-0x286
end-port-group
port-group
name: grp4
port-name: hostname=kika port=1 hca_idx=1
end-port-group
port-group
name: grp3
union-rule: grp3, grp4
end-port-group
8.5.8.2 Defining a Topologies Policy File
In order to define a port group policy file, set the parameter 'topo_policy_file' in the opensm con-
figuration file.
topo_policy_file /etc/opensm/conf/topo_policy_file.cfg
Configuring a Topology Policy
The topologies policy file details a list of topologies. The policy file should be composed of one
or more paragraphs which define a topology
. Each paragraph should begin with the line 'topol-
ogy' and end with the line 'end-topology'.