Pages

Thursday, November 15, 2012

Twiddle commands In JBoss


Here are a Few Use Full Twiddle commands For JBoss.

All the Commands will retrieve information use full for a administrator,but there is a URL which can give the same information.

Try this : http://IP Address:Port/status?full=true

Here are the Commands

Server Information
./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo JavaVMName

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo ActiveThreadCount

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo AvailableProcessors

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo OSArch

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo MaxMemory

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo HostAddress

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo JavaVersion

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo OSVersion

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo JavaVendor

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo TotalMemory

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo ActiveThreadGroupCount

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo OSName

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo
FreeMemory

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo HostName

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo JavaVMVersion

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=ServerInfo JavaVMVendor

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.system:type=ServerInfo listThreadDump : Thread Dump

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.system:type=ServerInfo listThreadCpuUtilization : List CPU Utilization

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke "jboss.system:type=ServerInfo" listMemoryPools true : Memory Pools

./twiddle.sh -s Ip address:1099 -u UserName -p Password serverinfo -d --count

./twiddle.sh -s Ip address:1099 -u UserName -p Password serverinfo -d --domain

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.system:type=Server" Started : Server Status

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.system:type=Server runGarbageCollector

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.system:type=Server runFinalization

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:service=ThreadPool QueueSize

Memory Details
./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=Memory" HeapMemoryUsage

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=Memory" NonHeapMemoryUsage

Operating System
./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" MaxFileDescriptorCount

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" OpenFileDescriptorCount

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" CommittedVirtualMemorySize

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" FreePhysicalMemorySize
./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" FreeSwapSpaceSize

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" ProcessCpuTime

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" TotalPhysicalMemorySize

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" TotalSwapSpaceSize

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" Name

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" AvailableProcessors

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" Arch

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" SystemLoadAverage

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=OperatingSystem" Version

Runtime Information
./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=Runtime" SystemProperties

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=Runtime" InputArguments

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=Runtime" Uptime

./twiddle.sh -s Ip address:1099 -u UserName -p Password  get "java.lang:type=Runtime" StartTime

JNDI
./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss:service=JNDIView list true

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss:service=JNDIView listXML

./twiddle.sh -s Ip address:1099 -u UserName -p Password get  jboss:service=JNDIView StateString

Logging
./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.system:type=Log4jService,service=Logging


DataSource
./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS StateString

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS MaxConnectionsInUseCount

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS PoolJndiName

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS MaxSize

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS AvailableConnectionCount

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS State

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS MinSize

./twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS InUseConnectionCount

/twiddle.sh -s Ip address:1099 -u UserName -p Password get jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS ConnectionCount

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS testConnection

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS flush

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS start

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS listStatistics

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS destroy

./twiddle.sh -s Ip address:1099 -u UserName -p Password invoke jboss.jca:service=ManagedConnectionPool,name=com.app.samp.jonPoolTXDS stop



Web
./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" activeSessions

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" sessionMaxAliveTime

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" sessionCounter

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" sessionAverageAliveTime

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" sessionIdLength

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" maxActive

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" distributable

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" maxActiveSessions

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" expiredSessions

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" rejectedSessions

./twiddle.sh -s Ip address:1099 -u UserName -p Password get "jboss.web:type=Manager,path=/jmx-console,host=localhost" pathname

Cluster
./twiddle.sh -s IP address:1099 -u UserName-p Password get  "jboss:partition=ertAPartition,service=HAPartition" CurrentView

./twiddle.sh -s IP address:1099 -u UserName-p Password get "jboss:partition=,service=HAPartition" JGroupsVersion 

More To Come ,Happy Learning J