Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Automate NXSL Script [SOLVED]

Automate NXSL Script [SOLVED]

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 13.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    anw
    wrote on last edited by
    #1

    Hi
    i have written a tiny script for my switches - which changes the expected interface states to ignore, unless an alias/port description is set.
    i would like to auto run it for all my switches every X hours - how can i realise that?  i dont really get the scheduled tasks - where can i define which script to run ? and what to enter into the cron schedule?

    thanks guys

    edit: thanks tomaskir, that was easier than i thought 🙂

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      Scheduled script is the functionality you are looking for.

      1. make sure your user has access to the scheduler features (in user manager)
      2. go to "Configuration > Scheduled Tasks"
      3. create a new scheduled task
      4. set type to "Execute.Script"
      5. you can leave execution object empty, your script can then iterate all objects and execute on whichever you need
      • this is of course limited by security policy as explained on this wiki page
      • how to iterate over all nodes example on this wiki page
      1. put the name of your script in the Script Library into the "Parameters" field
      2. set cron schedule
      • this is in standard cron format, if you dont know it, just google for "cron generator", for example this one
      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups