Technical Tip: How to get the number of disks used for wanopt using SNMP
| Description | This article describes how to check the number of disks used for WAN Optimization using SNMP. |
| Scope | FortiGate v7.0.x, v7.2.x, v7.4.x, v7.6.x. |
| Solution | Enable the WAN optimization on the FortiGate :
config system storage set usage wanopt next end
The following information can be retrieved by checking the disk partition allocation via Command Line:
diagnose hardware deviceinfo disk
Disk SYSTEM(boot) 2.0GiB type: IDE [Virtio Disk] dev: /dev/vda
Disk Virtual-Disk ref: 16 16.0GiB type: IDE [Virtio Disk] dev: /dev/vdb
Disk Virtual-Disk2 ref: 32 10.0GiB type: IDE [Virtio Disk] dev: /dev/vdc
Total available disks: 3
Verification via SNMPwalk: The wad disk count can be checked using the following SNMPwalk command:
snmpwalk -v2c -c test 10.191.19.120 FORTINET-FORTIGATE-MIB:fgDiskCount
Note: The SNMP fgDiskCount.0 OID description is inaccurate, as it represents the count of WAD disks rather than the total disk count. The OID is applicable only when the device has a disk reserved for WAN optimization. |