Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Fortinet FortiOS Shenanigans (Christian Ramseyer)
   2. Re: Fortinet FortiOS Shenanigans (Christian Ramseyer)
--- Begin Message ---


On 18.03.2025 21:43, Christian Vo wrote:


[2888572] 2025-03-18 20:35:50 debug output collected: Current virtual domain: FG-traffic

[2888572] 2025-03-18 20:35:50 debug output collected: Max number of virtual domains: 10

[2888572] 2025-03-18 20:35:50 debug output collected: Virtual domains status: 2 in NAT mode, 0 in TP mode

[2888572] 2025-03-18 20:35:50 debug output collected: Virtual domain configuration: split-task

[2888572] 2025-03-18 20:35:50 debug output collected: FIPS-CC mode: disable

[2888572] 2025-03-18 20:35:50 debug output collected: Current HA mode: a-p, primary

[2888572] 2025-03-18 20:35:50 debug output collected: Cluster uptime: 1221 days, 20 hours, 22 minutes, 58 seconds

[2888572] 2025-03-18 20:35:50 debug output collected: Cluster state change time: 2022-11-26 20:06:54

[2888572] 2025-03-18 20:35:50 debug output collected: Branch point: 0418

[2888572] 2025-03-18 20:35:50 debug output collected: Release Version Information: GA

[2888572] 2025-03-18 20:35:50 debug output collected: FortiOS x86-64: Yes

[2888572] 2025-03-18 20:35:50 debug output collected: System time: Wed Mar 19 04:35:50 2025

[2888572] 2025-03-18 20:35:50 debug output collected: Last reboot reason: warm reboot

[2888572] 2025-03-18 20:35:50 debug output collected: Fortinet-UUT-FW

[2888572] 2025-03-18 20:35:50 debug output collected: get system arp

[2888572] 2025-03-18 20:35:50 debug output collected: command parse error before 'arp'

[2888572] 2025-03-18 20:35:50 debug output collected: Command fail. Return code -61

[2888572] 2025-03-18 20:35:50 debug output collected: Fortinet-UUT-FW


Well it looks like you have a setup that is new to this script, it actually checks for "Virtual domain configuration: multiple" to decide to enter VDOM mode. You'd need to experiment a bit, maybe it works if you just change line 146 of lib/App/Netdisco/SSHCollector/Platform/FortiOS.pm to


if ($_ && /^Virtual domain configuration: (multiple|split-task)$/) {


Unfortunately I'm not deep enough into Fortinet to know if other changes would be needed or if this split-task setup will work nicely with the commands the module is sending, you'll have to experiment a bit.

Cheers
Christian

--- End Message ---
--- Begin Message ---


On 19.03.2025 00:00, Christian Vo wrote:

Thanks Christian,

I’ve made the modification to line 146 and now I’m able to collect ARP entries.

Will continue to test and update, much appreciated!


Cool thanks for trying, I've updated the regex in the distributed version <https://github.com/netdisco/netdisco/commit/fa90cddd84ee09e65758652b13cbe67ea3a483c5> as well.

Cheers
Christian

*From:*Christian Ramseyer <ramse...@netnea.com>
*Sent:* Tuesday, March 18, 2025 3:45 PM
*To:* Christian Vo <christian...@synaptics.com>
*Cc:* netdisco-users@lists.sourceforge.net; Michael Butash <mich...@butash.net>
*Subject:* Re: [Netdisco] Fortinet FortiOS Shenanigans

*CAUTION:*Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe.

On 18.03.2025 21:43, Christian Vo wrote:



    [2888572] 2025-03-18 20:35:50 debug output collected: Current
    virtual domain: FG-traffic

    [2888572] 2025-03-18 20:35:50 debug output collected: Max number
    of virtual domains: 10

    [2888572] 2025-03-18 20:35:50 debug output collected: Virtual
    domains status: 2 in NAT mode, 0 in TP mode

    [2888572] 2025-03-18 20:35:50 debug output collected: Virtual
    domain configuration: split-task

    [2888572] 2025-03-18 20:35:50 debug output collected: FIPS-CC
    mode: disable

    [2888572] 2025-03-18 20:35:50 debug output collected: Current HA
    mode: a-p, primary

    [2888572] 2025-03-18 20:35:50 debug output collected: Cluster
    uptime: 1221 days, 20 hours, 22 minutes, 58 seconds

    [2888572] 2025-03-18 20:35:50 debug output collected: Cluster
    state change time: 2022-11-26 20:06:54

    [2888572] 2025-03-18 20:35:50 debug output collected: Branch
    point: 0418

    [2888572] 2025-03-18 20:35:50 debug output collected: Release
    Version Information: GA

    [2888572] 2025-03-18 20:35:50 debug output collected: FortiOS
    x86-64: Yes

    [2888572] 2025-03-18 20:35:50 debug output collected: System time:
    Wed Mar 19 04:35:50 2025

    [2888572] 2025-03-18 20:35:50 debug output collected: Last reboot
    reason: warm reboot

    [2888572] 2025-03-18 20:35:50 debug output collected: Fortinet-UUT-FW

    [2888572] 2025-03-18 20:35:50 debug output collected: get system arp

    [2888572] 2025-03-18 20:35:50 debug output collected: command
    parse error before 'arp'

    [2888572] 2025-03-18 20:35:50 debug output collected: Command
    fail. Return code -61

    [2888572] 2025-03-18 20:35:50 debug output collected: Fortinet-UUT-FW


Well it looks like you have a setup that is new to this script, it actually checks for "Virtual domain configuration: multiple" to decide to enter VDOM mode. You'd need to experiment a bit, maybe it works if you just change line 146 of lib/App/Netdisco/SSHCollector/Platform/FortiOS.pm to


if ($_ && /^Virtual domain configuration: (multiple|split-task)$/) {


Unfortunately I'm not deep enough into Fortinet to know if other changes would be needed or if this split-task setup will work nicely with the commands the module is sending, you'll have to experiment a bit.

Cheers
Christian


--
Christian Ramseyer, netnea ag
Network Management. Security. OpenSource.
https://www.netnea.com
Phone: +41 79 644 77 64

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to