1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import javax.management.ObjectName import java.util.Locale # find JMX object name for DiagnosticService MBean -- provides formatting helper methods dsObjectName = AdminControl.queryNames('type=DiagnosticService,*') # find JMX object name for the specific diagnosticProvider MBean we're interested in dpObjectName = AdminControl.queryNames('name=WebcontainerDiagnosticProvider,*') # invoke the config dump and show results containing PlantsByWebSphere result = AdminControl.invoke_jmx(javax.management.ObjectName(dsObjectName), 'configDumpFormattedById', [dpObjectName, '.*PlantsByWebSphere.*', java.lang.Boolean(0), java.util.Locale('en_US')], ['java.lang.String', 'java.lang.String', 'boolean', 'java.util.Locale']) print result[0] |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | WASX7209I: Connected to process "server1" on node don7Node03 using SOAP connector; The type of process is: UnManagedProcess DiagnosticProviderId: WebSphere:name=WebcontainerDiagnosticProvider,process=server1, platform=dynamicproxy,node=don7Node03,diagnosticProvider=true,version=6.1.0.0,type= WebcontainerDiagnosticProvider,mbeanIdentifier=null,cell=don7Node03Cell,spec=1.0 EventType: configDump MessageKey: null ResourceBundleName: null Source Class: com.ibm.ws.webcontainer.diag.WebcontainerDiagnosticProviderMBean Source Method: configDump ContentType: 1 Cell: don7Node03Cell Node: don7Node03 Server: server1 SrvDetail: Item Concatenated Name Value startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- additionalClasspath = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- applicationName = PlantsByWebSphere startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- applicationStartupWeight = 1 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- autoLoadFiltersEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- autoRequestEncoding = true startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- autoResponseEncoding = true startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- codeErrorPages = 500=com.ibm.ws.container.ErrorPage@63dc63dc;404=com.ibm.ws.container. ErrorPage@63c263c2 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- contextParams = password=wsdemo1;userID=WSDEMO;dataSourceName=jdbc/PlantsByWebSphereData Source startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- contextRoot = /PlantsByWebSphere startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- defaultErrorPage = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- defaultErrorPageDescription = PlantsByWebSphere Web App startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- directoryBrowingEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- displayName = PlantsByWebSphere Web Application startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- documentRoot = D:WebSphere610profilesAppSrv01installedAppsdon7Node03CellPlantsByWebSphere. earPlantsByWebSphere.war startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- exceptionErrorPages = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- fileServingAttributes = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- fileServingEnabled = true startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- invokerAttributes = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- mimeFilteringEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- mimeMappings = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- moduleID = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- moduleName = PlantsByWebSphere.war startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- moduleStartupWeight = 10000 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- reloadInterval = 3 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- reloadingEnabled = true startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- servletServingByClassnameEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- syncToThreadEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- version = 24 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsByWebSphere.war- welcomeFiles = index.html startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- additionalClasspath = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- applicationName = PlantsByWebSphere startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- applicationStartupWeight = 1 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- autoLoadFiltersEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- autoRequestEncoding = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- autoResponseEncoding = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- codeErrorPages = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- contextParams = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- contextRoot = /PlantsByWebSphere/docs startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- defaultErrorPage = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- defaultErrorPageDescription = Contains the Technology PlantsByWebSphere Sample Gallery files startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- directoryBrowingEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- displayName = PlantsByWebSphere Sample Gallery Web Application startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- documentRoot = D:WebSphere610profilesAppSrv01installedAppsdon7Node03CellPlantsByWebSphere. earPlantsGallery.war startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- exceptionErrorPages = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- fileServingAttributes = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- fileServingEnabled = true startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- invokerAttributes = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- mimeFilteringEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- mimeMappings = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- moduleID = Null startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- moduleName = PlantsGallery.war startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- moduleStartupWeight = 10000 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- reloadInterval = 3 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- reloadingEnabled = true startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- servletServingByClassnameEnabled = true startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- syncToThreadEnabled = false startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- version = 24 startup-vhosts-default_host-webapps-PlantsByWebSphere#PlantsGallery.war- welcomeFiles = Null |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |