This ruleset defines an adapter called “OTM-TMF814-ADAPTER”. The STARTUP rule executes the connect and otmConnect actions if the AdapterName variable is “OTM-TMF814-ADAPTER.” In this example the connect action connects to the Cisco EMS and the otmConnect action connects to the OTM-SDH-TOPOLOGY server.

<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
    <!-- global settings -->
    <globals
        otm.basedir="/opt/InCharge7/OTM-5.0/OTM"
    />
    <!-- this creates our adapter -->
    <adapter
        AdapterName="OTM-TMF814-ADAPTER"
        AdapterClass="com.vmware.smart.optical.OtmAdapter"
    />
    <!-- this rule runs at STARTUP time -->
    <rule type="STARTUP">
        <!-- for the adapter called OTM-TMF814-ADAPTER -->
        <condition varName="AdapterName" varValue="OTM-TMF814-ADAPTER"/>
        <!-- connect to the Cisco EMS -->
        <action type="java" javaClass="connect">
            <params
                connectionType="TMF814"
     connectionFactory= "com.vmware.smart.optical.tmf814.\
      emsInterface.OtmTmf814ConnectionFactory"
     connectionSyncherFactory="com.vmware.smart.optical.\ 
      tmf814.emsInterface.OtmTmf814SyncherFactory"
                ems.instanceName="Cisco-EMS"
                ems.emsType="CiscoCtm"
                ems.interfaceClass="com.vmware.smart.optical.\
      tmf814.ciscoCtm.CiscoCtmEmsInterface"
                ems.sessionFactory="Cisco Systems/CTM_78.EmsSessionFactory"
                ems.sessionFactoryBackup="Cisco Systems/CTM_78.EmsSessionFactory"
                ems.userName="smarts"
                ems.password="smarts123"
     ems.nameServerIors=\
"corbaloc::lglob070:7685/StandardNS/NameServer-POA/root"
                ems.emsTracerFile="$otm.basedir$/smarts/local/logs"
                ems.trackEventsAndAudit="false"
                ems.saveForSimulator="false"
                ems.supplierProxyDir=""
                ems.emsSwitchingTimeInMinutes="5"
                ems.numberOfTries="2"
                ems.logToFilePath=\
"$otm.basedir$/smarts/local/logs/CiscoAdapter.log"
                ems.maxFileSize="1GB"
                ems.maxBackupIndexForFile="1"
                ems.logFileDuration="14"
                ems.memoryThreshold="10"
                ems.eventChannel="on"
                ems.discovery="on"
                ems.structuredProxyPushSupplierIsPersistent="false"
                ems.maxEventsInTimeslice="1000"
                ems.eventProcessorSleepMsec="10"
                ems.monitorConnection="true"
                ems.connectAttemptMsec="30000"
                ems.emsConnectionPollMsec="5000"
                ems.watchdogTimeoutMsec="3600000"
                ems.managedElementChunkSize="50"
                ems.equipmentChunkSize="50"
                ems.topologicalLinkChunkSize="50"
                ems.subnetworkChunkSize="50"
                ems.subnetworkContainmentChunkSize="50"
                ems.subnetworkConnectionChunkSize="50"
                ems.eventChunkSize="50"
                ems.adapterWorkThreads="6"
            />
        </action>
        <!-- connect to SONET -->
        <action type="java" javaClass="otmConnect">
            <params
                connectionName="OTM-SONET"
                connectionType="OTM-SDH-TOPOLOGY"
     connectionSyncher="com.vmware.smart.ce.\
      jablOtmInterface.     connection.otmSonetSyncher"
                icDomain="OTM-SDH-TOPOLOGY"
                managedEms="Cisco-EMS"
                pingFrequency="30"
            />
        </action>
    </rule>
</ruleset>