Fortinet white logo
Fortinet white logo

Script Reference Guide

Management commands

Management commands

Management (MGM) commands script event management functions:

  • MGM:get_session_id() — Returns the session ID.

  • MGM:rand_id() — Returns a 32-character string of HEX symbols.

  • MGM:set_event(t) — Allows the user to disable/enable the rest of the events from executing by disabling this event.

  • MGM:set_auto(t) — In the case of keep-alive, all events will be re-enabled automatically even if they are disabled in the previous TRANSACTION using the HTTP:set_event(t) command. To disable this automatic re-enabling behavior, you can call HTTP:set_auto(t).

  • MGM:disable_event(code) — Disables an event based on the code specified via the parameter.

  • MGM:enable_event(code) — Enables an event that was previously disabled based on the code specified via the parameter.

  • MGM:disable_auto(code) — Disables an event based on the code specified via the parameter.
  • MGM:enable_auto(code) — Enables an event that was previously disabled based on the code specified via the parameter.

Management commands

Management commands

Management (MGM) commands script event management functions:

  • MGM:get_session_id() — Returns the session ID.

  • MGM:rand_id() — Returns a 32-character string of HEX symbols.

  • MGM:set_event(t) — Allows the user to disable/enable the rest of the events from executing by disabling this event.

  • MGM:set_auto(t) — In the case of keep-alive, all events will be re-enabled automatically even if they are disabled in the previous TRANSACTION using the HTTP:set_event(t) command. To disable this automatic re-enabling behavior, you can call HTTP:set_auto(t).

  • MGM:disable_event(code) — Disables an event based on the code specified via the parameter.

  • MGM:enable_event(code) — Enables an event that was previously disabled based on the code specified via the parameter.

  • MGM:disable_auto(code) — Disables an event based on the code specified via the parameter.
  • MGM:enable_auto(code) — Enables an event that was previously disabled based on the code specified via the parameter.