Page 1 of 1

Support for Moxa Switch .INI Config Format

Posted: Tue Dec 06, 2022 12:15 am
by CBrookes
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

Re: Support for Moxa Switch .INI Config Format

Posted: Tue Dec 06, 2022 12:47 pm
by Vik@Unimus
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?

Re: Support for Moxa Switch .INI Config Format

Posted: Wed Dec 07, 2022 2:09 am
by CBrookes
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.

Re: Support for Moxa Switch .INI Config Format

Posted: Wed Dec 07, 2022 3:34 pm
by Vik@Unimus
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?

Re: Support for Moxa Switch .INI Config Format

Posted: Fri Dec 09, 2022 2:28 am
by CBrookes
Yes, the first option on the webgui will do a regular file send over http/https

Re: Support for Moxa Switch .INI Config Format

Posted: Mon Dec 12, 2022 4:11 am
by CBrookes
Appears to use a javascript function

https://hostname/goform/LocalConfigBack ... n=xxxxxxxx

Re: Support for Moxa Switch .INI Config Format

Posted: Mon Dec 12, 2022 2:24 pm
by Vik@Unimus
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.

Re: Support for Moxa Switch .INI Config Format

Posted: Tue Dec 13, 2022 3:46 am
by CBrookes
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.