4 discovering shelves and domains, 5 adding and removing shelves and domains, 1 adding shelves and domains – Artesyn System Management Interface Based on HPI-B 2.0(Centellis 4620/4440) User's Guide (June 2014) User Manual

Page 49: Using hpi-b

Advertising
background image

Using HPI-B

System Management Interface Based on BBS HPI-B 2.0 (Centellis 4620/4440) User’s Guide (6806800P21D)

49

4.4.4

Discovering Shelves and Domains

As previously mentioned, one way to discover available domains is to use the Domain
Reference Table. For further details, refer to the SAI-HPI-B.01.02 specification document.

Alternatively, you can use the Shelf Management Resources defined in the default domain. Any
shelves that were added to the HPI environment are represented by one Shelf Management
Resource with the entry ResourceCapability set to SAHPI_CAPABILITY_DOMAIN. So in order to
discover shelves/domains, you simply need to parse the default domain for HPI resources with
the entry ResourceCapability set to SAHPI_CAPABILITY_DOMAIN. Then you can obtain the
respective domain ID by reading the entry DomainId and open a session to the shelf using the
obtained domain ID.

4.4.5

Adding and Removing Shelves and Domains

All shelves which are used by the HPI multishelf library are listed in the multishelf library
configuration file. There are two ways of adding and removing shelves:

Manually by editing the multishelf configuration file. Changes become effective after the
next restart in this case.

Dynamically by using the HPI domain management control

For a description of how to manually edit the multishelf library configuration file, refer to

Configuring HPI Clients

on page 30

.

A description of how to dynamically add and remove shelves, is given in the following two
subsections.

4.4.5.1

Adding Shelves and Domains

In order to dynamically add a shelf and create a domain, you must invoke the HPI function
saHpiControlStateSet()

and provide the following parameters.

Parameter

Value

SessionId

Handle to session context.

ResourceId

Resource ID of the addressed resource.

CtrlNum

Number of the control for which the state is being
set.

Advertising