Assign devices to networks automatically based on IP?

DJ
Here to help

Assign devices to networks automatically based on IP?

Hey team..... So I have 90 switches and I need to spread them out evenly across 3 sites which are configured in the dashboard as networks; Site_A, Site_B and Site_C.

 

I know I can manually select the serial number and assign them to networks. I also believe I can use the Meraki App to scan the serial and assign to a network. However, is there a way to automatically assign the switch to a network based on devices management IP?

 

So Site_A uses 10.1.x.x and Site_B uses 10.2.x.x - can I tell the dashboard that any switch IP in the range 10.2.x.x assign to network Site_B? This would make things so much easier for me.

 

Thanks for any wisdom

DJ

4 REPLIES 4
jdsilva
Kind of a big deal

There's no way to do this that I know of. 

PhilipDAth
Kind of a big deal
Kind of a big deal

Your would need to write a script.

 

Once you get the IP address you would need to remove the device:

https://dashboard.meraki.com/api_docs#remove-a-single-device

And then claim it back into the network you want it to be in:

https://dashboard.meraki.com/api_docs#claim-a-device-into-a-network

Hmm interesting, thanks for this. I can see how this could be invoked manually, any idea how you would them automate this so that the script is automatically run whenever a new device registers to the dashboard?

PhilipDAth
Kind of a big deal
Kind of a big deal

You would only be able to invoke it manually.

 

Your script should check if a device is already in the correct network.  If it is - do nothing.  Otherwise move it.

 

An alternative is to assign a tag to devices not to be moved.  When a device is moved - tag it.

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels