You can use getAntecedents() and getDependents() methods to retrieve CIM object antecedents and dependents.
To retrieve CIM object antecedents, call the getAntecedents() method:
// Retrieve all computer systems arr=CA_ComputerSystem.getInstances() // Continue working with the first computer system returned cs=arr[0] // retrieve the antecedents arrAnt = cs.getAntecedents() for(i=0; i<arrAnt.length; i++) { show-cimObject arrAnt[i] }
To retrieve antecedents instances of a CIM class, call getAntecedents() method:
os = cs.getAntecedents("CIM_OperatingSystem"); show-cimObject os
To retrieve CIM object dependents, call the getDependents() method:
// Retrieve all computer systems, arr=CA_ComputerSystem.getInstances() // Continue working with the first computer system returned cs=arr[0] // retrieve the dependents arrAnt = cs. getDependents() for(i=0; i<arrAnt.length; i++) { show-cimObject arrAnt[i] }
To retrieve dependents instances of a CIM class, call the getDependents() method:
fs = cs. getDependents("CIM_FileSystem"); show-cimObject fs
Copyright © 2013 CA. All rights reserved. |
|