Example 1: Running the command with no argument will load all of the files by default.
curl -u import -X POST -s --data '{ "command" : "/GATEWAY:reloadSetup", "target" : "/geneos/gateway/directory" }' http://nysupsvr1f:51135/rest/runCommand
Example 2: Running the command to reload a specific include file
curl -u import -X POST -s --data '{ "command" : "/GATEWAY:reloadSetup", "target" : "/geneos/gateway/directory", "args": { "1": "/export/home/klee/Geneos/GW2-Linux-Active/includes/GW2_klee_includes_LoadMonitorStats.xml"} }' http://nysupsvr1f:51135/rest/runCommand
You can use the Gateway-includesData plugin to verify if the change has been applied.
Comments
0 comments
Please sign in to leave a comment.