2 .\" Copyright (c) 2004-2006 Storage Networking Industry Association. All Rights Reserved.
3 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH LIBMPAPI 3LIB "Dec 12, 2006"
9 libMPAPI, libmpapi \- Common Mulitipath Management library
13 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lMPAPI\fR [ \fIlibrary\fR... ]
14 #include <\fBmpapi.h\fR>
15 #include <\fBmpapi_sun.h\fR>
21 The functions in this library allow a management application to administer the
22 multipath devices and associated resources through standard interfaces,
23 independent of a vendor-unique multipathing solution.
27 The shared object \fBlibMPAPI.so.1\fR provides the public interfaces defined
28 below. See \fBIntro\fR(3) for additional information on shared object
32 \fBMP_AssignLogicalUnitToTPG\fR
36 \fBMP_CancelOverridePath\fR
44 \fBMP_DeregisterForObjectPropertyChanges\fR
48 \fBMP_DeregisterForObjectVisibilityChanges\fR
52 \fBMP_DeregisterPlugin\fR
56 \fBMP_DisableAutoFailback\fR
60 \fBMP_DisableAutoProbing\fR
68 \fBMP_EnableAutoFailback\fR
72 \fBMP_EnableAutoProbing\fR
84 \fBMP_GetAssociatedPathOidList\fR
88 \fBMP_GetAssociatedPluginOid\fR
92 \fBMP_GetAssociatedTPGOidList\fR
96 \fBMP_GetDeviceProductOidList\fR
100 \fBMP_GetDeviceProductProperties\fR
104 \fBMP_GetInitiatorPortOidList\fR
108 \fBMP_GetInitiatorPortProperties\fR
112 \fBMP_GetLibraryProperties\fR
116 \fBMP_GetMPLogicalUnitProperties\fR
120 \fBMP_GetMPLuOidListFromTPG\fR
124 \fBMP_GetMultipathLus\fR
128 \fBMP_GetObjectType\fR
132 \fBMP_GetPathLogicalUnitProperties\fR
136 \fBMP_GetPluginOidList\fR
140 \fBMP_GetPluginProperties\fR
144 \fBMP_GetProprietaryLoadBalanceOidList\fR
148 \fBMP_GetProprietaryLoadBalanceProperties\fR
152 \fBMP_GetTargetPortGroupProperties\fR
156 \fBMP_GetTargetPortOidList\fR
160 \fBMP_GetTargetPortProperties\fR
164 \fBMP_RegisterForObjectPropertyChanges\fR
168 \fBMP_RegisterForObjectVisibilityChanges\fR
172 \fBMP_RegisterPlugin\fR
176 \fBMP_SetFailbackPollingRate\fR
180 \fBMP_SetLogicalUnitLoadBalanceType\fR
184 \fBMP_SetOverridePath\fR
188 \fBMP_SetPathWeight\fR
192 \fBMP_SetPluginLoadBalanceType\fR
196 \fBMP_SetProbingPollingRate\fR
200 \fBMP_SetProprietaryProperties\fR
204 \fBMP_SetTPGAccess\fR
208 \fBSun_MP_SendScsiCmd\fR
213 Client applications link with the Common Library (using \fB-lMPAPI\fR) to
214 access the interfaces. The Common Library dynamically loads an individual
215 vendor-provided plugin library that is available through
216 \fBMP_RegisterPlugin\fR(3MPAPI) on the host system.
219 Using \fBlibMPAPI\fR involves the following steps:
223 Optionally calling \fBMP_GetLibraryProperties()\fR to retrieve the
224 properties of the Common Library.
229 Calling \fBMP_GetPluginOidList()\fR to retrieve the registered plugin
235 Optionally calling \fBMP_GetPluginProperties()\fR to retrieve the properties
236 of the plugin library.
241 Retrieve discovery information and property information on multipath devices
242 and associated resources by calling the following:
247 \fBMP_GetAssociatedPathOidList()\fR
253 \fBMP_GetAssociatedTPGOidList()\fR
259 \fBMP_GetDeviceProductOidList()\fR
265 \fBMP_GetDeviceProductProperties()\fR
271 \fBMP_GetInitiatorPortOidList()\fR
277 \fBMP_GetInitiatorPortProperties()\fR
283 \fBMP_GetMPLuOidListFromTPG()\fR
289 \fBMP_GetMPLogicalUnitProperties()\fR
295 \fBMP_GetMultipathLus()\fR
301 \fBMP_GetPathLogicalUnitProperties()\fR
307 \fBMP_GetProprietaryLoadBalanceOidList()\fR
313 \fBMP_GetProprietaryLoadBalanceProperties()\fR
319 \fBMP_GetTargetPortGroupProperties()\fR
325 \fBMP_GetTargetPortOidList()\fR
331 \fBMP_GetTargetPortProperties()\fR
337 Register and deregister for property and visibility changes on multipath
338 devices and associated resources by calling:
343 \fBMP_RegisterForObjectPropertyChanges()\fR
349 \fBMP_RegisterForObjectVisibilityChanges()\fR
355 \fBMP_DeregisterForObjectPropertyChanges()\fR
361 \fBMP_DeregisterForObjectVisibilityChanges()\fR
367 Perform administrative operations on multipath devices and associated
368 resources by calling:
373 \fBMP_AssignLogicalUnitToTPG()\fR
379 \fBMP_CancelOverridePath()\fR
385 \fBMP_DisableAutoFailback()\fR
391 \fBMP_DisableAutoProbing()\fR
397 \fBMP_DisablePath()\fR
403 \fBMP_EnableAutoFailback()\fR
409 \fBMP_EnableAutoProbing()\fR
415 \fBMP_EnablePath()\fR
421 \fBMP_SetLogicalUnitLoadBalanceType()\fR
427 \fBMP_SetOverridePath()\fR
433 \fBMP_SetPathWeight()\fR
439 \fBMP_SetPluginLoadBalanceType()\fR
445 \fBMP_SetFailbackPollingRate()\fR
451 \fBMP_SetProbingPollingRate()\fR
457 \fBMP_SetProprietaryProperties()\fR
463 \fBMP_SetTPGAccess()\fR
469 \fBSun_MP_SendScsiCmd()\fR
475 Errors are generally returned from the underlying VSL and can include any of
476 the following values:
480 \fB\fBMP_STATUS_SUCCESS\fR\fR
484 This status value is returned when the requested operation is successfully
491 \fB\fBMP_STATUS_INVALID_PARAMETER\fR\fR
495 This status value is returned when parameters passed to an API are detected to
496 be invalid or inappropriate for a particular API parameter. If the parameter is
497 an object ID, this status indicates that the object type subfield is defined in
498 this specification, but is not appropriate for this API
504 \fB\fBMP_STATUS_UNKNOWN_FN\fR\fR
508 This status value is returned when a client function passed into the API is not
509 a previously registered or known function.
515 \fB\fBMP_STATUS_FAILED\fR\fR
519 This status value is returned when the requested operation could not be carried
526 \fB\fBMP_STATUS_INSUFFICIENT_MEMORY\fR\fR
530 This status value is returned when the API could [not] allocate the memory
531 required to complete the requested operation.
537 \fB\fBMP_STATUS_INVALID_OBJECT_TYPE\fR\fR
541 This status value is returned when an object ID includes a type subfield that
542 is not defined in this specification.
548 \fB\fBMP_STATUS_OBJECT_NOT_FOUND\fR\fR
552 This status value is returned when the object associated with the ID specified
553 in the API could not be located, or has been deleted. Note that an invalid
554 object type is covered by \fBMP_STATUS_INVALID_OBJECT_TYPE\fR so this status is
555 limited to an invalid object owner identifier or sequence number.
561 \fB\fBMP_STATUS_UNSUPPORTED\fR\fR
565 This status value is returned when the implementation does not support the
572 \fB\fBMP_STATUS_FN_REPLACED\fR\fR
576 This status value is returned when a client function passed into the API
577 replaces a previously registered function.
583 \fB\fBMP_STATUS_ACCESS_STATE_INVALID\fR\fR
587 This status value is returned when a device processing \fBMP_SetTPGAccess\fR
588 returns a status indicating that the caller is attempting to establish an
589 illegal combination of access states.
595 \fB\fBMP_STATUS_PATH_NONOPERATIONAL\fR\fR
599 This status is returned when communication cannot be established with the path
600 selected by the caller.
606 \fB\fBMP_STATUS_TRY_AGAIN\fR\fR
610 This status is returned when the plugin or driver is unable to complete the
611 request, but might be able to complete it later.
617 \fB\fBMP_STATUS_NOT_PERMITTED\fR\fR
621 The operation is not permitted in the current configuration, but might be
622 permitted in other configurations.
629 \fB\fB/usr/lib/libMPAPI.so\fR\fR
638 \fB\fB/usr/lib/64/libMPAPI.so\fR\fR
647 See \fBattributes\fR(5) for descriptions of the following attributes:
655 ATTRIBUTE TYPE ATTRIBUTE VALUE
657 Interface Stability Committed
661 ANSI INCITS 412 Multipath Management API (except for \fBSun_MP_SendScsiCmd\fR)
668 \fBIntro\fR(3), \fBMP_RegisterPlugin\fR(3MPAPI), \fBattributes\fR(5)
671 \fIMultipath Management API Version 1.0\fR