Skip to content

Configuration using file_en

renakim edited this page May 10, 2023 · 1 revision

File option contents


Getfile

You can check all configuration information of the device use --getfile option.

You can use example files named cmd_oneport.txt and cmd_twoport.txt.

  • Single device
# One port
$ python wizconfig.py -d 00:08:DC:XX:XX:XX --getfile cmd_oneport.txt

# Two port
$ python wizconfig.py -d 00:08:DC:XX:XX:XX --getfile cmd_twoport.txt
  • Multiple devices
* One port
$ python wizconfig.py -a --getfile cmd_oneport.txt

* Two port
$ python wizconfig.py -a --getfile cmd_twoport.txt

This will create the log file(s) named getfile_0008DCXXXXXX.log that contains information about the device.

Setfile

You can save the settings you want to keep to a file and set them with the --setfile option. It can be used as a macro-like.

First, To use this option, refer to WIZnet wiki's WIZ750SR command manual.

List up commands to file. here is an example file, set_cmd.txt

IM0
LI192.168.0.25
SM255.255.255.0
GW192.168.0.1
LP5000
BR12

Then, config device use --setfile option.

# Single device
$ python wizconfig.py -d 00:08:DC:XX:XX:XX --setfile set_cmd.txt

# Multiple devices
$ python wizconfig.py -a --setfile set_cmd.txt