there is no way to create an automatically populating property. the way to do this is run a nsh script job/script that pulls the value of the registry from the server (like w/ blquery or reg) and then runs a blcli command to set the value. if you are doing this across many servers you may want to write one script to pull the values and the use the bulkSetPropertyValues command to set the values in bulk.
seems quite fair. So next question is: how can I create a NSH script to run from my AppServer?
And which BLCLI command should I use to set a Server Property?
I have made a couple of modifications to your script to obtain my purpose, but I must say that it works like a charm
I've tested on a single host and I'll try now on all of my Windows Servers.
Thank you very much
P.S.: where can I find more documentation on NSH scripts?
The scripting community has some examples:
there’s another site we are working on making public that has a ton of script examples so stay tuned…
I'm experiencing an issue with another NSH script.
In this case, I need to populate a Server Property of Complex Type (list of strings).
I put in a variable my list (in this case, there are 2 strings). Echoing the variable, I get the following result:
How can I use this variable to populate the complex Property?
Seems like blcli Server SetPropertyValue can't handle list of strings.
Obviously, I already created the Server Property of Complex Type (list of strings).
try something like:
Server SetPropertyValueByName <serverName> <propName> "[value1, value2]"
Is there no documentation on blcli methods?
There is blcli help documentation is in the start menu on a system w/ the bsa gui installed. have you looked at that ? I think example of loading a ‘list’ value type though does not exist.
blcli_execute PropertyClass setDefaultValue "Class://SystemObject/Test Class" "TEST_LIST" "[a,b,c,\"d e f\",j]"
would work - note the format of the list/array value. if there are spaces in the value, you need to enclose it in quotes and escape the quotes
Bill you're awesome, your solution works great!
I'm trying to use my list of string to parametrize a value while creating a Component Template, but BL returns me an error saying that my Property is of type List[String].
Is there a way to use my string list to parametrize something?
I’m not sure I understand – can you explain in more detail what you are trying to do by using a list property type ?
When creating a component template, in "Parts", I want to add Oracle spfiles that have custom filenames.
For example, on one host I have spfileINSTANCE1.ora and spfileINSTANCE2.ora. On other hosts, I may have spfileFOO.ora and spfileGOO.ora.
I want to parametrize the Oracle DB instance name through a script I've already written that extracts from initora my online instances.
I thought of a List of String because obviously I may have more than one instance per host, but I think I'll play dirty and create a certain number of properties of string type and use them instead.