A data processing system comprising a device to be managed, a relay device, and a management device that receives data generated by the device to be managed via the relay device, wherein
- the management device includes a first hardware processor that:
- registers a set of the relay device and the device to be managed;
- in response to registration of the set of the relay device and the device to be managed, prepares a first reception port via the relay device and a second reception port not via the relay device as reception windows for data generated by the device to be managed, wherein the first reception port and the second reception port are configured on the management device;
- controls the relay device to cause the device to be managed to set the second reception port;
- and,
- in response to reception of data generated by the device to be managed via the first reception port or the second reception port, processes the data,
- the relay device includes a second hardware processor that:
- in response to reception of data generated by the device to be managed, transmits the data or data obtained by processing the data to the first reception port prepared by the management device for a set of the relay device and the device to be managed;
- and
- causes the management device to set the second reception port prepared by the management device for a set of the relay device and the device to be managed, and
- the device to be managed includes a third hardware processor that:
- registers the relay device as a first transmission destination;
- in response to an instruction from the relay device to set the second reception port prepared by the management device for a set of the relay device and the device to be managed, registers the second reception port as a second transmission destination;
- generates data;
- transmits the generated data to the first transmission destination;
- and
- transmits the data to the second transmission destination when transmission of the data to the first transmission destination fails.