0

Outbound integration on xMatters agent fails with TypeError

Hi,

Following the example to execute a script on an xMatters Agent on Windows for an outbound integration (copy of the example below). I always get an error TypeError: Cannot get property "1" of null

I see the failing line is the "var script = Shell.script...".

Any ideas of what could be the issue???

 

if (osname.startsWith('Windows')) 

   // create a script and pass some parameters into it.
   var script = Shell.script(function () {/* REM #### PLACE YOUR .BAT SCRIPT BETWEEN HERE ##### 
   cd c:\ 
   dir echo 
   echo This user ${user} from ${company}
   echo %date% %time% : Hostname is %computername%
   REM ##### AND HERE #### */ }, 
   {user: "Mary McBride", company: "xMatters"}); 

   // Execute it console.log("Output:");

 

Regards,

RB

1 comment

Please sign in to leave a comment.