Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2970

FX-OS (FTD mode, lina kernel) port parsing

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • Poller
    • None

    Description

      LINA instance of an FX-OS chassis (ftd mode) uses different port labels

      Examples:
      Adaptive Security Appliance 'outside' interface
      Adaptive Security Appliance 'Ethernet1/13
      Adaptive Security Appliance 'Port-Channel13' interface

      for physical interfaces the ' interface is cut off (i guess a bug), hence the exclusion of ' in the match

      Parsing:

      $os = "cisco-firepower";
      $config['os'][$os]['port_label'][] = '/Adaptive Security Appliance \'([^\']+)/i'; // Adaptive Security Appliance 'Port-Channel13' interface

      tested & can confirm it works

      Attachments

        Activity

          [OBS-2970] FX-OS (FTD mode, lina kernel) port parsing

          Ok, tnx.
          Added in r9791.

          landy Mike Stupalov added a comment - Ok, tnx. Added in r9791.

          ifdescr:

          Adaptive Security Appliance 'Port-channel11' interface
          Adaptive Security Appliance 'Ethernet1/9' interface
          Adaptive Security Appliance 'Ethernet1/8' interface
          Adaptive Security Appliance 'Ethernet1/7' interface
          Adaptive Security Appliance 'Ethernet1/6' interface
          Adaptive Security Appliance 'Ethernet1/5' interface
          Adaptive Security Appliance 'Ethernet1/4' interface
          Adaptive Security Appliance 'Ethernet1/3' interface
          Adaptive Security Appliance 'Ethernet1/2' interface
          Adaptive Security Appliance 'Ethernet1/16' interface
          Adaptive Security Appliance 'Ethernet1/15' interface
          Adaptive Security Appliance 'Ethernet1/10' interface
          Adaptive Security Appliance 'Ethernet1/1' interface
          Adaptive Security Appliance 'diagnostic' interface

          Seems like the 'interface is not bugging here and you can regex using /Adaptive Security Appliance '(.+)' interface/

          ifname for Adaptive Security Appliance 'Ethernet1/1' interface would be Adaptive Security Appliance 'Ethernet1/1

          lina on ftd is based on asa but they have seem to raped it somehow and a lot of crap like this is different from regular ASA

          rendest Stef Renders added a comment - ifdescr: Adaptive Security Appliance 'Port-channel11' interface Adaptive Security Appliance 'Ethernet1/9' interface Adaptive Security Appliance 'Ethernet1/8' interface Adaptive Security Appliance 'Ethernet1/7' interface Adaptive Security Appliance 'Ethernet1/6' interface Adaptive Security Appliance 'Ethernet1/5' interface Adaptive Security Appliance 'Ethernet1/4' interface Adaptive Security Appliance 'Ethernet1/3' interface Adaptive Security Appliance 'Ethernet1/2' interface Adaptive Security Appliance 'Ethernet1/16' interface Adaptive Security Appliance 'Ethernet1/15' interface Adaptive Security Appliance 'Ethernet1/10' interface Adaptive Security Appliance 'Ethernet1/1' interface Adaptive Security Appliance 'diagnostic' interface Seems like the 'interface is not bugging here and you can regex using /Adaptive Security Appliance '(.+)' interface/ ifname for Adaptive Security Appliance 'Ethernet1/1' interface would be Adaptive Security Appliance 'Ethernet1/1 lina on ftd is based on asa but they have seem to raped it somehow and a lot of crap like this is different from regular ASA
          landy Mike Stupalov added a comment - - edited

          It's ok, but I want to see compare ifName vs ifDescr, probably better just use ifName for labels.

          Like as for Cisco ASA.

          landy Mike Stupalov added a comment - - edited It's ok, but I want to see compare ifName vs ifDescr , probably better just use ifName for labels. Like as for Cisco ASA.
          rendest Stef Renders added a comment - - edited

          Before:

          +---------+---------------------------+-----------------------------+--------+----------+----------+---------+----------+--------+---------+----+
          | ifIndex | Label                     | Type                        | Speed  | BPS In   | BPS Out  | Data In | Data Out | PPS In | PPS Out | HC |
          +---------+---------------------------+-----------------------------+--------+----------+----------+---------+----------+--------+---------+----+
          | 3       | Adaptive Security Applian | Ethernet                    | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'diagnostic' interface |                             |        |          |          |         |          |        |         |    |
          | 6       | Adaptive Security Applian | Virtual/Internal            | 2Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Po11' interface       |                             |        |          |          |         |          |        |         |    |
          | 7       | Adaptive Security Applian | Virtual/Internal            | 20Gbps | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Po13' interface       |                             |        |          |          |         |          |        |         |    |
          #redacted#
          | 14      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/1                 |                             |        |          |          |         |          |        |         |    |
          | 15      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/2                 |                             |        |          |          |         |          |        |         |    |
          | 16      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/3                 |                             |        |          |          |         |          |        |         |    |
          | 17      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/4                 |                             |        |          |          |         |          |        |         |    |
          | 18      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/5                 |                             |        |          |          |         |          |        |         |    |
          | 19      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/6                 |                             |        |          |          |         |          |        |         |    |
          | 20      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/7                 |                             |        |          |          |         |          |        |         |    |
          | 21      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/8                 |                             |        |          |          |         |          |        |         |    |
          | 22      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/9                 |                             |        |          |          |         |          |        |         |    |
          | 23      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/10                |                             |        |          |          |         |          |        |         |    |
          | 24      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/15                |                             |        |          |          |         |          |        |         |    |
          | 25      | Adaptive Security Applian | Virtual/Internal            | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          |         | ce 'Et1/16                |                             |        |          |          |         |          |        |         |    |
          +---------+---------------------------+-----------------------------+--------+----------+----------+---------+----------+--------+---------+----+
          

          After:

          +---------+----------------------+------------------+--------+----------+----------+---------+----------+--------+---------+----+
          | ifIndex | Label                | Type             | Speed  | BPS In   | BPS Out  | Data In | Data Out | PPS In | PPS Out | HC |
          +---------+----------------------+------------------+--------+----------+----------+---------+----------+--------+---------+----+
          | 3       | diagnostic           | Ethernet         | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 6       | Po11                 | Virtual/Internal | 2Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 7       | Po13                 | Virtual/Internal | 20Gbps | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          #redacted#
          | 14      | Et1/1                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 15      | Et1/2                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 16      | Et1/3                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 17      | Et1/4                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 18      | Et1/5                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 19      | Et1/6                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 20      | Et1/7                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 21      | Et1/8                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 22      | Et1/9                | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 23      | Et1/10               | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 24      | Et1/15               | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          | 25      | Et1/16               | Virtual/Internal | 1Gbps  | 0bps     | 0bps     | 0B      | 0B       | 0      | 0       | Y  |
          +---------+----------------------+------------------+--------+----------+----------+---------+----------+--------+---------+----+
          

          rendest Stef Renders added a comment - - edited Before: +---------+---------------------------+-----------------------------+--------+----------+----------+---------+----------+--------+---------+----+ | ifIndex | Label | Type | Speed | BPS In | BPS Out | Data In | Data Out | PPS In | PPS Out | HC | +---------+---------------------------+-----------------------------+--------+----------+----------+---------+----------+--------+---------+----+ | 3 | Adaptive Security Applian | Ethernet | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'diagnostic' interface | | | | | | | | | | | 6 | Adaptive Security Applian | Virtual/Internal | 2Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Po11' interface | | | | | | | | | | | 7 | Adaptive Security Applian | Virtual/Internal | 20Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Po13' interface | | | | | | | | | | #redacted# | 14 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/1 | | | | | | | | | | | 15 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/2 | | | | | | | | | | | 16 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/3 | | | | | | | | | | | 17 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/4 | | | | | | | | | | | 18 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/5 | | | | | | | | | | | 19 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/6 | | | | | | | | | | | 20 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/7 | | | | | | | | | | | 21 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/8 | | | | | | | | | | | 22 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/9 | | | | | | | | | | | 23 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/10 | | | | | | | | | | | 24 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/15 | | | | | | | | | | | 25 | Adaptive Security Applian | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | | ce 'Et1/16 | | | | | | | | | | +---------+---------------------------+-----------------------------+--------+----------+----------+---------+----------+--------+---------+----+ After: +---------+----------------------+------------------+--------+----------+----------+---------+----------+--------+---------+----+ | ifIndex | Label | Type | Speed | BPS In | BPS Out | Data In | Data Out | PPS In | PPS Out | HC | +---------+----------------------+------------------+--------+----------+----------+---------+----------+--------+---------+----+ | 3 | diagnostic | Ethernet | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 6 | Po11 | Virtual/Internal | 2Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 7 | Po13 | Virtual/Internal | 20Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | #redacted# | 14 | Et1/1 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 15 | Et1/2 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 16 | Et1/3 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 17 | Et1/4 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 18 | Et1/5 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 19 | Et1/6 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 20 | Et1/7 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 21 | Et1/8 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 22 | Et1/9 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 23 | Et1/10 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 24 | Et1/15 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | | 25 | Et1/16 | Virtual/Internal | 1Gbps | 0bps | 0bps | 0B | 0B | 0 | 0 | Y | +---------+----------------------+------------------+--------+----------+----------+---------+----------+--------+---------+----+

          Pls show debug for ports, specifically ifDescr, ifName:

          ./poller.php -r -d -m ports -h <device>
          

          landy Mike Stupalov added a comment - Pls show debug for ports, specifically ifDescr, ifName: ./poller.php -r -d -m ports -h <device>

          People

            landy Mike Stupalov
            rendest Stef Renders
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: