I'm struggling to get any useful answers from zebra support so I've thought I might get some help here... in our company there is over 5k of zebra printers and many of them will need wifi credentials swap, zebra support suggests using zebra setup utilities for this but this solution can do changes only on one printer at the time, is there any way to push new credentials via some script to indicated IPs at once?
zebra setup utilities generates code for specific device which looks like this:
^XA
^WIA
^NC2
^NPP
^KC0,0,,
^NNHostnameisThatNecessary?
^WAD,D
^WE128,1,O,H,536F6D654D84558F70,,,
^WP0,0
^WR,,,,100
^WSNewWifiSSID,I,L,,,
^NBS
^WLOFF,,
^WKOFF,,,,
^WX03,1,O,H,536F6D654D84558F70,,,
^XZ
^XA
^JUS
^XZ
! U1 setvar "wlan.country_code" "not selected"
! U1 setvar "wlan.allowed_band" "all"
! U1 do "device.reset" ""
is it possible to cut only credentials part to some script.txt and distribute it on RAW port via Putty or powershell somehow?
I'm not sure how much of above code can be removed, it has to be universal for various device models and not just for one hostname
Since all the Zebra printers have the FTP protocol enabled by default, I did that using the command line of WinSCP.
First you have to create a batch file which uses the WinSCP FTP client and that recalls a text file which contains the commands required to open the FTP connection with the printer, send the file and close the FTP connection. This is the file you'll have to run once all the 3 files will be ready and in the same folder.
upload_file.bat
You can add a line for each printer you want the file to be sent to and just replace the IP address at the end of the line.
Then you've to create the FTP commands file, which is the file that opens the FTP connection with the printer, send the file (command.zpl) and closes the connection
ftp.txt
Final step is to create the file (command.zpl) with the command you need to send to the printers and, in your case, you can use the script generated by zebra setup utilities.