Use the attachServiceMap command to attach a service map to a local mapping service.
You can also attach a service map to a local mapping service when you create that local mapping service, by using the -attachSMName parameter. See createLMService command.
None
The following examples attach the local mapping service named StockQuoteService to a service map named Route.
Using Jython:
AdminTask.attachServiceMap('StockQuoteService', ['-smName Route'])
'CWSMW0245I: Successfully attached service map "Route" to local mapping service "StockQuoteService".'
Using Jacl:
$AdminTask attachServiceMap StockQuoteService "-smName Route"
CWSMW0245I: Successfully attached service map "Route" to local mapping service "StockQuoteService".