Keywords: Citrix Monitor Metaframe XP
I am looking at writing a script that would monitor a citrix server running Metaframe XP.
All I am looking at to do (for now) is to open up a session to the server; confirm that I
connected and then disconnect. If unable to connect then some kind of notification would
be sent out.
Looking through the Terminal Services Extender, I don't see a function that actually
initiates a session.
Is the above even possible with Winbatch?
The terminal server extender is used for making your scripts aware of the terminal services
environment on a terminal server system. It does not have any Terminal Server/Citrix client
functionality in it.
- You could verify that you can telnet to port 1494, it should return an "ICA" if the server
is functioning. I believe that you could also "ping" the server on that port to verify that it is
listening. Using telnet to connect to TCP port #1494 is probably the best way to verify connectivity to a
Citrix server that is set up to use ICA. Basically, use the Winsock extender to open a TCP connection
to port 1494 and verify that you can connect that you do get the text "ICA" in the string of
characters that you will receive if things are working OK. There will be some other
non-printable/non-displayable characters in the string, to, but "ICA" will be in the string.
I basically took this out of the help file, but it is a good example of how to do it. Just replace
mycitrixserver with your server.
socket = sOpen ()
if socket != @FALSE
status=sConnect (socket, "mycitrixserver", "1494")
if status == @TRUE
Message("Citrix Alive","Server is alive")
Message("Winsock Error A %err%",msg)
Message("Winsock Error B %err%",msg)
- You could also verify that the IMA service is up and running. See the wntSvcStatus function in the
win32 Network Extender.
- You might be able to script the connection to the server. You will just
have to send the keys to the server because I don't believe that you can control the windows
within the session.
- Another thing to consider might be to look at the ActiveX control version of the Citrix client
that is used to allow the Citrix client to be invoked inside of a web browser window frame. Maybe you
could use the OLE client features in WinBatch to drive the Citrix client ActiveX control.
Article ID: W15438
File Created: 2017:07:28:12:58:49
Last Updated: 2003:05:13:10:27:45