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. Action - Execute command via remote agent

Action - Execute command via remote agent

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 36.1k 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.
  • S
    S
    SmEed
    wrote on last edited by
    #1

    Hello!

    I am trying to run an external program (cmd.exe) whenever a threshold is reached.

    I added an Actions Configuration called notepad of type 'Execute command on remote node via agent',
    and in the agent's configfile (etc/nxagentd.conf) i add 'ActionShellExec = notepad:cmd.exe /C pause'.

    But, it does not work.

    Can anyone give me a hint?

    THX! 😉

    1 Reply Last reply
    0
    • S
      S
      SmEed
      wrote on last edited by
      #2

      Correction!

      The Task is running, but i can't see it in the current user session...

      😞

      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #3

        Agent by default is running as windows service and can't interact with the GUI. In older version os windows (before 7) you can enabled "Interact with GUI" option in service manger, but for newer ones – you'll have to run agent as application, not as service.
        You can add it to autorun, and if you want to hide console window – start it with "-H" command line option.

        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