KB Article #182131

How to retrieve the queue history from command line?

Problem

-- How to retrieve the queue history from command line using queue_commit_history.x4 ?

Resolution

* Go into <B2Bi_install_directory>/Integrator and run the profile.bat (Windows) or profile.sh (Linux)


* To run the queue_commit_history.x4 (<B2Bi_install_directory>/Integrator/tool/pgm) you will need to give the following arguments :

A - authentication string ( the password defined in <B2Bi_install-directory>/Integrator/local/config/passwd )

h - host name (the hostname of the B2Bi server)

c - Config server port (Integratorcfgserver from portinfo.cfg -> <shared/data/system/hostname/portinfo.cfg)

p - Porter server port (Integratorporter from portinfo.cfg)

v – version

t - name of the queue task (to retrieve this name go into B2Bi Client -> Queue Monitor and then you can see it before the hostname, by default is B2Bi CS Queue Task)

q - queue name (you will need to find the name of the queue

Q - task name

T - type of the queue (receive,send,expire,trigger) if is a TA

G if the T is receive then the Transfer Gateway Task for this TA should be specified

q is equivalent with Q + T + [G]

R - put also into the output the real name of the task

M - number of minutes from the history to show

L - this will enable the run into loop (this will be set if it run outside the cron job), this is use with M and the r4edi argument -line should be used to have a flush of the output buffer every time the event occurred


* Go into B2Bi UI and find the name of the engine task :

From UI->System Management-> Manage tasks from Integration engine node

For example, for B2Bi HME EDIFACT MD Enveloper 4 Task the process name displayed is: HierchMsgTask_979_1012_1

You can retrieve the same information in B2Bi Client -> Task Monitor -> Processes tab


* Go into <shared/data/coreservices/queue/queues89.xml > and find the queue name assigned to the process name, you should retrieve something like hierchmessage_979


* Then you can run the command as follows :

r4edi queue_commit_history.x4 -A admin -h b2bihostname -c 8834 -p 8841 -q hierchmessage_979 -t "B2Bi CS Queue Task" -R


Note : You will obtain the output from the last 60 minutes