This discussion is archived
1 Reply Latest reply: Oct 18, 2012 10:14 PM by 682629 RSS

Help! .TMIB service not returning local attributes

MichaelT Newbie
Currently Being Moderated
I've the following src to create a an FML request buffer with TA_FLAGS set to MIB_LOCAL...

FBFR32* buf = (FBFR32*)tpalloc("FML32", NULL, 1024);
Finit32(buf, Fsizeof32(buf));

long flags = MIB_LOCAL;
Fchg32(buf, TA_OPERATION, 0, "GET", 0);
Fchg32(buf, TA_CLASS, 0, "T_QUEUE", 0);
Fchg32(buf, TA_FLAGS, 0, (char*)&flags, 0);
Fchg32(buf, TA_RQADDR, 0, qaddr, 0);

FILE* f = fopen(dumpfile, "a");
Ffprint32(buf, f);

long len;
tpcall(".TMIB", (char*)buf, (long)0, (char**)&buf, &len, 0);

Ffprint32(buf, f);
fclose(f);

Which produces the following output in the dumpfile...

TA_FLAGS        65536
TA_CLASS T_QUEUE
TA_OPERATION GET
TA_RQADDR LMQ

TA_ERROR 0
TA_MORE 0
TA_OCCURS 1
TA_GRACE 60
TA_MAXGEN 3
TA_MSG_CBYTES 0
TA_MSG_QBYTES 65536
TA_MSG_QNUM 0
TA_RQID 52527126
TA_SERVERCNT 1
TA_WKQUEUED 0
TA_CLASS T_QUEUE
TA_STATE ACTIVE
TA_CONV N
TA_RCMD
TA_RESTART Y
TA_RQADDR LMQ
TA_SERVERNAME <ommitted>
TA_SOURCE <ommitted>
TA_LMID slc00caq

Note the lack of local attributes. I have analogous src to query local attrs of the T_SERVER class which works fine. Any ideas on why I'm not getting T_QUEUE local attrs?
  • 1. Re: Help! .TMIB service not returning local attributes
    682629 Journeyer
    Currently Being Moderated
    Michael,

    The local attributes in the T_QUEUE class aer TA_TOTNQUEUED, TA_TOTWKQUEUED, TA_SOURCE, TA_NQUEUED, and TA_WKQUEUED.
    TA_WKQUEUED and TA_SOURCE are being returned as part of the result.

    For TA_TOTNQUEUED the TM_MIB(5) manual page T_QUEUE class definition lists the following limitation:

    Limitation: If the T_DOMAIN:TA_LDBAL attribute is "N" or the T_DOMAIN:TA_MODEL attribute is "MP", TA_TOTNQUEUED is not returned. In the same configuration, updates to this attribute are ignored. Consequently, when this attribute is returned TA_LMID and TA_SOURCE have the same value.

    There is a similar limitation listed for TA_TOTWKQUEUED and TA_NQUEUED. That is why you are not seeing those 3 attributes in the result.

    Regards,

    Ed

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points