content_image/978591.jpg
<img src='content_image/978591.jpg'>

## The ksysmgr utility 

As introduced in 3.5, “Configuring VM Recovery Manager HA” on page 281, ksysmgr represents internally the various entities it manages as objects of a predefined type CLASS, on which an ACTION can be performed. These objects are, in fact, just RMC resources of a specific RMC resource class, with predefined attributes and actions. Most of the ksysmgr commands start RMC-provided utilities that are revealed in the ksysmgr  log /var/ksys/log/ksysmgr.log . The excerpt in Example 2-13 shows a sequence of actions that were logged during our KSYS cluster creation by the ksysmgr add ksyscluster  command. Steps in the sequence start RMC utilities such as preprpnode , mkrpdomain , and lsrsrc . 

[15335792] !COMMAND!:"ksysmgr add ksyscluster rbRMHA ksysnodes=ksys7004customer type=HA" [15335792] add_ksyscluster()[52]: ENTERING [15335792] Getting hostname for ksys7004customer [15335792] known host ksys7004customer.aus.stglabs.ibm.com ... [15335792] Adding node to current cluster configuration [15335792] time:10/27/2018 13:26:16 ------------- [15335792] runSystemCommand()[794] : RUNNING COMMAND:/usr/sbin/rsct/bin/preprpnode ksys7004customer > /dev/null 2>&1 [15335792] runSystemCommand()[800]: Unaltered return status: 0 [15335792] runSystemCommand()[827]: RC: 0 [15335792] time:10/27/2018 13:26:16 ------------- 

