Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Basics

Automations (Mass Config Push) in Unimus is used to send a set of commands to a group (or all) of devices in your network. This allows you to roll out mass config changes across your network, or query command outputs from a large set of devices. Before you can push to devices, each device must be in a "discovered" state (normally done during device addition into Unimus). Config push An Automation (Mass Config Push) will not be performed on undiscovered devices, and they will be grouped in the "Un-discovered devices" group.

To perform a pushautomation, you first need to create a an "Push Automation Preset" from the Automations(Mass Config Push) home page. For the "Commands", you can provide the same sequence of commands and key-strokes to Unimus as you would when interacting with the device CLI manually.

...

The commands you specify in the Push Automations Preset are sent to the devices, one line at a time (more info on how Unimus interacts with the device in How commands are sent to devices). The outputs of the executed commands are evaluated on all devices, and a new "Output Group" is created for each unique output during the pushautomation. If 2 devices reply with the same output, both devices are assigned to a single output group belonging to that unique output.

As an example, if you push a command to 200 devices, but across all devices there will only be 2 unique outputs to this command, Unimus will create only 2 output groups, and assign each device to the right output group. Output grouping means you don't need to inspect outputs of 200 devices after a config push - saving you time, and making navigation in large push outputs easy.

State of device before an Automation (Push) - require "enable" or "configure" CLI mode

You have the option of letting Unimus ensure that each device in the Push Automation Preset is in a desired CLI mode before your specified commands are pushed. You can check "Require enable mode" and/or "Require configure mode" in the Push Automation Preset, and Unimus will make sure the device is in the specified mode before executing your commands. Modes available on devices are discovered during Discovery, using mode credentials configured in the "Credentials" screen. You can check which modes Unimus was able to discover on devices using the "Devices > Info" window.

If a device can not be switched into the specified CLI mode before the push, Config Push Automation will NOT push the provided commands to the device, and any devices failing the mode switch will be grouped in appropriate "mode not supported" output groups.

...

Please see our Device mode table article for more info on how the modes in the push Automation preset map to various vendors / device types.

Command parsing

In a Push an Automation Preset, you provide a command set to Unimus, which will be parsed for submission modifiers and control sequences, and then sent to the device(s).

If you do not provide any submission modifiers or control sequences, Unimus will split the provided command set line-by-line, and then send it to selected device(s) one-by-one.
Basically, you give Unimus a bunch of commands, and it will distribute them to your network.

For example, specifying push Automation (Mass Config Push) commands like this will work as expected, and Unimus will handle pagination ("-- more --") natively:

...

Since version 2.0.3, Unimus supports command submission modifiers and sending control sequences. Release 2.4.0 introduced overhaul of how modifiers work.

To customize Automation (Mass Config Push) Presets Unimus supports using of Macros. These are Modifiers, Actions and User variables.

...

How commands are sent to devices

Automations (Mass Config Push) in Unimus has a few stages:

...

The main (and most important) portion of an Automation (Mass Config Push) is sending the actual commands provided in the "Commands" set to the devices. To make this simple - you can provide the same sequence of commands and key-strokes to Unimus as you would when interacting with the device CLI, and Unimus will properly interact with the device as expected. To understand more in depth how Unimus interacts with a device, here is a (still very simplified) chart:

...

If there is an "INTERACTION_ERROR" output group in your Push Automation results, this means Unimus was not able to identify any known / expected output from some devices (see How commands are sent to devices). If this happens, Unimus will stop pushing to the device(s) for safety reasons, and place these devices in the "INTERACTION_ERROR" group.

The easiest way to find out why a push an Automation is failing is to enable Device Output Logging in "Zones > Your_zone > Debug Mode > Device output logging". After this is enabled, re-run your push Automation and wait for it to fail.
After the push Automation fails, download the Device Output Log file, and check what exactly in the device communication caused Unimus to fail.

...