On 9/27/2018 11:12 PM, Jason Cai wrote:

> Could we define a service class in WLM by batch job?  Thanks a lot! 

Sure: fetch current service definition, update, store it, re-activate
the currently active policy name (now sporting your new srvclass).  Have
a look at the WLM Programming Services pub.  IIRC the relevant subset
were named IWMDxxxxx.  SAF permissions definitely needed.

At a higher level though, is that action common enough to be worth
automating it, or is there a larger unstated context?  It would be
surprising if automating "add srvclass" alone was worth the time -
there's usually a whole ecosystem dependent on the data, with humans
consuming it in the end even if only for exceptions and capacity
planning, so adding/removing srvclasses on a regular basis would
generally be considered "unusual".

The original intent of the APIs was to allow systems management products
to update the entire svdef - and replace the UI, if they felt like it -
programmatically, and activate policies (which *could* easily be much
more common, e.g. you might have different 1st/2nd shift policies) the
same way.

-- 
John Arwe
IBM Wave for z/VM Development product owner
Former zWLM perpetrator

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to