Monitoring the application
In addition to the configuration, MIB also contains runtime information and statistics about the application. We already viewed some of this when we used the tmadmin
command in previous chapters.
To get an overview of the system statistics, we will use the tpadmcall
function. Since tpadmcall
can work both with a running and stopped application, it assumes a stopped application by default and does not attempt to connect it. However, we now have a running application and we must connect it explicitly. We will use the tpsysop
client name to obtain read-only access to the system. We will also set a special flags value, called MIB_LOCAL
, which instructs the application to return local information containing statistics:
import tuxedo as t t.tpinit(cltname="tpsysop") machine = t.tpadmcall({ "TA_CLASS": "T_MACHINE", "TA_OPERATION...