Fortinet black logo

CLI Reference

dmserver

dmserver

Use these commands to manage devices and revisions.

dmserver clearrev

dmserver

dmserver revlist

dmserver showconfig

dmserver showdev

dmserver showrev

dmserver clearrev

Use this command to clear all revisions.

Syntax

execute dmserver clearrev <devname>

Variable

Description

<devname>

The name of the device.

dmserver delrev

Use this command to delete configuration revisions. The device name will be kept.

Syntax

execute dmserver delrev <device_name> <startrev> <endrev>

Variable

Description

<device_name>

The name of the device.

<startrev>

The starting configuration revision number that you want to delete.

<endrev>

The ending configuration revision number that you want to delete.

dmserver revlist

Use this command to show a list of revisions for a device.

Syntax

execute dmserver revlist <device_name>

Variable

Description

<device_name>

The name of the device.

dmserver showconfig

Use this command to show the current configuration of a managed device.

The configuration is fetched from the managed device. If the device is not live or reachable, the FortiManager CLI will display an error code.

Syntax

execute dmserver showconfig <device_name>

Variable

Description

<device_name>

The name of the device.

dmserver showdev

Use this command to show a list of available devices. For each listed device, this command lists the device ID, device name, and serial number.

Syntax

execute dmserver showdev

dmserver showrev

Use this command to display a device’s configuration revision.

Syntax

execute dmserver showrev <device_name> <revision>

Variable

Description

<device_name>

The name of the device.

<revision>

The configuration revision you want to display. You can enter a negative revision number, such as -1, to display the latest revision.

dmserver

dmserver

Use these commands to manage devices and revisions.

dmserver clearrev

dmserver

dmserver revlist

dmserver showconfig

dmserver showdev

dmserver showrev

dmserver clearrev

Use this command to clear all revisions.

Syntax

execute dmserver clearrev <devname>

Variable

Description

<devname>

The name of the device.

dmserver delrev

Use this command to delete configuration revisions. The device name will be kept.

Syntax

execute dmserver delrev <device_name> <startrev> <endrev>

Variable

Description

<device_name>

The name of the device.

<startrev>

The starting configuration revision number that you want to delete.

<endrev>

The ending configuration revision number that you want to delete.

dmserver revlist

Use this command to show a list of revisions for a device.

Syntax

execute dmserver revlist <device_name>

Variable

Description

<device_name>

The name of the device.

dmserver showconfig

Use this command to show the current configuration of a managed device.

The configuration is fetched from the managed device. If the device is not live or reachable, the FortiManager CLI will display an error code.

Syntax

execute dmserver showconfig <device_name>

Variable

Description

<device_name>

The name of the device.

dmserver showdev

Use this command to show a list of available devices. For each listed device, this command lists the device ID, device name, and serial number.

Syntax

execute dmserver showdev

dmserver showrev

Use this command to display a device’s configuration revision.

Syntax

execute dmserver showrev <device_name> <revision>

Variable

Description

<device_name>

The name of the device.

<revision>

The configuration revision you want to display. You can enter a negative revision number, such as -1, to display the latest revision.