![SpinetiX Diva Technical Documentation Manual Download Page 10](http://html.mh-extra.com/html/spinetix/diva/diva_technical-documentation-manual_1347696010.webp)
H MP Co n f igu ra tio n AP I - S p in e tiX Te ch n ica l Do cu me n ta tion v3 .1
© S p in e tiX S A A ll rig h ts re se rve d .
P a g e 1 0 of 5 8
For instance, the
<ethernet-dhcp/>
command sets the player to DHCP, whereas the
<ethernet-
static>
command sets it to use a fixed IP address. If both commands are present in the XML
configuration string, the last one will be taken into consideration.
The only exception is the
<reboot/>
command which can appear anywhere in the XML configuration
string, but will only be applied once all commands have been executed.
Example #1
After applying the following XML configuration string, the HMP will use a DHCP assigned IP address.
<?xml version="1.0"?>
<configuration version="2.1">
<ethernet-static>
<address>192.168.1.10</address>
<netmask>255.255.255.0</netmask>
</ethernet-static>
<ethernet-dhcp/>
</configuration>
After applying the following XML configuration string, the HMP will use a fixed IP address.
<?xml version="1.0"?>
<configuration version="2.1">
<ethernet-dhcp/>
<ethernet-static>
<address>192.168.1.10</address>
<netmask>255.255.255.0</netmask>
</ethernet-static>
</configuration>
Example #2
The
<credential-reset/>
configuration command removes all credentials previously configured on
the HMP device, whereas the
<credential>
configuration command adds a new one.
<?xml version="1.0"?>
<configuration version="2.1">
<credential-reset/>
<credential>
<server>http://demo.spinetix.com/</server>
<password>spinetix</password>
<username>spinetix</username>
<realm>demo</realm>
</credential>
</configuration>
If the two configuration commands are provided in a reversed order, all credentials are removed from
the HMP device.