Invoking the Smart Assist's component Add menu

If you choose a Smart Assist with an application installed, the framework then displays a list of component names.

These names are generated from the component discovery process. You must select a component and the SMIT Add menu specified when the Smart Assist was added is invoked. The code in the SMIT menu generated by the Smart Assist developer is then executed.

The Smart Assist framework uses the two name value pairs sent to claddsa: SMIT_ADD and SMIT_ADD_TYPE. The value for SMIT_ADD_TYPE is either 'n' or 'd'. These values correspond to the values used in smitty ODM classes such as sm_name_hdr, in particular the next_type field.

Specifying 'n' means that after you select the particular Smart Assist component, the next SMIT ID will be a sm_name_hdr entry. In most cases the sm_name_hdr SMIT screen is used to select a particular application instance (for example, a DB2® instance name) or option before entering the ADD dialog. Specifying 'd' for SMIT_ADD_TYPE means that the next SMIT identifier will be a sm_cmd_hdr entry (dialog). The SMIT_ADD field for the Smart Assist component designates the next identifier SMIT will visit.

Before the particular Smart Assist SMIT stanzas are invoked, the application discovery framework builds the following cooked name fields. These fields can be used in SMIT for cmd_to_classify, cmd_to_discover, or cmd_to_exec functions.

Once control is passed within SMIT to the particular Smart Assist no further application framework SMIT screens are invoked. The developer is free to construct the sm_name_hdr, and sm_cmd_hdr entries as necessary.

Cooked name in SMIT Description
sa_id Smart Assist ID
component_id Component ID
cluster_name Name of the cluster
nodes Comma-separated list of nodes on which the component was installed.
application_id (for the modify screen only) the application identifier