Deployment Guide

Figure 8. Start services
Edit Mosquitto service startup script
1 Go to the directory C:\Program Files\DELL, and create a le mqttsvc.bat.
2 Open the le mqttsvc.bat in text editor, and type the following commands into the le.
@ECHO OFF
SETX -m MOSQUITTO_DIR "C:\Program Files\DELL\WMS\Mosquitto\mq1"
sc.exe start "Dell WMS: FE-MQTT1"
SLEEP 5
TIMEOUT /5
SETX -m MOSQUITTO_DIR "C:\Program Files\DELL\WMS\Mosquitto\mq2"
sc.exe start "Dell WMS: FE-MQTT2"
SLEEP 5
TIMEOUT /5
SETX -m MOSQUITTO_DIR "C:\Program Files\DELL\WMS\Mosquitto\mq3"
sc.exe start "Dell WMS: FE-MQTT3"
SLEEP 5
TIMEOUT /5
SETX -m MOSQUITTO_DIR "C:\Program Files\DELL\WMS\Mosquitto"
sc.exe start "mosquitto"
3 Save the mqttsvc.bat le.
4 Create a shortcut to the mqttsvc.bat le. This script is used to start all Mosquitto services when the server starts.
5 To congure Mosquitto Service Startup Script, go to Windows startup folder, and in the search window, type Shell: startup as shown
in the following screen shot:
Custom port
congurations 15