I thought there was a way to reference customer properties like ??_PROP_NAME_?? or ??_PROP_NAME??
I’m not sure I fully understand you ..
You can create Custom class in the Property Dictionary and put there any properties you need
Then you can reference this instance class properties from your blpackage .
I was trying to avoid using a BlPackage, since it's an extra step during creation.
In our environment, we are creating new packages very regularly, and I'm trying to streamline the process as much as possible.
The install process is always a single command, so a BlPackage is otherwise unnecessary, so it would have been nice to just have a parameterised CustomSoftware command, but it seems the parameters it allows are only a strict set, and not extendable.
It’s the same mechanism . you can add custom software to depot and reference to your class and properties
For example in the “install command” at the right corner you can select target->your class -> property
Then with every running of this custom software the process will take your class instance property value .
This in case you want to run a deferent install command for every server or group ..
Okay, referencing the pdf manual for 7.6 I have, page 382, section e, starting "For Install command" explicitly lists the parameters that can be referenced (13 pre-defined properties).Quoting: "If a command includes a parameter not shown in the following table, that parameter, must reference a server property".
In other words, I can't add a local custom property to the Custom Software class and refer to that in the install command, only once it's a BlPackage, which seems an odd limitation.
1 of 1 people found this helpful
you can specify a parameter file like ??_FOO?? and i know you can do some substitution in there, i'm not sure if you can do custom property class substitutiion in there though.
i think the only way to reference a custom class would be to add the custom software object to a blpackage and then modify the custom software inside the blpackage (and reference the custom property class in the blpackage).
That's pretty much the conclusion I'd come to aswell, but I wanted to double check I hadn't missed a trick somewhere. Thanks anyway.
1 of 1 people found this helpful
Not exactly . (I’m using Bladelogic 8.1 ..so things are not all the same )
if you use the pre define “custom software class” you would not have instance for every machine !
maybe this will help
1. Go to property dictionary
2. Create a new class in the “custom property classes
3. Define the properties you need
4. Go to pre define server class
5. Create a new property of type property class
6. Reference it to your new class
7. Select your new custom class at the right windows go to instance and create a new instance with one set values you need (you can build many instance )
8. Go to the machine right click it and select “set property” select the instance you just create
9. at the custom software in the install command .. at the right corner select target->your custom class-> property
at this way you can add custom install command to every machine with one custom software
Hrm, that's a good thought actually - while it does say only server properties can be referenced, I don't see a reason I can't use dot notation to access custom property classes for some things.
Doesn't help in the original circumstance (I want to be able to tweak a software installation by changing a property value passed to the installation command), but but useful to remember.
You can reference any custom class . if the change command is per machine you can use this method .. for other types try to use the same mechanism
Unfortunately it's not dependent on machine, but determined when running the package - the installation can undo, install just configs, install just binaries or do a normal installation based off the same files, depending on command line.
While the default is obviously the normal install, it's nice to be able to chose one of the other types at run-time if necessary without having four copies of the package just for different command line args.
How do you reference a custom class directly from a custom software object?
See my proviso post
how can you reference the custom class directly w/o creating a server property?