Use device IP in mass config push
I need to push configuration where the IP of the IP Unimus uses for access is used as part of the config. Is that possible? Reading some older posts is looks like ${address} could have worked but anything I have attempted reports the variable name is invalid.
We don't currently have a device hostname/IP variable in Unimus by default, but you can pretty easily add this to all your devices.
If you go to your devices screen, you can select all devices and click the "Variables" button. You will then enter "Bulk (multi-device)" variable edit mod.
In there you will see all of your devices in each Zone along with any variables you have already attached to each device.
I wrote this little RegEx to capture the IP address for each device and create a variable named "ipAddr" you can use in Mass Config Push.
(\[(\d+\.\d+\.\d+\.\d+)\s\@\s\d+\])
This RegEx will capture the IP
Then if you are using a site like regexr.com you can go to "replace" and use this code:
\n$1\nipAddr=$2
This should leave your existing variables alone (as long as they don't look too much like IPs)
Just copy the result and past it back in your Bulk Variable Edit screen. (Overwrite what's there) and hit "Save"
From there you can use {$ipAddr} in your mass config pushes.
If you go to your devices screen, you can select all devices and click the "Variables" button. You will then enter "Bulk (multi-device)" variable edit mod.
In there you will see all of your devices in each Zone along with any variables you have already attached to each device.
I wrote this little RegEx to capture the IP address for each device and create a variable named "ipAddr" you can use in Mass Config Push.
(\[(\d+\.\d+\.\d+\.\d+)\s\@\s\d+\])
This RegEx will capture the IP
Then if you are using a site like regexr.com you can go to "replace" and use this code:
\n$1\nipAddr=$2
This should leave your existing variables alone (as long as they don't look too much like IPs)

Just copy the result and past it back in your Bulk Variable Edit screen. (Overwrite what's there) and hit "Save"
From there you can use {$ipAddr} in your mass config pushes.
Yeah, I think I have talked to the Dev team and said this before, but I will mention it as a "hey, people agree with me that this seems like a useful little feature"
The trouble is that we would probably have to do something to make certain we didn't step on existing variable namespace...
I will put some thought into the RegEx, I was thinking about it last night and I realized that you couldn't just reuse what I had made for adding new devices...
Let me know if you run into issues, I might have an updated RegEx sometime.
The trouble is that we would probably have to do something to make certain we didn't step on existing variable namespace...
I will put some thought into the RegEx, I was thinking about it last night and I realized that you couldn't just reuse what I had made for adding new devices...
Let me know if you run into issues, I might have an updated RegEx sometime.
The dev team has it in the pipeline.
Currently they will be implementing:
* Address
* Description
* Vendor
* Model
And some other sundries we collect during the discovery process.
If you would like you can PM me your email and we will add it to the ticket so we can notify you if a delivery date is set or the feature is completed.
Currently they will be implementing:
* Address
* Description
* Vendor
* Model
And some other sundries we collect during the discovery process.
If you would like you can PM me your email and we will add it to the ticket so we can notify you if a delivery date is set or the feature is completed.