Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
shaun23
New Contributor II

Filesystem Disk Check CLI

Hi,

 

I need to run a filesystem disk check on our Fortigates, the easy way out is to just select 'Reboot and scan disk now' button upon first logging in, but I want to do this from the CLI. I'm running FortiOS 5.4.

 

When I attempt to check the disk via CLI this is what I see:

 

FGT1 # execute disk scan 1 Invalid reference number 1: not exist, check 'disk list'. Command fail. Return code -39 FGT1 # execute disk list Disk HDD1            ref:  16 111.8GB    type: SSD [ATA F2CSTK251M3T-012] dev:/dev/sdb   partition ref:  17 110.0GB, 109.9GB free  mounted: Y  label: LOGUSEDX79799EA7 dev: /dev/sdb1 start: 63 Disk HDD2            ref:  32 111.8GB    type: SSD [ATA F2CSTK251M3T-012] dev:/dev/sdc   partition ref:  33 110.0GB, 109.9GB free  mounted: Y  label:WANOPTXX72DC00F4 dev: /dev/sdc1 start: 63 FGT1 # execute disk scan HDD1 Invalid parameters HDD1, must be '-rj', '-ij'. Command fail. Return code -39

 

Any ideas on what the -rj and -ij arguments do? I can't see any reference to them in the FortiOS 5.4 documentation.

 

Cheers

Shaun

 

 

 

4 REPLIES 4
GusTech
Contributor II

 

exec disk scan ref

ref is only number from list disk integer

Fortigate <3

Fortigate <3
Yngve0
New Contributor II

Try using the ref;

"execute disc scan 16"

"execute disk scan 32"

shaun23
New Contributor II

Whoops!

 

Yes I see now, thanks both!

sfrati
Staff
Staff
Top Kudoed Authors