Fortinet Document Library

Version:


Table of Contents

New Features

6.4.0
Download PDF
Copy Link

SNMP queries to the FortiGate Switch Controller for FortiSwitch and port information 6.4.2

Two new tables are added to the FortiOS Enterprise MIB:

  • FgSwDeviceEntry: Details about connected FortiSwitch devices.
  • FgSwPortEntry: Switch port related information.

FgSwDeviceEntry

Table added to the FortiGate SNMP MIB file:
/ OID: FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSw.fgSwDeviceInfo.fgSwDeviceTable.fgSwDeviceEntry 1.3.6.1.4.1.12356.101.24.1.1.1 /

FgSwDeviceEntry ::= SEQUENCE {
    fgSwDevicePlatform FnIndex,
    fgSwDeviceId FnIndex,
    fgSwDeviceSerialNum DisplayString,
    fgSwDeviceName DisplayString,
    fgSwDeviceVersion DisplayString,
    fgSwDeviceAuthorized FgSwDeviceAuthorizedType,
    fgSwDeviceStatus INTEGER,
    fgSwDeviceJoinTime Gauge32,
    fgSwDeviceIp IpAddress,
    fgSwDeviceFlag DisplayString
}
SNMP response from the FortiGate:
# snmpwalk -v2c -c fortilink 172.16.200.1 1.3.6.1.4.1.12356.101.24.1.1.1
iso.3.6.1.4.1.12356.101.24.1.1.1.3.1.18.16000116 = STRING: "S524DN4K16000116"
iso.3.6.1.4.1.12356.101.24.1.1.1.4.1.18.16000116 = ""
iso.3.6.1.4.1.12356.101.24.1.1.1.5.1.18.16000116 = STRING: "v6.4.1"
iso.3.6.1.4.1.12356.101.24.1.1.1.6.1.18.16000116 = INTEGER: 2
iso.3.6.1.4.1.12356.101.24.1.1.1.7.1.18.16000116 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.1.1.1.8.1.18.16000116 = Gauge32: 1592346680
iso.3.6.1.4.1.12356.101.24.1.1.1.9.1.18.16000116 = IpAddress: 169.254.1.2
iso.3.6.1.4.1.12356.101.24.1.1.1.10.1.18.16000116 = STRING: "-"

FgSwPortEntry

Table added to the FortiGate SNMP MIB file:
/ OID: FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSw.fgSwPortInfo.fgSwPortTable.fgSwPortEntry 1.3.6.1.4.1.12356.101.24.2.1.1 /

FgSwPortEntry ::= SEQUENCE {
    fgSwPortSwitchPlatform FnIndex,
    fgSwPortSwitchId FnIndex,
    fgSwPortNum FnIndex,
    fgSwPortSwitchSerialNum DisplayString,
    fgSwPortName DisplayString,
    fgSwPortStatus INTEGER,
    fgSwPortSpeedDuplex DisplayString,
    fgSwPortNativeVlan Integer32,
    fgSwPortAllowedVlan DisplayString,
    fgSwPortUntaggedVlan DisplayString,
    fgSwPortPOE INTEGER,
    fgSwPortPOEStatus INTEGER,
    fgSwPortPOEState DisplayString,
    fgSwPortPOEPower DisplayString
}
SNMP response from the FortiGate:
# snmpwalk -v2c -c fortilink 172.16.200.1 1.3.6.1.4.1.12356.101.24.2.1.1

iso.3.6.1.4.1.12356.101.24.2.1.1.4.1.18.16000116.1 = STRING: "S524DN4K16000116"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.4.1.18.16000116.30 = STRING: "S524DN4K16000116"
iso.3.6.1.4.1.12356.101.24.2.1.1.5.1.18.16000116.1 = STRING: "port1"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.5.1.18.16000116.30 = STRING: "port30"
iso.3.6.1.4.1.12356.101.24.2.1.1.6.1.18.16000116.1 = INTEGER: 1
...
iso.3.6.1.4.1.12356.101.24.2.1.1.6.1.18.16000116.30 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.1 = STRING: "auto"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.24 = STRING: "auto"
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.25 = STRING: "auto-module"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.28 = STRING: "auto-module"
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.29 = STRING: "40000"
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.30 = STRING: "40000"
iso.3.6.1.4.1.12356.101.24.2.1.1.8.1.18.16000116.1 = INTEGER: 1
...
iso.3.6.1.4.1.12356.101.24.2.1.1.8.1.18.16000116.30 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.2.1.1.9.1.18.16000116.1 = STRING: "4093"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.9.1.18.16000116.30 = STRING: "4093"
iso.3.6.1.4.1.12356.101.24.2.1.1.10.1.18.16000116.1 = STRING: "4093"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.10.1.18.16000116.30 = STRING: "4093"
iso.3.6.1.4.1.12356.101.24.2.1.1.11.1.18.16000116.1 = INTEGER: 0
...
iso.3.6.1.4.1.12356.101.24.2.1.1.11.1.18.16000116.30 = INTEGER: 0
iso.3.6.1.4.1.12356.101.24.2.1.1.12.1.18.16000116.1 = INTEGER: 1
...
iso.3.6.1.4.1.12356.101.24.2.1.1.12.1.18.16000116.30 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.2.1.1.13.1.18.16000116.1 = STRING: "Disabled"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.13.1.18.16000116.30 = STRING: "Disabled"
iso.3.6.1.4.1.12356.101.24.2.1.1.14.1.18.16000116.1 = STRING: "0.000000"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.14.1.18.16000116.30 = STRING: "0.000000"

SNMP queries to the FortiGate Switch Controller for FortiSwitch and port information 6.4.2

Two new tables are added to the FortiOS Enterprise MIB:

  • FgSwDeviceEntry: Details about connected FortiSwitch devices.
  • FgSwPortEntry: Switch port related information.

FgSwDeviceEntry

Table added to the FortiGate SNMP MIB file:
/ OID: FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSw.fgSwDeviceInfo.fgSwDeviceTable.fgSwDeviceEntry 1.3.6.1.4.1.12356.101.24.1.1.1 /

FgSwDeviceEntry ::= SEQUENCE {
    fgSwDevicePlatform FnIndex,
    fgSwDeviceId FnIndex,
    fgSwDeviceSerialNum DisplayString,
    fgSwDeviceName DisplayString,
    fgSwDeviceVersion DisplayString,
    fgSwDeviceAuthorized FgSwDeviceAuthorizedType,
    fgSwDeviceStatus INTEGER,
    fgSwDeviceJoinTime Gauge32,
    fgSwDeviceIp IpAddress,
    fgSwDeviceFlag DisplayString
}
SNMP response from the FortiGate:
# snmpwalk -v2c -c fortilink 172.16.200.1 1.3.6.1.4.1.12356.101.24.1.1.1
iso.3.6.1.4.1.12356.101.24.1.1.1.3.1.18.16000116 = STRING: "S524DN4K16000116"
iso.3.6.1.4.1.12356.101.24.1.1.1.4.1.18.16000116 = ""
iso.3.6.1.4.1.12356.101.24.1.1.1.5.1.18.16000116 = STRING: "v6.4.1"
iso.3.6.1.4.1.12356.101.24.1.1.1.6.1.18.16000116 = INTEGER: 2
iso.3.6.1.4.1.12356.101.24.1.1.1.7.1.18.16000116 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.1.1.1.8.1.18.16000116 = Gauge32: 1592346680
iso.3.6.1.4.1.12356.101.24.1.1.1.9.1.18.16000116 = IpAddress: 169.254.1.2
iso.3.6.1.4.1.12356.101.24.1.1.1.10.1.18.16000116 = STRING: "-"

FgSwPortEntry

Table added to the FortiGate SNMP MIB file:
/ OID: FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSw.fgSwPortInfo.fgSwPortTable.fgSwPortEntry 1.3.6.1.4.1.12356.101.24.2.1.1 /

FgSwPortEntry ::= SEQUENCE {
    fgSwPortSwitchPlatform FnIndex,
    fgSwPortSwitchId FnIndex,
    fgSwPortNum FnIndex,
    fgSwPortSwitchSerialNum DisplayString,
    fgSwPortName DisplayString,
    fgSwPortStatus INTEGER,
    fgSwPortSpeedDuplex DisplayString,
    fgSwPortNativeVlan Integer32,
    fgSwPortAllowedVlan DisplayString,
    fgSwPortUntaggedVlan DisplayString,
    fgSwPortPOE INTEGER,
    fgSwPortPOEStatus INTEGER,
    fgSwPortPOEState DisplayString,
    fgSwPortPOEPower DisplayString
}
SNMP response from the FortiGate:
# snmpwalk -v2c -c fortilink 172.16.200.1 1.3.6.1.4.1.12356.101.24.2.1.1

iso.3.6.1.4.1.12356.101.24.2.1.1.4.1.18.16000116.1 = STRING: "S524DN4K16000116"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.4.1.18.16000116.30 = STRING: "S524DN4K16000116"
iso.3.6.1.4.1.12356.101.24.2.1.1.5.1.18.16000116.1 = STRING: "port1"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.5.1.18.16000116.30 = STRING: "port30"
iso.3.6.1.4.1.12356.101.24.2.1.1.6.1.18.16000116.1 = INTEGER: 1
...
iso.3.6.1.4.1.12356.101.24.2.1.1.6.1.18.16000116.30 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.1 = STRING: "auto"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.24 = STRING: "auto"
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.25 = STRING: "auto-module"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.28 = STRING: "auto-module"
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.29 = STRING: "40000"
iso.3.6.1.4.1.12356.101.24.2.1.1.7.1.18.16000116.30 = STRING: "40000"
iso.3.6.1.4.1.12356.101.24.2.1.1.8.1.18.16000116.1 = INTEGER: 1
...
iso.3.6.1.4.1.12356.101.24.2.1.1.8.1.18.16000116.30 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.2.1.1.9.1.18.16000116.1 = STRING: "4093"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.9.1.18.16000116.30 = STRING: "4093"
iso.3.6.1.4.1.12356.101.24.2.1.1.10.1.18.16000116.1 = STRING: "4093"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.10.1.18.16000116.30 = STRING: "4093"
iso.3.6.1.4.1.12356.101.24.2.1.1.11.1.18.16000116.1 = INTEGER: 0
...
iso.3.6.1.4.1.12356.101.24.2.1.1.11.1.18.16000116.30 = INTEGER: 0
iso.3.6.1.4.1.12356.101.24.2.1.1.12.1.18.16000116.1 = INTEGER: 1
...
iso.3.6.1.4.1.12356.101.24.2.1.1.12.1.18.16000116.30 = INTEGER: 1
iso.3.6.1.4.1.12356.101.24.2.1.1.13.1.18.16000116.1 = STRING: "Disabled"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.13.1.18.16000116.30 = STRING: "Disabled"
iso.3.6.1.4.1.12356.101.24.2.1.1.14.1.18.16000116.1 = STRING: "0.000000"
...
iso.3.6.1.4.1.12356.101.24.2.1.1.14.1.18.16000116.30 = STRING: "0.000000"