SAP Enqueue

The following subsections show a graphical representation of the main protocol packets and how to generate them.

First we need to perform some setup to import the packet classes:


In [1]:
from pysap.SAPEnqueue import *
from IPython.display import display

SAP Enqueue packet


In [2]:
for dest in enqueue_dest_values:
    p = SAPEnqueue(dest=dest)
    print(enqueue_dest_values[dest])
    display(p.canvas_dump())


SYNC_ENQUEUE
ASYNC_ENQUEUE
SERVER_ADMIN
STAT_QUERY
CONECTION_ADMIN
ENQ_TO_REP
REP_TO_ENQ

SAP Enqueue Server Admin opcodes


In [3]:
for opcode in enqueue_server_admin_opcode_values:
    p = SAPEnqueue(dest=3, opcode=opcode)
    print(enqueue_server_admin_opcode_values[opcode])
    display(p.canvas_dump())


EnAdmDummyRequest
EnAdmShutdownRequest
EnAdmGetReplInfoRequest
EnAdmTraceRequest

SAP Enqueue Connection Admin opcodes


In [4]:
for opcode in enqueue_conn_admin_opcode_values:
    p = SAPEnqueue(dest=6, opcode=opcode)
    print(enqueue_conn_admin_opcode_values[opcode])
    display(p.canvas_dump())


Loopback packet
Parameter Request
Parameter Response
Shutdown Read
Shutdown Write
Shutdown Both
Keepalive

SAP Enqueue Connection Admin parameters


In [5]:
for param in enqueue_param_values:
    p = SAPEnqueueParam(param=param)
    print(enqueue_param_values[param])
    display(p.canvas_dump())


ENCPARAM_RECV_LEN
ENCPARAM_SEND_LEN
ENCPARAM_MSG_TYPE
ENCPARAM_SET_NAME
ENCPARAM_SET_NOSUPP
ENCPARAM_SET_VERSION
ENCPARAM_SET_UCSUPPORT