Running an action

There are several general principles that are involved with all .bes files. To communicate with the Tivoli BigFix platform, you must create API objects, that you can then use to issue commands or to set and retrieve properties. For example, to propagate an action with a script, first create a BESAPI.FixletActionCreator object:

var actionCreator = CreateObject("BESAPI.FixletActionCreator");

or

var actionCreator = new
ActiveXObject("BESAPI.FixletActionCreator");

Then use the appropriate set methods on that object to specify the attributes of the action, such as which computers to target, when to run and the content of the action (that is, when it is relevant, and the script to execute). For example:

actionCreator.SetTargetComputers("|12345678|");

Finally, commit the action to the database and send it to the client computers using the DoPropagation method. For example:

actionCreator.DoPropagation("joe","mypassword");
window.alert("Propagated action id #" + actionCreator.actionID);