Lots of questions at the moment because I have found myself having some time to actually think.
Anyway, creating a job is fairly straightforward until, for our setup at least, it comes to selecting what node(s) to select. For arguments sake, let's say I am creating a job to logon to a batch of switches and run 'show cdp nei' and save the output to a file. This is not the unclear part...
Given that we use custom properties I would have thought I'd be able to use the CPs, and create a dynamic query but this doesn't appear to work.
e.g. using a custom property of client:
client is equal to: ABC
and Vendor is equal to: H3C
Gives us, as expected, all H3C devices for client ABC.
If I then add:
or Vendor is equal to: HP
the query now seems to ignore the client and returns all HP devices whatever the client.
This maybe that this client doesn't have any HP devices and something is throwing off the query (my understanding for one) because if I change the or to an and I get zero devices - whereas I need to combine different vendors and have it give me a list to select of just the devices of that vendor with that client CP.
I freely admit this is almost certainly a lack of understanding but the ultimate aim is that I want to be able to easily select 900+ switches from a single client and have a job run on them, but I can't just use the client CP as that would then include all sorts that I don't want and / or don't have access to including routers, firewalls, F5's, etc.
Otherwise, the only way I can see to do this is to manually say - add all ABC client devices and then manually remove the ones I don't want. This also makes adding devices later, when a device ets added / removed awkward.
So - what am I asking?
Is there a better way to approach this - say in SWQL / SQL and if yes, please provide a clear approach as my *QL skills are poor at best?
Or is there a better approach with the dynamic query that I'm not seeing?