Fortinet white logo
Fortinet white logo

Administration Guide

CLI arguments

CLI arguments

The Passive Agent is designed to be run via an external script when a user logs onto or off of the network. Creating the script is the responsibility of the Administrator. When running the agent CLI arguments that indicate whether the agent is attempting to logon or logoff. If no argument is used, the agent defaults to login. Arguments are case sensitive.

Note

The Passive Agent filename for versions prior to 4.0.1.4 must be renamed to remove spaces to avoid issues when deploying with scripts.

Type

Arguments

Description

Logon

-login

/login

-logon

/logon

-on

/on

-in

/in

-authenticate

/authenticate

Any one of these arguments can be used to indicate Logon. There must be a space between the name of the agent file and the argument.

Example: FortiNAC_Passive_Agent.exe -login

Logoff

-logout

/logout

-logoff

/logoff

-off

/off

-out

/out

-deauthenticate

/deauthenticate

Any one of these arguments can be used to indicate Logoff. There must be a space between the name of the agent file and the argument.

Example: FortiNAC_Passive_Agent.exe -logout

CLI arguments

CLI arguments

The Passive Agent is designed to be run via an external script when a user logs onto or off of the network. Creating the script is the responsibility of the Administrator. When running the agent CLI arguments that indicate whether the agent is attempting to logon or logoff. If no argument is used, the agent defaults to login. Arguments are case sensitive.

Note

The Passive Agent filename for versions prior to 4.0.1.4 must be renamed to remove spaces to avoid issues when deploying with scripts.

Type

Arguments

Description

Logon

-login

/login

-logon

/logon

-on

/on

-in

/in

-authenticate

/authenticate

Any one of these arguments can be used to indicate Logon. There must be a space between the name of the agent file and the argument.

Example: FortiNAC_Passive_Agent.exe -login

Logoff

-logout

/logout

-logoff

/logoff

-off

/off

-out

/out

-deauthenticate

/deauthenticate

Any one of these arguments can be used to indicate Logoff. There must be a space between the name of the agent file and the argument.

Example: FortiNAC_Passive_Agent.exe -logout