@Rishabh_Tiwari can you help us out on this one as well. With LBQ no longer shipped, can we get some information on how to access these admin features of InDesign Server from an application like a C++ or JAVA application.
-Manan
InDesignServer has some administrative features like "ping"(status) and "kill"(terminate instances), useful to check whether IDS is hung or is actually busy processing a job. In order to use these administrative features, you need to specify a mandatory "-adminport" parameters when starting IDS, the other two optional parameters are "-host" and "-heartbeatUpdateInterval".
Say for example you want to monitor the health of your running IDS instances, the parameter "-heatbeatinterval" is used to specify the time interval IDS keep a record of the last activity timestamp, it's an optional parameter as it defaults to 20 seconds
Example :
InDesignServer -port 12345 -adminport 3002 -heartbeatUpdateInterval 5
To perform administrative tasks, create a socket and send a message, either "ping" or "kill"
Example :
import socket
HOST = "localhost" # server's hostname or IP address
ADMINPORT = 3002 # admin port number of the running IDS instance
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, ADMINPORT))
s.sendall(b"ping")
data = s.recv(1024)
print(f"Last activity timestamp : {data!r}")
Messaged receieved example :
Last activity timestamp : b'2024-01-11 10:27:36'