| Table of Contents |
|---|
Basics
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 will not be performed on undiscovered devices, and they will be grouped in the "Un-discovered devices" group.
...
After a preset is created, you can click "Run now" to push the provided commands to the selected devices.
Output Grouping
The commands you specify in the Push 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 push. 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 Push - require "enable" or "configure" CLI mode
You have the option of letting Unimus ensure that each device in the Push 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 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.
...
Please see our Device mode table article for more info on how the modes in the push preset map to various vendors / device types.
Command parsing
In a Push 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).
...
For details on exactly how commands are sent to devices, please see How commands are sent to devices.
Macros
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 Mass Config Push Presets Unimus supports using of Macros. These are Modifiers, Actions and User variables.
Modifiers
Modifiers are two-word macros used to adjust the interaction behavior with the remote device. Normally, Unimus waits for some known output (for example a prompt) after each sent command line (see How commands are sent to devices for more info).
...
This can be useful when for example the device doesn't respond with any data after sending some command/line, and you want Unimus to continue sending data to the device.
(please check the Command parsing examples section for more details)
Actions
Actions are two-word macros used to send control sequences and delays for interactions requiring pauses during execution.
...
As mentioned above, <Enter> is not sent after a control sequence by default, but this can be forced by appending "$[enter]" to the end of the line.
Full list of command sequences available in this article: VT100 Control / Command sequences.
(please check the Command parsing examples section for more details)
...
| Code Block | ||
|---|---|---|
| ||
\$(send 0x03) = "$(send 0x03)" will be sent literally to the device(s), instead of a control sequence \$(enter yes) = "$(enter yes)" will be sent literally to the device(s), instead of modifying command submission behavior |
Please check the Command parsing examples section for more details on how modifiers and control sequences work.
How commands are sent to devices
Config Push in Unimus has a few stages:
...
Note 3:
If the device pages through output ("-- more --"), Unimus sends pagination key (space for most device types) to proceed to next page automatically.
IF device asks to confirm end of output ("press Q to finish"), Unimus sends the appropriate key to finish output automatically.
Command parsing examples
Push commands:
| Code Block | ||
|---|---|---|
| ||
write memory y |
...
| Panel |
|---|
device (config)# banner motd ^<enter> |
Debugging failed pushes - "INTERACTION_ERROR" group
If there is an "INTERACTION_ERROR" output group in your Push 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.
...