Semi-automated batch import of records using JavaScript

Home Page Forums Network Management ZeroShell Semi-automated batch import of records using JavaScript

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44177
    dme26
    Member

    I needed to batch import quite a few records into a Zeroshell installation. I hacked up a quick example automating the creation of static DHCP records using Safari (in my case) that I have uploaded at: https://bitbucket.org/dme26/zs-batch-load.

    As noted on the readme.md file in that repository, what’s there can easily be automated further, and with a little more difficulty can probably be automated in a much more robust fashion (e.g. using a tool such as http://www.seleniumhq.org/, generalising across browsers, etc.)

    The example shell script in that repository opens a TSV file and when prompted reads the file line-by-line, at each line loading a chunk of JavaScript into the MacOS clipboard, that can then be pasted into the Safari JavaScript console.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.