JBoss Twiddle

来源:互联网 发布:cf一键领枪软件 编辑:程序博客网 时间:2024/05/22 11:58

JBoss provides a simple command line tool that allows for interaction with a remote JMX server instance. This tool is called twiddle (for twiddling bits via JMX) and is located in the bin directory of the distribution. Twiddle is a command execution tool, not a general command shell.

D:\jboss4.3.0.GA\bin To access basic information about a server, use the serverinfo command.[bin]$ ./twiddle.sh -H serverinfoTo query the server for the name of MBeans matching a pattern, use the query command.[bin]$ ./twiddle.sh -H queryTo get the attributes of an MBean, use the get command[bin]$ ./twiddle.sh -H getTo query the MBeanInfo for an MBean, use the info command:[bin]$ ./twiddle.sh -H infoMy Test :D:\jboss4.3.0.GA\bin>twiddle -H serverinfoD:\jboss4.3.0.GA\bin>twiddle --server=localhost -u admin -p admin serverinfo --count1122D:\jboss4.3.0.GA\bin>twiddle --server=localhost -u admin -p admin serverinfo --domainjbossD:\jboss4.3.0.GA\bin>twiddle --server=localhost -u admin -p admin serverinfo --listD:\jboss4.3.0.GA\bin>twiddle -s localhost -u admin -p admin get "jboss.system:type=Server" StartedStarted=trueD:\jboss4.3.0.GA\bin>twiddle -s localhost -u admin -p admin invoke jboss:service=JNDIView list true D:\jboss4.3.0.GA\bin>twiddle -s localhost -u admin -p admin get "jboss.system:type=ServerInfo" MaxMemoryMaxMemory=799145984D:\jboss4.3.0.GA\bin>twiddle -s localhost -u admin -p admin query "jboss.system:type=ServerInfo"jboss.system:type=ServerInfoD:\jboss4.3.0.GA\bin>twiddle -s localhost -u admin -p admin query "jboss.system:*"jboss.system:service=MainDeployerjboss.system:type=Log4jService,service=Loggingjboss.system:service=ServiceDeployerjboss.system:service=ThreadPooljboss.system:service=JARDeployerjboss.system:type=Serverjboss.system:service=ServiceControllerjboss.system:type=ServerConfigjboss.system:type=ServerInfosee:D:\jboss4.3.0.GA\server\mycis\deploy\snmp-adaptor.sar\attributes.xml<mbean name="jboss.system:type=ServerInfo" oid-prefix=".1.2.3.4.1">      <attribute name="ActiveThreadCount" oid=".1"/>      <attribute name="FreeMemory" oid=".2"/>      <attribute name="MaxMemory" oid=".3"/>   </mbean>


 

原创粉丝点击