Difference between revisions of "Monitoring"
From Tech-Wiki
Line 2: | Line 2: | ||
Viewing logs from command line | Viewing logs from command line | ||
− | exec log filter category | + | exec log filter category 0 (1:event 0:traffic 3:webfilter) |
− | exec log filter device | + | exec log filter device 2 (0:memory 1:faz (fortianalyzer) 2:fds (disk)) |
exec log filter field dstport 443 (or dstip 10.1.1.1) | exec log filter field dstport 443 (or dstip 10.1.1.1) | ||
exec log filter view-lines 200 | exec log filter view-lines 200 |
Revision as of 18:29, 13 February 2017
Viewing logs from command line
exec log filter category 0 (1:event 0:traffic 3:webfilter) exec log filter device 2 (0:memory 1:faz (fortianalyzer) 2:fds (disk)) exec log filter field dstport 443 (or dstip 10.1.1.1) exec log filter view-lines 200 exec log display
Get system information:
get sys status get sys performance status get hardware status diag hardware deviceinfo disk
Get CPU information and killing (restarting) process:
diag sys top diag sys top-summary diag sys kill 11 <pid> (or kill 15)
Get memory information and conserve mode:
diag hardware sysinfo mem diag hardware sysinfo shm 0 – no conserve mode 1 – proxy 2 – system 3 - both diag firewall iprope state Av_break=pass/pass – kernel conserve mode
Get network information and statistics:
show sys interface diag hardware deviceinfo nic <port> fnsysctl ifconfig <port>
Get disk logging statistics:
diag sys logdisk usage
Display IPs blocked by Anomalies:
diag ips anomaly list