man pages section 1M: System Administration Commands

Exit Print View

Updated: July 2014
 
 

datadm(1M)

Name

datadm - maintain DAT static registry file

Synopsis

/usr/bin/datadm [-v] [-u] [-a service_provider.conf] 
     [-r service_provider.conf]

Description

The datadm utility maintains the DAT static registry file, dat.conf(4).

This administrative configuration program allows uDAPL service providers to add and remove themselves to the dat.conf file.

You can add or remove interface adapters that a service provider supports from a system after its installation. You can use datadm to update the dat.conf file to reflect the current state of the system. A new set of interface adapters for all the service providers currently installed is regenerated.

Options

The following options are supported:

–a service_provider.conf

Enumerate each device entry in the service_provider.conf(4) file into a list of interface adapters, that is, interfaces to external network that are available to uDAPL consumers.

–r service_provider.conf

Remove the list of interface adapters that corresponds to the device entry in the service_provider.conf(4) file.

–u

Update the dat.conf to reflect the current state of the system with an up to date set of interface adapters for the service providers that are currently listed in the DAT static registry.

–v

Display the DAT static registry file, dat.conf.

Examples

Example 1 Enumerating a Device Entry

The following example enumerates a device entry in the service_provider.conf(4) file into interface adapters in the dat.conf(4) file.

Assume that SUNW has a service provider library that supports the device hermon. It has a service_provider.conf(4) file installed in the directory /usr/share/dat/SUNWudaplt.conf with a single entry as follows:

driver_name=hermon u1.2 nonthreadsafe default\
    udapl_tavor.so.1 SUNW.1.0 ""

hermon is an Infiniband Host Channel Adapter with two ports. Both IB ports exist in a single IB partition, 0x8001. If an IB partition is created and plumbed to each port (with the names p8001.ibd0 and p8001.ibd1), there will be two IB partition instances. See dladm(1M) for more information on creating IB partition data links.

# dladm show-part

LINK           PKEY      OVER       STATE      FLAGS
p8001.ibd0     8001      ibd0       unknown    ----
p8001.ibd1     8001      ibd1       unknown    ----

Running the command:

# datadm -a /usr/share/dat/SUNWudaplt.conf

...appends two new entries (if they do not already exist) in the /etc/dat/dat.conf file:

p8001.ibd0 u1.2 nonthreadsafe default udapl_tavor.so.1 SUNW.1.0 ""
"driver_name=hermon"
p8001.ibd1 u1.2 nonthreadsafe default udapl_tavor.so.1 SUNW.1.0 ""
"driver_name=hermon"
Example 2 Updating the dat.conf to Reflect the Current State of the System

A new IB partition, 0x8002, is added to the above example covering port 1 of the Host Channel Adapter. If a new IB partition is created on the port 1/partition 0x8002 with the partition link name specified as p8002.ibd0, there will be a third IB partition instance: p8002.ibd0.

# dladm show-part
LINK           PKEY      OVER       STATE      FLAGS
p8001.ibd0     8001      ibd0       unknown    ----
p8001.ibd1     8001      ibd1       unknown    ----
p8002.ibd0     8000      ibd0       unknown    ----

Running datadm -u command, updates the /etc/dat/dat.conf file with a new entry added reflecting the current state of the system.

datadm -v shows that there are now three entries in the /etc/dat/dat.conf file:

p8001.ibd0 u1.2 nonthreadsafe default udapl_tavor.so.1 SUNW.1.0 ""
"driver_name=hermon" 
p8001.ibd1 u1.2 nonthreadsafe default udapl_tavor.so.1 SUNW.1.0 ""
"driver_name=hermon"
p8002.ibd0 u1.2 nonthreadsafe default udapl_tavor.so.1 SUNW.1.0 ""
"driver_name=hermon"

Files

/etc/dat/dat.conf

DAT static registry file

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/io/infiniband/udapl
Interface Stability
Committed

See also

dladm(1M), pkgadd(1M), pkgrm(1M), libdat(3LIB), dat.conf(4), service_provider.conf(4) , attributes(5)