watch "<show command>" interval <seconds>

Prev Next

Enables all "show" cli commands to display outputs at regular intervals without manual intervention, The default interval is 30 seconds.

Blocked Commands

The CLI watch command is not available for some show commands, such as those that perform continuous logging or that produce very long output. The commands are blocked at node level, which means that all the sub-tree nodes till the leaf node gets blocked. For example, when the show eula command is blocked, the show eula status and show eula text are also blocked.

The following is a partial list of blocked show commands that cannot be watched. The list is subject to change.

  • show configuration

  • show running-config

  • show signer-whitelist

  • show cli commands

  • show custom

  • show eula

  • show log

  • show logging

  • show logging-filewise

  • show metadata

  • show raid

  • show web log

  • show web logging

  • show managed-defense

  • show terminal

  • show smartvision

Syntax

watch "<show command>" interval <seconds>

Parameters

show command

The command to be watched. All show commands are valid except those listed under “Blocked commands.”

seconds

How often to display output, in seconds. The range is from 2 to 3600 seconds. The default value is 30 seconds

Examples

The following examples watches the show clock command at the default interval.

hostname (config) # watch "show clock"

Every 30.0s: cli -m config -t 'show clock'

Mon Jul 10 10:04:26 2023

Time:10:04:27

Date:2023/07/10

Time zone:UTC (Etc/UTC) UTC

offset: same as UTC

The following example watches the show clock command every 2 seconds.

hostname (config) # watch "show clock" interval

Every 2.0s: cli -m config -t 'show clock'

Mon Jul 10 10:07:14 2023

Date:2023/07/10

Time zone:UTC (Etc/UTC)

UTC offset:same as UTC

User Role

Admin, Operator, or Monitor

Command Mode

Enable

Supported Appliances

Malware Analysis: Release 10.0

Central Management System: Release 10.0

Email Security — Server: Release 10.0

File Protect: Release 10.0

Network Security: Release 10.0

Endpoint Security (HX): Release 10.0