The loadModel operation in the SM-System instance of the SM_System class is used to load a model into a running Manager. All dynamic model files must be located in the BASEDIR/smarts/model directory. The dmctl utility is used to invoke the loadModel operation. “Using dmctl” on page 93 provides additional information. The syntax for the command line is as follows:

t# 
		
         BASEDIR/smarts/bin/dmctl -s <domain_manager> [-b <broker>] invoke SM_System::SM-System loadModel <modelfilename> SM_DYNAMIC_LIBRARYs

where:

  • <domain_manager> is the name of the Domain Manager.

  • (Optional) <broker> is the name of the Broker to which the Domain Manager has been registered. The default is localhost:426.

  • <modelfilename> is the name of the model file without the extension.

    For example, you would type the following to load the Example3.ldm dynamic model file into the TESTDM Domain Manager attached to the broker on localhost:426.

    t# 
    		
                   BASEDIR
                   /smarts/bin/dmctl -s TESTDM -b localhost:426 invoke SM_System::SM-System loadModel Example3 SM_DYNAMIC_LIBRARYs
    

    Verify that the model file was loaded. If you started your Domain Manager with the

    -- output option, you can check the log file. Your output should be similar to the following:

    [July 10, 2009 12:25:29 PM EDT +789ms] t@1120213312 LDM file processing #1
    DYN-W-FILE_OPEN_OK- Reading
        '/opt/InCharge8/IP/smarts/local/model/Example3.ldm'
    [July 10, 2009 12:25:44 PM EDT +141ms] t@1120213312 LDM file processing #1
    MRM-*-MRM_PROP_INIT-Property TS_OverrunThreshold initial value ='10'
    [July 10, 2009 12:25:44 PM EDT +142ms] t@1120213312 LDM file processing #1
    MRM-*-MRM_SET_PROP-Setting initial property of TS_OverrunThreshold to 10
    [July 10, 2009 12:25:44 PM EDT +143ms] t@1120213312 LDM file processing #1
    MRM-*-MRM_ACT_PROP-Actual initial value for TS_OverrunThreshold = 10
    [July 10, 2009 12:25:44 PM EDT +144ms] t@1120213312 LDM file processing #1
    DYN-W-CLASS_REFINE_CREATED- Interface NetworkAdapter_Performance_Setting
        refined from Example3.mdl:1
    [July 10, 2009 12:25:44 PM EDT +145ms] t@1120213312 LDM file processing #1
    MRM-*-MRM_PROP_INIT-Property TS_OverrunThreshold initial value ='10'
    [July 10, 2009 12:25:44 PM EDT +146ms] t@1120213312 LDM file processing #1
    MRM-*-MRM_SET_PROP-Setting initial property of TS_OverrunThreshold to 10
    [July 10, 2009 12:25:44 PM EDT +146ms] t@1120213312 LDM file processing #1
    MRM-*-MRM_ACT_PROP-Actual initial value for TS_OverrunThreshold = 10
    [July 10, 2009 12:25:44 PM EDT +147ms] t@1120213312 LDM file processing #1
    DYN-W-CLASS_REFINE_CREATED- Interface Interface_Performance_CiscoRouter
        refined from Example3.mdl:8