2.2.1.1 Changing the Current Management Object
When TXST first connects to an instance of Tuxedo domain, the variable, cmo (Current Management Object), is initialized to the root of all configuration management objects, DomainMBean. When you navigate to an MBean type, the value of cmo reflects the parent MBean. When you navigate to an MBean instance, TXST changes the value of cmo to be the current MBean instance, as shown in the code snippet below:
For more information on TXST variables,see TXST Command and Variable Reference.
Example 2-1 Changing the Current Management Object
txst:/offline>connect("//slce04cn03:5035", "simpapp", "58103")
txst:simpapp_58103:/>cmo.getMbeanName()
simpapp_58103:type=tuxedo_domain
txst:simpapp_58103:/>cd('L1')
txst:simpapp_58103:/L1>cmo.getMbeanName()
simpapp_58103:type=tuxedo_machine,LMID=L1
Parent topic: Navigating and Interrogating Mbeans