How to Access Scenarios
Scenarios can be accessed under Operate -> Scenarios
Or Search for Scenarios under Search
Basic Introduction to Scenario/task Commands
Scenario Commands are used in Scenarios. They return or don't return values. When they fail, the <error>-variable is set.
Below are some often used Scenario Commands.
Creating a New Scenario/task
Operate -> Scenarios -> New -> (1) Name: syslog_config -> (2) Description -> (3) Text -> (4) Save
Going through Scenario Text, we are using two scenario commands here.
config_create -> This is to generate syslog configuration and it is stored in the file name sys.cfg
cmd_exec_basic -> This is to execute configuration generated from the file named sys.cfg
Executing/Using the Scenario/task
(1) Operate -> New Jobs -> CMDB Jobs or YCE Jobs(based on the type of node) -> (2) Select the required node -> (3) Next
(1) Update the task name to the scenario/task we created task = syslog_config -> (2) Update the appropriate description
(3) Save Job As : Syslog Configuration -> (4) Save -> (5) Select the node -> (6) Schedule -> Now or (7) appropriate time
Job-status can be reviewed under Operate -> Job Status -> Job Logs
Note: We can also call a scenario/task from other scenarios/tasks using the task command