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.
Category | Command | Description |
Command Execution | cmd_exec_basic | Executes configs to the CMDB node. This also performs config save, config backup(pre and post). |
cmd_exec | Executes configs to the YCE node. This also performs config save, config backup(pre and post). |
Parsing | parse_cmd | Parsing text/values from the command outputs for further usage |
Config Management | config_create | Create configs for execution |
config_restore | Restore specific configuration to a node |
File Transfer | file_get | Transfer file from NetYCE to the node |
Miscellaneous | wait | Delay subsequent action for specified time |
reachable | Test if node is reachable via ssh or telnet |
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