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
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
exec disk scan ref
ref is only number from list disk integer
Fortigate <3
Try using the ref;
"execute disc scan 16"
"execute disk scan 32"
Whoops!
Yes I see now, thanks both!
You can also force it on next reboot:
https://community.fortinet.com/t5/FortiGate/Technical-Tip-Run-a-File-System-Check-automatically/ta-p...
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1688 | |
1087 | |
752 | |
446 | |
227 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.