Hi,
I'm struggling to get autoregistration working correctly.
I have 2 rules under action for autoregistration to distinguish between hostnames.
Our hostnames contain a letter v for virtual or a p for physical machines. Some physical machines might not have a p in their name but all virtual ones do.
example:
gedadvl100 = virtual
gedadpl100 = physical
so the two rules are as follows:
hostname not like gedadvl
add to group physical
hostname like gedadvl
add to group virtual
But it looks like is not doing what it should. Machines with gedadvl are added to the physical hostgroup. I have tried using regex like:
[[:upper:]^gedadvl][0-9]{0,4}
and saved it under regular expressions and the test works fine.
Can I use a regex here?
I'm struggling to get autoregistration working correctly.
I have 2 rules under action for autoregistration to distinguish between hostnames.
Our hostnames contain a letter v for virtual or a p for physical machines. Some physical machines might not have a p in their name but all virtual ones do.
example:
gedadvl100 = virtual
gedadpl100 = physical
so the two rules are as follows:
hostname not like gedadvl
add to group physical
hostname like gedadvl
add to group virtual
But it looks like is not doing what it should. Machines with gedadvl are added to the physical hostgroup. I have tried using regex like:
[[:upper:]^gedadvl][0-9]{0,4}
and saved it under regular expressions and the test works fine.
Can I use a regex here?
Comment