Ad Widget

Collapse

Remote command on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrblue
    Junior Member
    • Apr 2017
    • 3

    #1

    Remote command on Windows

    Hello
    A have trigger that launches a remote command. The command execute the zabbix agent on the windows system. The command writes some text to a file.

    Code:
    echo sometext > c:file.txt
    This command works fine. But i would like to save the hostname to this file.
    Something like this:

    Code:
    echo {HOST.NAME} > c:file.txt
    Is this possible via remote command?
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    Probably, yes. For macros {HOST.NAME} manual says: Trigger-based notifications and commands

    Comment

    • mrblue
      Junior Member
      • Apr 2017
      • 3

      #3
      IT works. Thanks

      Comment

      Working...