Revision 1.1
WebSwitch™ Users Manual
3.2.4 XML Diagnostics
There is a special XML page that can be requested for diagnostic purposes called diagnostics.xml. A
request for this file (by typing
{WebSwitch IP Address/diagnostics.xml}
in the browser address
bar) returns the following:
<datavalues>
<memoryPowerUpFlag>1</memoryPowerUpFlag>
<devicePowerUpFlag>1</devicePowerUpFlag>
<powerLossCounter>1</powerLossCounter>
</datavalues>
The tags <memoryPowerUpFlag>, <devicePowerUpFlap>, and <powerLossCounter> are helpful
parameters when trying to diagnose a problem with WebSwitch™.
Tag
Description
<memoryPowerUpFlag>
(Model XRDI-WS3P only)
Indicates a loss of power to the capacitor-backed real-time clock. This
field can be set to
0
. A value of
1
indicates that the real-time clock lost
power. This should only happen if the device has lost power for
several days. There is an internal capacitor that can power the real-
time clock for an extended period of time, even if the main power is
lost. If the real-time-clock loses power, the time will have to be reset.
By default, this will read
1
until it is set to
0
.
<devicePowerUpFlag>
Indicates a loss of power to the device. This field can also be set to
0
.
A value of
1
means WebSwitch™ has lost power at least one time
since the flag was set to
0
.
<powerLossCounter>
This field is a count of how many times WebSwitch™ has lost main
power.
The <devicePowerUpFlag> and <memoryPowerUpFlag> can be cleared by requesting the file
diagnostics.xml and passing parameters along with this request. For example, to clear both flags, the
following request can be sent to the device:
http://192.168.1.2/diagnostics.xml?memoryPowerUpFlag=0&devicePowerUpFlag=0
The powerLossCounter can also be cleared by using the request:
http://192.168.1.2/diagnostics.xml?powerLossCounter=0
Requests for the diagnostics.xml file do not require a password.
Xytronix Research & Design, Inc.
71