![](https://csdnimg.cn/release/download_crawler_static/88221915/bgf.jpg)
The SMIT menus are either installed via the Smart Assist at the time of installation, or alternatively the
Smart Assist can request that the registration API inject the ODM stanzas. The preferred approach is to
request the registration API to add the ODM stanzas, so that the Smart Assist deinstallation process can
remove the ODM entries on your behalf.
The four SMIT stanza types: sm_cmd_opt, sm_cmd_hdr, sm_menu_opt, sm_name_hdr are supported by
the HACMP registration API. The Smart Assist framework keeps track of the entries added into the SMIT
ODM stanzas, and at the time of deinstallation removes the appropriate entries simply by calling the
deregistration command. If the Smart Assist performs the operation of adding the entries, then it is
assumed by the framework that the Smart Assist will also remove the entries upon deinstallation.
There are several points in the Smart Assist framework where control will transfer from the Smart Assist
framework to your new Smart Assist. You must use the correct Smart Assist Identifiers for the SMIT
ODM classes in order for control to properly transfer from one session to another.
Add an application to the HACMP configuration
The Add an Application to the HACMP Configuration SMIT session goes through a number of
transitions before finally passing control off to the Smart Assist.
The user must first specify nodes for the cluster (if nodes exist). Then if the Smart Assist requires sites
and no sites exist, the user must specify the sites for the cluster. After both of the above tasks are
accomplished, the user is then presented a selector screen showing the available applications. Once the
user selects an application, control is passed along to the Smart Assist Add screen.
If nodes and/or sites were specified by the user, then the discovery information within SMIT would
provide the following name / value pairs:
#nodes:sites: SmartAssistID_ComponentID
nodeA nodeB:siteA siteB:<SmartAssistID_ComponentID>
Change/show an application's HACMP configuration
Similar to the Add An Application To The Hacmp Configuration SMIT screen, users will select a
particular application already defined to HACMP, and then modify the existing values.
Control will be passed off to the Smart Assist once the user selects the application to change or show.
Manage your applications
The Manage Your Applications SMIT screen is different from the Add and Change/Show SMIT screens
in that it transfers control over to a SMIT menu system written by the Smart Assist, rather than to a SMIT
dialog.
After selecting the Manage Your Applications SMIT screen, the user is presented a list of applications
that are already configured and have management screens. Once the user selects a particular component
of the Smart Assist, control is passed to the Smart Assist menus. The Smart Assist developer must
provide a sm_menu_opt SMIT ODM with an id of clsa-manage <your_next_id>.
General guidelines for developing SMIT
Each Smart Assist will need two developing SMIT displays at a minimum: One for adding an application
and one for modifying an existing configuration. It is beyond the scope of this document to explain how
to develop SMIT, but we can mention some requirements that facilitate a smooth flow from the Smart
Assist menus to the displays that add or modify the application's configuration within HACMP. The
Smart Assist Framework will also supply some useful information you can choose to use.
You may find that you will need additional selectors prior to navigating to the SMIT display to add your
application. For instance, if you are trying to make a database instance highly available, your Smart
Assist may need to have the user select a specific database instance from a list. In this case, you may
choose to have a selector rather than a display as an entry point. SMIT menus are not an option (due to
Smart Assist developer’s guide 7