tpadmcall
-administer unbooted application
#include <atmi.h>
#include <fml32.h>
#include <tpadm.h>
int tpadmcall(FBFR32 *inbuf, FBFR32 **outbuf, long flags)
tpadmcall
is used to retrieve and update attributes of an unbooted application. It may also be used in an active application to perform direct retrievals of a limited set of attributes without requiring communication to an external process. This verb provides sufficient capability such that complete system configuration and administration can take place through system provided interface routines.
inbuf
is a pointer to an FML32 buffer previously allocated with tpalloc
(3) that contains the desired administrative operation and its parameters.
outbuf
is the address of a pointer to the FML32 buffer that should contain the results. outbuf
must point to an FML32 buffer originally allocated by tpalloc
(3). If the same buffer is to be used for both sending and receiving, outbuf
should be set to the address of inbuf
.
Currently, tpadmcall
()'s last argument, flags
, is reserved for future use and must be set to 0.
MIB
(5) should be consulted for generic information on construction of administrative requests. TM_MIB
(5) and APPQ_MIB
(5) should be consulted for information on the classes that are accessible through tpadmcall
().
There are four modes in which calls to tpadmcall
() can be made.
APPQ_MIB
(5).
TM_MIB
(5) and APPQ_MIB
(5) for which they have the appropriate permissions. Note that some classes contain only attributes that are inaccessible in an unbooted application and attempts to access these classes will fail.
TM_MIB
(5) for which they have the appropriate permissions. Similarly, the caller may GET and SET any attributes for any class in APPQ_MIB
(5), subject to class-specific restrictions. Attributes accessible only while ACTIVE will not be returned.
tpinit
() time. The caller may GET any attributes for any class in TM_MIB
(5) for which they have the appropriate permissions. Additionally, the caller may GET and SET any attributes for any class in APPQ_MIB
(5), subject to class-specific restrictions.
Access to and update of binary BEA TUXEDO system application configuration files through this interface routine is controlled through the use of UNIX System permissions on directory and file names.
The following environment variables must be set prior to calling this routine.
TUXCONFIG
Use of the TA_OCCURS
attribute on GET
requests is not supported when using tpadmcall
(). GETNEXT
requests are not supported when using tpadmcall
().
tpadmcall
returns 0 on success and -1 on failure.
Under the following conditions, tpadmcall
() fails and sets tperrno
to one of the following values. Except for TPEINVAL
, the caller's output buffer, outbuf
, will be modified to include TA_ERROR, TA_STATUS and possibly TA_BADFLD attributes to further qualify the error condition. See MIB
(5), TM_MIB
(5), and APPQ_MIB
(5) for an explanation of possible error codes returned in this fashion.
TPEINVAL
]
flags
value is invalid or inbuf
or outbuf
are not pointers to typed buffers of type "FML32."
TPEMIB
]
outbuf
is updated and returned to the caller with FML32 fields indicating the cause of the error as is discussed in MIB
(5) and TM_MIB
(5).
TPEPROTO
]
tpadmcall
() was called in an improper context.
TPERELEASE
]
tpadmcall
() was called with the TUXCONFIG environment variable pointing to a different release version configuration file.
TPEOS
]
Uunixerr
.
TPESYSTEM
]
userlog
(3).
This interface supports access and update to the local configuration file and bulletin board only; therefore, there are no interoperability concerns.
This interface is available only on UNIX System sites running BEA TUXEDO Release 5.0 or later.
${TUXDIR}/lib/libtmib.a, ${TUXDIR}/lib/libqm.a, ${TUXDIR}/lib/libtmib.so.rel>
, ${TUXDIR}/lib/libqm.so.rel>
MIB
(5), TM_MIB
(5), APPQ_MIB
(5), EVENT_MIB
(5), ACL_MIB
(5), WS_MIB
(5), BEA TUXEDO Administrator's Guide