Skip to main content
1-Visitor
September 22, 2014
Solved

Question about scripting and accessing properties of 'Admin Types'.

  • September 22, 2014
  • 1 reply
  • 1127 views

Hi,

Can someone provide a script example that reads properties from the 'MKS Solution' item type?


We have the need to add some of our own global properties that would alter some of the conditional-logic in our scripts. The 'MKS Solution' is a singleton and already has many properties that apply to the entire solution. So it seems like using our own custom properties in the the 'MKS Solution' would best fit the design/architecture that exists.

In addition, could these properties be updated from script? For an application like this, we would make use of some 'lazy initialization" logic in our scripts to handle the situations where these properties might be missing (like during an upgrade to a new version of Integrity).

-Sean

    Best answer by KaelLizak

    Hi Sean,

    Sorry for the late response. I'm in the office right now, so I'm doing this from memory and a quick scan of the 10.6 Admin CLI reference.

    I don't have an actual script for you, but I believe the commands you would want to use in such a script are im viewtype --showproperties to have the properties available to be parsed, and im edittype --setproperty to change the values of a property.

    As a note, be aware that even slight typographical errors can mess up many or all of your properties, since they are stored as one continuous string, so I would recommend making a dump of properties before doing extensive revisions of them.

    Regards,

    Kael

    1 reply

    KaelLizak16-PearlAnswer
    16-Pearl
    October 5, 2014

    Hi Sean,

    Sorry for the late response. I'm in the office right now, so I'm doing this from memory and a quick scan of the 10.6 Admin CLI reference.

    I don't have an actual script for you, but I believe the commands you would want to use in such a script are im viewtype --showproperties to have the properties available to be parsed, and im edittype --setproperty to change the values of a property.

    As a note, be aware that even slight typographical errors can mess up many or all of your properties, since they are stored as one continuous string, so I would recommend making a dump of properties before doing extensive revisions of them.

    Regards,

    Kael