Fortinet black logo

CLI Reference

debug shell-access history show

debug shell-access history show

Use this command to show the history of commands executed in Shell.

To use this command, your administrator account’s access control profile must have rw or w permission to the sysgrp area. For details, see Permissions.

Syntax

diagnose debug shell-access history show

Please note that to view the history you must have enabled shell-access in config system global.

Run the following commands to enable shell access and specify trusted hosts.

config system global

set shell-access enable

set shell-history-size <int>

set shell-trusthostv4 <IPv4_address_range>

set shell-trusthostv6 <IPv6_address_range>

end

For more information, see config system global.



debug shell-access history show

Use this command to show the history of commands executed in Shell.

To use this command, your administrator account’s access control profile must have rw or w permission to the sysgrp area. For details, see Permissions.

Syntax

diagnose debug shell-access history show

Please note that to view the history you must have enabled shell-access in config system global.

Run the following commands to enable shell access and specify trusted hosts.

config system global

set shell-access enable

set shell-history-size <int>

set shell-trusthostv4 <IPv4_address_range>

set shell-trusthostv6 <IPv6_address_range>

end

For more information, see config system global.