FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
wdeloraine_FTNT
Article Id 378494
Description This article describes how to get power supply information via SNMP on chassis-based FortiGate-7000F.
Scope FortiGate-7000F series.
Solution

Information about the power supply unit (PSU) could be retrieved by SNMP using those 2 OIDs:

 

  1. FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSystem.fgHwSensors.fgHwSensorTable.fgHwSensorEntry.fgHwSensorEntName 1.3.6.1.4.1.12356.101.4.3.2.1.2
  2. FORTINET-FORTIGATE-MIB:fortinet.fnFortiGateMib.fgSystem.fgHwSensors.fgHwSensorTable.fgHwSensorEntry.fgHwSensorEntValue 1.3.6.1.4.1.12356.101.4.3.2.1.3

 

Here is an example of an FIM polling for 6 PSU on a FortiGate-7000F chassis:

 

This will display the mapping between the ID of the PSU and its name.

 

w@EU:~$ snmpwalk -v 3 -l noAuthNoPriv -u w 1.5.4.1 1.3.6.1.4.1.12356.101.4.3.2.1.2 | grep Status
iso.3.6.1.4.1.12356.101.4.3.2.1.2.21 = STRING: "PS1 Status"
iso.3.6.1.4.1.12356.101.4.3.2.1.2.30 = STRING: "PS2 Status"
iso.3.6.1.4.1.12356.101.4.3.2.1.2.39 = STRING: "PS3 Status"
iso.3.6.1.4.1.12356.101.4.3.2.1.2.48 = STRING: "PS4 Status"
iso.3.6.1.4.1.12356.101.4.3.2.1.2.57 = STRING: "PS5 Status"
iso.3.6.1.4.1.12356.101.4.3.2.1.2.66 = STRING: "PS6 Status"

 

This will display the PSU status. A return '1' means that the PSU is operational:


w@EU:~$ snmpwalk -v 3 -l noAuthNoPriv -u w 1.5.4.1 1.3.6.1.4.1.12356.101.4.3.2.1.3.21
iso.3.6.1.4.1.12356.101.4.3.2.1.3.21 = STRING: "1"
w@EU:~$ snmpwalk -v 3 -l noAuthNoPriv -u w 1.5.4.1 1.3.6.1.4.1.12356.101.4.3.2.1.3.30
iso.3.6.1.4.1.12356.101.4.3.2.1.3.30 = STRING: "1"
w@EU:~$ snmpwalk -v 3 -l noAuthNoPriv -u w 1.5.4.1 1.3.6.1.4.1.12356.101.4.3.2.1.3.39
iso.3.6.1.4.1.12356.101.4.3.2.1.3.39 = STRING: "1"
w@EU:~$ snmpwalk -v 3 -l noAuthNoPriv -u w 1.5.4.1 1.3.6.1.4.1.12356.101.4.3.2.1.3.48
iso.3.6.1.4.1.12356.101.4.3.2.1.3.48 = STRING: "1"
w@EU:$ snmpwalk -v 3 -l noAuthNoPriv -u w 1.5.4.1 1.3.6.1.4.1.12356.101.4.3.2.1.3.57
iso.3.6.1.4.1.12356.101.4.3.2.1.3.57 = STRING: "1"
w@EU~$ snmpwalk -v 3 -l noAuthNoPriv -u w 1.5.4.1 1.3.6.1.4.1.12356.101.4.3.2.1.3.66
iso.3.6.1.4.1.12356.101.4.3.2.1.3.66 = STRING: "1"

 

The stability for getting those values has been improved in v7.2.11, v7.4.8, and v7.6.3.

 

Related document:

Resolved issues