|
| Re: Determine the number of messages in the queue |
 |
Fri, 11 Apr 2008 10:31:08 -070 |
I tried the ud32 snippet on a Windows machines and then on a Solaris 9 machine,
both running Tuxedo 8.1.6. I was able to see all attributes successfully.
I then wrote an equivalent C program. I used the TA_FLAGS FML32 field and set
the value to MIB_LOCAL (0x00010000 according to $TUXDIR/include/tpadm.h). On my
Windows machines, this works fine and the results are the same as that from
ud32.
However, on the Solaris 9 box, the same program does not return any local
attributes. When I explicitly set TA_FLAGS to 65536, then it worked.
The relevant code snippet is:
flags = MIB_LOCAL;
Fchg32(sendbuf, TA_OPERATION, 0, "GET", 0);
Fchg32(sendbuf, TA_FLAGS, 0, (char *)&flags, 0);
Fchg32(sendbuf, TA_CLASS, 0, "T_QUEUE", 0);
When I change the code to:
flags = 65536;
.
.
it works.
I am a bit confused. I'm sure the explanation is simple, and would like to get
a clarification.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|