Properties Content
Hello,
I have the four properties
- Application
- Owner
- Patch Group
- Technical Group
I would like to have them
1. existing on all devices
2. the values should be mandatory and validated against a list of correct values... list of applications, list of users, list of patch group, list of technical group, ...
Is there an easy wahy to do the (1) first and when it will be existing verifying the values (2).
I have see also some typo, misspelling in the property names how to detect them?
As it seems all these fields are free for any input it is open to a mess !!! anyway to limit this?
Thanks,
Dominique
Dominique
Posted 5 years ago·Last reply 5 years ago
8 comments
LM User
·5 years agoAh, then your only option is to rename them manually or through the API. If you do just rename them, then they will not be prepended with "auto." meaning that any propertysource you build will not affect them. If you want a PropertySource to manage them going forward, I would suggest you get the propertysource working then use the API to delete the manually created ones.
Dominique
OP5 years agoThe current properties with the space were input manually.
this means the proposal for a PropertySource is completely new
LM User
·5 years agoIf they were created with a PropertySource, if the PS were to run again and not set/update the property, the property gets deleted. So, just change your script to output properties without spaces. When it runs, the properties with spaces would not be set by the PS and would get deleted. New properties without spaces would get created.
Dominique
OP5 years agoHello Stuart,
What will be the best way to update/clean the existing Properties having a space in their name?
PropertySource with a script?
some other way(s) to do it?
Thanks,
Dominique
LM User
·5 years agoYou should avoid using spaces in property names. I'd have to do some testing, but i think they'd need to be escaped, but the escape character isn't accepted by our syntax checker.
Dominique
OP5 years agoHello,
with the current script:
I am getting some display:
Nothing on the device... What could be wrong?
Thanks,
Dominique
Dominique
OP5 years agoHello,
I am testing for the application name like this:
Is it correct?
Apparently it is always going to the line:
So not sure the test is correct.?
Any idea?
Thanks,
Dominique