:source: fortiswitch_system_debug.py
:orphan:
.. fortiswitch_system_debug:
fortiswitch_system_debug -- Application and CLI debug values to set at startup and retain over reboot in Fortinet's FortiSwitch
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. versionadded:: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module is able to configure a FortiSwitch device by allowing the user to set and modify system feature and debug category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v7.0.0
Requirements
------------
The below requirements are needed on the host that executes this module.
- ansible>=2.16
FortiSwitch Version Compatibility
---------------------------------
.. raw:: html
| Supported Version Ranges |
| fortiswitch_system_debug |
Parameters
----------
.. raw:: html
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- member_path - Member attribute path to operate on. type: str
- member_state - Add or delete a member under specified attribute path. type: str choices: present, absent
- system_debug - Application and CLI debug values to set at startup and retain over reboot. type: dict
- alertd - Monitor and Alert daemon. type: int
- apache - Apache. type: int
- auto_script - Auto script. type: int
- autod - Automation Stitches. type: int
- bfdd - Bidirectional Forwarding Detection (BFD) daemon. type: int
- bgpd - Bgp daemon. type: int
- cli - CMDB/CLI debug. type: int
- ctrld - Switch general control daemon. type: int
- cu_swtpd - Switch-controller CAPWAP daemon. type: int
- delayclid - Delay CLI daemon. type: int
- dhcp6c - DHCPv6 client. type: int
- dhcpc - DHCP client module. type: int
- dhcprelay - DHCP relay daemon. type: int
- dhcps - DHCP server. type: int
- dmid - DMI daemon debug. type: int
- dnsproxy - DNS proxy module. type: int
- eap_proxy - EAP proxy daemon. type: int
- email_server - Email server. type: int
- erspan_auto_mgr - ERSPAN-auto mode configuration resolution daemon. type: int
- flan_mgr - FortiLAN Cloud Manager daemon. type: int
- flcmdd - FortiLink command daemon. type: int
- flow_export - Flow-export debug. type: int
- fnbamd - Fortigate non-blocking auth daemon. type: int
- fortilinkd - FortiLink daemon. type: int
- fpmd - FPMD HW routing daemon. type: int
- gratarp - IP Conflict Gratuitious ARP utility. type: int
- gui - GUI service. type: int
- gvrpd - GVRP daemon. type: int
- httpsd - HTTP/HTTPS daemon. type: int
- ip6addrd - IPv6 address utility. type: int
- ipconflictd - IP Conflictd detection daemon. type: int
- isisd - Isis daemon. type: int
- l2d - L2 daemon responsible to have core logic to assist L2 feature like MCLAG. type: int
- l2dbg - Background daemon responsible to assist in any heavy HW related operation needed by L2d. type: int
- l3 - L3 debug. type: int
- lacpd - Link Aggregation Control Protocol (LACP) debug. type: int
- libswitchd - Switch library daemon. type: int
- link_monitor - Link monitor daemon. type: int
- lldpmedd - Link Layer Discovery Protocol (LLDP) daemon. type: int
- macsec_srv - MKA/Fortilink macsec cak server daemon. type: int
- mcast_snooping - Multicast Snooping debug. type: int
- miglogd - Log daemon. type: int
- ntpd - Network Time Protocol (NTP) daemon. type: int
- nwmcfgd - Network monitor daemon responsible for handling configuration. type: int
- nwmonitord - Network monitor daemon responsible for packet handling and parsing. type: int
- ospf6d - Open Shortest Path First (OSPFv6) routing daemon. type: int
- ospfd - Open Shortest Path First (OSPF) routing daemon. type: int
- pbrd - Policy Based Routing (PBR) routing daemon. type: int
- pimd - Protocol Independent Multicast (PIM) daemon. type: int
- portspeedd - Port speed daemon. type: int
- radius_das - Radius CoA daemon. type: int
- radvd - router adv daemon type: int
- raguard - raguard daemon type: int
- ripd - Routing Information Protocol (RIP) daemon. type: int
- ripngd - Routing Information Protocol NG (RIPNG) daemon. type: int
- router_launcher - Routing system launcher daemon. type: int
- rsyslogd - Remote SYSLOG daemon. type: int
- scep - SCEP type: int
- sflowd - sFlow collection and export daemon. type: int
- snmpd - Simple Network Managment Protocol (SNMP) daemon. type: int
- sshd - Secure Sockets Shell(SSH) daemon. type: int
- staticd - Static route daemon. type: int
- statsd - Stats collection daemon. type: int
- stpd - Spanning Tree (STP) daemon. type: int
- switch_launcher - Switching system launcher daemon. type: int
- trunkd - Link Aggregation Control Protocol (LACP) daemon. type: int
- vrrpd - Virtual Router Redundancy Protocol (VRRP) daemon. type: int
- wiredap - Wired AP (802.1X port-based auth) daemon. type: int
- wpa_supp - MKA/Fortilink macsec daemon. type: int
- zebra - Zebra routing daemon. type: int
Examples
--------
.. code-block:: yaml+jinja
- name: Application and CLI debug values to set at startup and retain over reboot.
fortinet.fortiswitch.fortiswitch_system_debug:
system_debug:
alertd: "3"
apache: "4"
auto_script: "5"
autod: "6"
bfdd: "7"
bgpd: "8"
cli: "4"
ctrld: "10"
cu_swtpd: "11"
delayclid: "12"
dhcp6c: "13"
dhcpc: "14"
dhcprelay: "15"
dhcps: "16"
dmid: "17"
dnsproxy: "18"
eap_proxy: "19"
email_server: "20"
erspan_auto_mgr: "21"
flan_mgr: "22"
flcmdd: "23"
flow_export: "24"
fnbamd: "25"
fortilinkd: "26"
fpmd: "27"
gratarp: "28"
gui: "29"
gvrpd: "30"
httpsd: "31"
ip6addrd: "32"
ipconflictd: "33"
isisd: "34"
l2d: "35"
l2dbg: "36"
l3: "37"
lacpd: "38"
libswitchd: "39"
link_monitor: "40"
lldpmedd: "41"
macsec_srv: "42"
mcast_snooping: "43"
miglogd: "44"
ntpd: "45"
nwmcfgd: "46"
nwmonitord: "47"
ospf6d: "48"
ospfd: "49"
pbrd: "50"
pimd: "51"
portspeedd: "52"
radius_das: "53"
radvd: "54"
raguard: "55"
ripd: "56"
ripngd: "57"
router_launcher: "58"
rsyslogd: "59"
scep: "60"
sflowd: "61"
snmpd: "62"
sshd: "63"
staticd: "64"
statsd: "65"
stpd: "66"
switch_launcher: "67"
trunkd: "68"
vrrpd: "69"
wiredap: "70"
wpa_supp: "71"
zebra: "72"
Return Values
-------------
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
.. raw:: html
- build - Build number of the fortiSwitch image returned: always type: str sample: 1547
- http_method - Last method used to provision the content into FortiSwitch returned: always type: str sample: PUT
- http_status - Last result given by FortiSwitch on last operation applied returned: always type: str sample: 200
- mkey - Master key (id) used in the last call to FortiSwitch returned: success type: str sample: id
- name - Name of the table used to fulfill the request returned: always type: str sample: urlfilter
- path - Path of the table used to fulfill the request returned: always type: str sample: webfilter
- serial - Serial number of the unit returned: always type: str sample: FS1D243Z13000122
- status - Indication of the operation's result returned: always type: str sample: success
- version - Version of the FortiSwitch returned: always type: str sample: v7.0.0
Status
------
- This module is not guaranteed to have a backwards compatible interface.
Authors
-------
- Link Zheng (@chillancezen)
- Jie Xue (@JieX19)
- Hongbin Lu (@fgtdev-hblu)
- Frank Shen (@frankshen01)
- Miguel Angel Munoz (@mamunozgonzalez)
.. hint::
If you notice any issues in this documentation, feel free to create a pull request to improve it.