Controlling the KVM switch via XML
G&D DP1.2-MUX2-NT ·
22
English
Controlling the KVM switch via XML
XML enables you to control the KVM switch using third-party devices (e.g. AMX®
and Crestron®). The KVM switch uses the Ethernet interface to process any XML
commands received from third-party devices.
Structure of a valid XML document
Any commands are transmitted as XML documents to the G&D device. Valid
XML documents start with an optional, standardised header. On the top level, they
are included in a
<root>
tag:
The commands to be executed are placed between the start and end tag (
root
). The
commands are described on page 26.
Selecting devices
The XML API provides the ability to specify devices by their ID or name.
Use the attribute
type
to select devices via ID (
"id"
or via name (
"name"
). The attribute
is supported by all commands referring to named devices.
STRUCTURE OF A VALID XML DOCUMENT
<?xml version="1.0" encoding="utf-8"?>
<!-- optional header -->
<root>
<!-- start tag of the document -->
</root>
<!-- end tag of the document -->
ADVICE:
Using an attribute is optional. If you do
not
use a attribute, devices are
identified via their ID.
IDENTIFY THE KVM SWITCH BY NAME
<?xml version="1.0" encoding="utf-8"?>
<root>
<nextmuxchannel>
<DlMux4 type="name">MUX-ATC</DlMux4>
</nextmuxchannel>
</root>
IDENTIFY THE KVM SWITCH BY ID
<?xml version="1.0" encoding="utf-8"?>
<root>
<nextmuxchannel>
<DlMux4>0x11111111</DlMux4>
</nextmuxchannel>
</root>