Use the wsadmin tool with the AdminConfig object to enable Web Services Distributed Management (WSDM) in your environment. WSDM is an OASIS approved standard that supports managing resources through a standardized web service interface.
The WSDM application is installed as a system application and is disabled by default. In order to use the WSDM functionality, use the script in this topic to enable WSDM.
In a stand-alone application server environment, the system deploys one WSDM application for each application server instance. Enable the WSDM application to act as an administrative client to the management code running inside the single Java virtual machine for that instance.
deployment = AdminConfig.getid('/Deployment:WebSphereWSDM/')
deployedObject = AdminConfig.showAttribute(deployment, 'deployedObject')
targetMappings = AdminConfig.showAttribute(deployedObject, "targetMappings")
mappings = targetMappings[1:len(targetMappings)-1].split(" ")
for target in mappings:
AdminConfig.modify(target, '[[enable true]]')
AdminConfig.save()
set deployment [$AdminConfig getid /Deployment:WebSphereWSDM]
set deployedObject [$AdminConfig showAttribute $deployment deployedObject]
set targetMappings [lindex [$AdminConfig showAttribute $deployedObject targetMappings] 0]
$AdminConfig modify $targetMappings {{enable true}}
$AdminConfig save