Passing Nimsoft variables to Nas auto-operator action type command

Document ID : KB000034708
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction

?Options to pass Nimsoft variables to NAS auto-operator action type command




Procedure

Options to do this

1.Can? use Script mode to execute? command from lua script and pass argument to script e.g $hostname and capture in batch file using Windows batch scripting variable scheme i-e %1% to get the first variable.

2- Use "Command" mode and pass argument part of command e.g

Put the variables in quotes to get the full string

example
C:\testing\sendsms2.bat "$message" "$hostname" "$time" "$severity" "$level"

and capture in batch script per Windows batch scripting techniques


?