Hello
We want to create an automation that any new VM based on its subnet (Vlan) will be automatically added to category.
How can we do that?
Thank you
You might be able to tweak this playbook based on the name. I don't see an option for Subnet but there is an option for the Client IP and you could update the regex to match the IP scope for the subnet/vlan maybe.
https://www.nutanix.dev/playbooks/auto-categorize-new-vms/
playbooks/autocategorize_new_vms/autocat_new_vms.png at master · nutanixdev/playbooks (github.com)
Thank you for the response! I configured it according to the subnet, but it's not working. Did I write it correctly?
No you have to write the regex value in a certain way, similar to what you see here https://ihateregex.io/expr/ip/, I think it would be more like
(^172\.16\.150\.)((2520-5]|2|0-4]40-9]|]01]?]0-9]90-9]?)\.){1}(2520-5]|2|0-4]40-9]|]01]?]0-9]90-9]?)\b
Still not working, thank you for helping me.
The playbook runs, but it's not doing anything on the new machine.(I have tried your regex value and another regex from ChatGPT.)
Is there another way to achieve this automation, maybe with REST API?
you can use playbook, make sure you have NCM-PRO or Prism-Pro license before using it
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.