Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

disconnect-admin-session

Disconnect an administrator who is logged in.

Syntax

execute disconnect-admin-session  Disconnect logged-in admin user.
        {integer}   Index of user to be disconnected in logged-users table.

To determine the index of the administrator that you want to disconnect, view the list of logged-in administrators by using the following command:

execute disconnect‑admin-session ?

The list of logged-in administrators looks like this:

Connected:

INDEX   USERNAME     TYPE      FROM               TIME

0       admin        WEB       172.20.120.51      Mon Aug 14 12:57:23 2006

1       admin2       CLI       ssh(172.20.120.54) Mon Aug 14 12:57:23 2006

Example

This example shows how to disconnect the logged administrator admin2 from the above list.

execute disconnect-admin-session 1

disconnect-admin-session

Disconnect an administrator who is logged in.

Syntax

execute disconnect-admin-session  Disconnect logged-in admin user.
        {integer}   Index of user to be disconnected in logged-users table.

To determine the index of the administrator that you want to disconnect, view the list of logged-in administrators by using the following command:

execute disconnect‑admin-session ?

The list of logged-in administrators looks like this:

Connected:

INDEX   USERNAME     TYPE      FROM               TIME

0       admin        WEB       172.20.120.51      Mon Aug 14 12:57:23 2006

1       admin2       CLI       ssh(172.20.120.54) Mon Aug 14 12:57:23 2006

Example

This example shows how to disconnect the logged administrator admin2 from the above list.

execute disconnect-admin-session 1