×
Back to Geneos FAQ
Gateway Commands - How to snooze a target path for a specific duration i.e. hours/days/minutes?
Related to Copied
Gateway Commands, Snooze a target path for a specific duration
Problem Copied
How to snooze a specific DataItem for a specific duration.
Solution Copied
You can use the /SNOOZE:time command and please follow the correct arguments based on the article (Provided a snippet below):
Example:
If you want to snooze a Data item for 30 minutes, you may use the command below as an example:
curl -v -X POST \
-H "Content-Type: application/json" \
-d '{
"command": "/SNOOZE:time",
"target": "/geneos/gateway[(@name=\"gw_6.6y\")]/directory/probe[(@name=\"probe_6.6\")]/managedEntity[(@name=\"me_6.6\")]",
"args": {
"1": "Snooze for 30 minute",
"4": 30,
"5": 3600
}
}' \
http://<GW_IP>:<GW_PORT>/rest/runCommand
Using Argument 4 as the desired time: “4”:30
Using Argument 5: “5”:3600 (This is for hours) “5”:60 (This is for minutes) “5”:86400 (This is for days)
Your command should show as:
Output:
Log output:
2026-02-08 15:59:15.724+0800 INFO: CommandManager Executing command [/SNOOZE:time] with id [47] for request id [8]
2026-02-08 15:59:15.725+0800 INFO: CommandManager Executing command '/SNOOZE:time' on DataItem '/geneos/gateway[(@name="gw_6.6y")]/directory/probe[(@name="probe_6.6")]/managedEntity[(@name="me_6.6")]', issued by anonymous user on '192.168.101.73' using REST service
["Geneos"]
["Geneos > Gateway"]
["FAQ"]