Fortinet black logo

Cookbook

Testing a Google cloud connector

6.2.0
Copy Link
Copy Doc ID 8ee8a6b6-7281-11e9-81a4-00505692583a:25795
Download PDF

Testing a Google cloud connector

You can use the CLI console to test the cloud connector before the logs have rolled over or a scheduled backup is performed.

To test a cloud connector:
  1. Open the CLI console on any page and type: diag test application uploadd 62 <connector name> <bucket name>.

    If the connector is working, the output will show success.

  2. Go to the storage bucket on Google Cloud and look for the test files you uploaded.

To test a cloud connector with a shell prompt:
  1. With the default settings, access to shell will give the following message:

    FAZ1000D # execute shell

    Shell disabled.

  2. Use the following commands to enable shell on the FortiAnalyzer:

    FAZ1000D # config system admin setting

    (setting)# set shell-access enable

    Enter new password: *****

    Confirm new password: *****

    FAZ1000D # end

    The shell is now enabled.

    FAZ1000D # execute shell

    Enter password:

    sh-4.3#

    sh-4.3#

  3. Open the CLI console on any page and type: rclone --config=/drive0/private/rclone.cfg ls <connector-name>:<bucketname>

    If the connector is working you will not see any errors.

Testing a Google cloud connector

You can use the CLI console to test the cloud connector before the logs have rolled over or a scheduled backup is performed.

To test a cloud connector:
  1. Open the CLI console on any page and type: diag test application uploadd 62 <connector name> <bucket name>.

    If the connector is working, the output will show success.

  2. Go to the storage bucket on Google Cloud and look for the test files you uploaded.

To test a cloud connector with a shell prompt:
  1. With the default settings, access to shell will give the following message:

    FAZ1000D # execute shell

    Shell disabled.

  2. Use the following commands to enable shell on the FortiAnalyzer:

    FAZ1000D # config system admin setting

    (setting)# set shell-access enable

    Enter new password: *****

    Confirm new password: *****

    FAZ1000D # end

    The shell is now enabled.

    FAZ1000D # execute shell

    Enter password:

    sh-4.3#

    sh-4.3#

  3. Open the CLI console on any page and type: rclone --config=/drive0/private/rclone.cfg ls <connector-name>:<bucketname>

    If the connector is working you will not see any errors.