11-26-2012 09:01 AM
I am trying to update my networks custom dhcp options (Unique options for each network). ( I will run this script on 1000+ networks )
Purpose of the script is to edit my networks and add/edit option 221 and option 222 with my custom string value.
I wrote this script, but i cannot get it to work. I don't have a lot of Perl experience so some guidance or maybe even a solution will be highly appreciated!
11-21-2012 04:28 AM
you should use something like this:
In fact the "options" of a network object, is an Array. You can simply add an option to the array, by using the "push" function.
11-26-2012 09:07 AM
If you are using NIOS-6, this is much easier with a CSV export. You just set up a file with the network and the options and run the import in 'update' mode.