Skip to main content

Create and use Scripts (OMCI)

Goal: create command sequences (scripts) and apply them to one or more CPEs.

Scripts are sets of commands that Cpehub applies to devices — useful for manufacturer-specific configurations that aren't in the standard actions. Each script is linked to models and, optionally, to OLTs.

Prerequisites​

Check off items as you go through them. This is just a visual aid, so reloading the page unchecks everything again.

  • Know the commands you want to apply (manufacturer/model specific).
  • Be clear on the scope (which models/OLTs).

Create a script​

  1. Go to Administration → Scripts and click + Add Script.

  2. Fill in:

    • The script's Name.
    • Models it applies to (or "All devices").
    • OLTs (optional) to restrict the scope.
    • The script's commands.
  3. Save.

Run a script​

  • On a CPE: open the CPE, go to the Scripts tab and run the script.
  • In bulk: select multiple CPEs (or use an automation to trigger the script by event).

Best practices​

warning

Scripts act directly on provisioning. Test on one device before applying in bulk, and restrict the scope by model/OLT to avoid applying commands to the wrong device.

See also​