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. Trigger Remote Command on multiple Agents via API

Trigger Remote Command on multiple Agents via API

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 13.2k 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.
  • U
    U
    untiptun
    wrote on last edited by
    #1

    Hi,

    I am new to NetXMS. So far I'm very pleased with it. Among many other things we have the nodes that we monitor grouped in clusters in the Admin Interface. We have some ObjectTools defined and are able to manually trigger remote commands on all the servers in the cluster. But we've reached to a point were we would like to remotely tell Netxms server to trigger that command on all nodes of a cluster (I imagine that the interface sends a command ot the Netxms server - I want to do the same but from my own external script/application). I imagine this is something we could do with the API. Could you please explain how I could do that or maybe point me to some documentation on how to do it ?

    I really appreciate your help,
    Best regards,
    Alex

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      You can execute object tool via Java API or using nxshell (which is a Python wrapper around Java API). Approximate sequence will be following:

      1. find cluster object (by name or ID)
      2. for each child node object call NXCSession.executeAction

      Here you can find more information about API:

      http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations
      https://www.netxms.org/documentation/javadoc/latest/

      Best regards,
      Victor

      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