Fortinet white logo
Fortinet white logo

CLI Reference

debug application hasync

debug application hasync

Use this command to set the verbosity level and type of debug logs for HA synchronization.

Before you will be able to see any debug logs, you must first enable debug log output using the command debug.

To use this command, your administrator account’s access control profile requires only r permission in any profile area. For details, see Permissions.

Syntax

diagnose debug application hasync {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

Variable Description Default

hasync {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

Enter the number indicating the verbosity level and type of debugging messages to output to the CLI display after the command executes.

  • 0—Do not display messages.
  • 1—Display the process initialization failure message.
  • 2—None.
  • 3—Display MD5 checksums message.
  • 4—Display transmission loading message.
  • 5—Display network transmission messages, such as ARP broadcasts and bridge down/up status changes.
  • 6—Display more detailed packet transmission messages.
  • 7—Display all messages.

If you omit the number, the CLI displays the current verbosity level:

hasync debug level is 0

0

Example

This example enables diagnostic debug logging in general, then specifically enables packet transmission logging of the HA synchronization daemon, hasyncd.

diagnose debug enable

diagnose debug application hasync 5

The CLI displays output such as the following until the command is terminated:

(./lib/confd_send_queue.c : 58 ) add request to ha sendqueue success len:626

(./lib/confd_send_queue.c : 171 ) Read send request from local, len = 626 element type:1

(./lib/confd_sync_data.c : 1243) Create session: 0x7f1a3b45f080 dstip: 169.254.0.2 dstsn: FVVM020000176885 type :1 sd :13 filename : msglen :50

fortiweb # (./lib/confd_sync_data.c : 214 ) Send message hdr init, session :0x7f1a3b45f080 session id: 9219122 type: 1

fer: FV-VMB-6.0-FW-build0064 src_sn: FVVM020000176884 dst_sn: FVVM020000176885

(./lib/confd_sync_data.c : 732 ) Send single cfg message, session: 0x7f1a3b45f080 total len: 278 total_count: 1 current-count: 1 residue: 278 p_len: 278

send_len: 278

(./lib/confd_sync_data.c : 739 ) Send cfg message, session: 0x7f1a3b45f080 total_len: 278 msglen: 58 total_count: 1 current-count: 1residue: 278 retval: 278

(./lib/confd_sync_data.c : 1025) Release session: 0x7f1a3b45f080 type: 1 ctx status: 3 ctx_file_status: 0 times :4 time out: 5000

Related topics

debug application hasync

debug application hasync

Use this command to set the verbosity level and type of debug logs for HA synchronization.

Before you will be able to see any debug logs, you must first enable debug log output using the command debug.

To use this command, your administrator account’s access control profile requires only r permission in any profile area. For details, see Permissions.

Syntax

diagnose debug application hasync {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

Variable Description Default

hasync {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7}

Enter the number indicating the verbosity level and type of debugging messages to output to the CLI display after the command executes.

  • 0—Do not display messages.
  • 1—Display the process initialization failure message.
  • 2—None.
  • 3—Display MD5 checksums message.
  • 4—Display transmission loading message.
  • 5—Display network transmission messages, such as ARP broadcasts and bridge down/up status changes.
  • 6—Display more detailed packet transmission messages.
  • 7—Display all messages.

If you omit the number, the CLI displays the current verbosity level:

hasync debug level is 0

0

Example

This example enables diagnostic debug logging in general, then specifically enables packet transmission logging of the HA synchronization daemon, hasyncd.

diagnose debug enable

diagnose debug application hasync 5

The CLI displays output such as the following until the command is terminated:

(./lib/confd_send_queue.c : 58 ) add request to ha sendqueue success len:626

(./lib/confd_send_queue.c : 171 ) Read send request from local, len = 626 element type:1

(./lib/confd_sync_data.c : 1243) Create session: 0x7f1a3b45f080 dstip: 169.254.0.2 dstsn: FVVM020000176885 type :1 sd :13 filename : msglen :50

fortiweb # (./lib/confd_sync_data.c : 214 ) Send message hdr init, session :0x7f1a3b45f080 session id: 9219122 type: 1

fer: FV-VMB-6.0-FW-build0064 src_sn: FVVM020000176884 dst_sn: FVVM020000176885

(./lib/confd_sync_data.c : 732 ) Send single cfg message, session: 0x7f1a3b45f080 total len: 278 total_count: 1 current-count: 1 residue: 278 p_len: 278

send_len: 278

(./lib/confd_sync_data.c : 739 ) Send cfg message, session: 0x7f1a3b45f080 total_len: 278 msglen: 58 total_count: 1 current-count: 1residue: 278 retval: 278

(./lib/confd_sync_data.c : 1025) Release session: 0x7f1a3b45f080 type: 1 ctx status: 3 ctx_file_status: 0 times :4 time out: 5000

Related topics