Support for Moxa Switch .INI Config Format

Post your feature requests here
Post Reply
CBrookes
Posts: 5
Joined: Tue Dec 06, 2022 12:10 am

Tue Dec 06, 2022 12:15 am

Just wanted to ask for the ability to use the .ini format of config used on the Moxa switches.

The format used by Unimus is CLI only and we rely on the use of the Moxa GUI/MXView/MXConfig to allow less technical users to import a snapshot config onto a new unprovisioned switch.

Thanks,

Clinton
Vik@Unimus
Posts: 198
Joined: Thu Aug 05, 2021 6:35 pm

Tue Dec 06, 2022 12:47 pm

Would you mind me asking how exactly is this aforementioned .ini file downloaded from a device? Via a web UI or also possibly via a CLI using SCP/SFTP?
CBrookes
Posts: 5
Joined: Tue Dec 06, 2022 12:10 am

Wed Dec 07, 2022 2:09 am

I did a dive into it and found that :
The CLI will TFTP send config in CLI based format ie. running command "copy running-config tftp tftp://x.x.x.x/file.txt"
If you TFTP send from the webgui (Under System Files/TFTP/Backup), you will recieve config in the .ini based format.
Vik@Unimus
Posts: 198
Joined: Thu Aug 05, 2021 6:35 pm

Wed Dec 07, 2022 3:34 pm

You mention a web UI. Is it possible to download it directly via the web UI without using it just to execute a TFTP transfer?
CBrookes
Posts: 5
Joined: Tue Dec 06, 2022 12:10 am

Fri Dec 09, 2022 2:28 am

Yes, the first option on the webgui will do a regular file send over http/https
CBrookes
Posts: 5
Joined: Tue Dec 06, 2022 12:10 am

Mon Dec 12, 2022 4:11 am

Appears to use a javascript function

https://hostname/goform/LocalConfigBack ... n=xxxxxxxx
Vik@Unimus
Posts: 198
Joined: Thu Aug 05, 2021 6:35 pm

Mon Dec 12, 2022 2:24 pm

Then it looks this might be supported once we bring support for HTTP(S) connectors. This development, though, doesn't currently have any ETA set, but I will add this topic to our internal ticket to revisit this backup option once we bring them to Unimus.

One more question, though, the URL you mention, does it download backup directly or is that just a URL to the section of the web UI? If a direct download link would be possible to retrieve and use, there is already a way how to make this work. We published this approach in one of our blog posts here

https://blog.unimus.net/automating-mikr ... -to-guide/

Mikrotik SwOS had such option, so we used Unimus API to upload those directly to Unimus. This might prove to be a viable option in the meantime.
CBrookes
Posts: 5
Joined: Tue Dec 06, 2022 12:10 am

Tue Dec 13, 2022 3:46 am

Yes that URL will download directly but believe it would require an auth token of some kind.
I'll have a look at the Mikrotik example, sounds very similar.
Post Reply