FortiADC
FortiADC enhances the scalability, performance, and security of your applications whether they are hosted on premises or in the cloud.
JHelio
Staff
Staff
Article Id 306675
Description This article describes how to identify and restart a specific process in FortiADC.
Scope FortiADC .
Solution
  1. Identify the process with the following command and locate the PID for the process required:

 

diagnose system ps

PID USER VSZ STAT COMMAND
1 root 26964 S /bin/init
2 root 0 SW [kthreadd]
3 root 0 IW [kworker/0:0]
4 root 0 IW< [kworker/0:0H]
6 root 0 IW< [mm_percpu_wq]
7 root 0 SW [ksoftirqd/0]
8 root 0 IW [rcu_sched]
9 root 0 IW [rcu_bh]
10 root 0 SW [migration/0]
11 root 0 SW [watchdog/0]
12 root 0 SW [cpuhp/0]
13 root 0 IW< [netns]
15 root 0 SW [khungtaskd]
16 root 0 SW [oom_reaper]
275 root 0 IW [kworker/0:1]
276 root 0 IW< [writeback]
277 root 0 SW [kcompactd0]
279 root 0 IW< [crypto]
281 root 0 IW< [kblockd]
374 root 0 IW< [ata_sff]
502 root 0 SW [kswapd0]
577 root 0 SW [pgc-monitor]
591 root 0 IW< [cifsiod]
592 root 0 IW< [cifsoplockd]
706 root 0 IW< [kworker/0:1H]
745 root 0 SW [scsi_eh_0]
746 root 0 IW< [scsi_tmf_0]
749 root 0 SW [scsi_eh_1]
750 root 0 IW< [scsi_tmf_1]
753 root 0 IW< [bond0]
755 root 0 IW< [ixgbevf]
839 root 0 IW< [i40e]
841 root 0 IW< [i40evf]
900 root 0 IW< [ipv6_addrconf]
911 root 0 SW [jbd2/ram0-8]
912 root 0 IW< [ext4-rsv-conver]
944 root 0 SW [jbd2/vda1-8]
945 root 0 IW< [ext4-rsv-conver]
948 root 0 SW [jbd2/vdb1-8]
949 root 0 IW< [ext4-rsv-conver]
952 root 0 SW [jbd2/vda3-8]
953 root 0 IW< [ext4-rsv-conver]
1001 root 352m S /bin/cmdbsvr start
2257 root 0 IW< [test]
2306 root 16488 S /bin/syslogd -n -b 99 -s 500
2307 root 16488 S /bin/klogd -n
2308 root 733m S /bin/infod
2309 root 723m S /bin/alertd
2310 root 28540 S /bin/scheduled
2311 root 27716 S /bin/llbd
2312 root 25576 S nginx: master process /bin/nginx
2313 root 28692 S sshd: /bin/sshd [listener] 0 of 10-100 startups
2314 root 27324 S /bin/rtm_daemon_monitord
2315 root 207m S /bin/netd
2316 root 36076 S /bin/updated   
<----- This is the process requiring a restart.
2318 root 81676 S < /bin/av
2319 root 26860 S /bin/forticldd
2321 root 27680 S /bin/ipsmonitor
2322 root 175m S /bin/wafmonitord
2323 root 127m S /bin/apisecd
2324 root 41780 S /bin/autolearnd
2325 root 25560 S /bin/getty tty1
2326 root 25712 S /bin/getty ttyS0 1
2327 root 16488 S /bin/inetd -f
2328 root 121m S /bin/statusd
2329 root 56136 S /bin/gdns
2330 root 29388 S /bin/licd
2331 root 27968 S /bin/gicd
2332 root 28568 S /bin/oicd
2333 root 908m S /bin/ocgs
2334 root 628m S /bin/hasyncd
2335 root 28352 S /bin/awsd
2336 root 51596 S keepalived: hashell
2337 root 930m S /bin/adfsproxy
2340 root 53380 S /bin/acmed
2341 root 353m S /bin/lb
2342 root 48240 S /bin/wvs_cfg_daemon
2343 root 49500 S /bin/scanner_integration
2344 root 34388 S /bin/fnginxctld
2345 root 403m S /bin/authd
2349 root 149m S /bin/miglogd
2350 root 99588 S /bin/fast_statis
2351 root 25436 S /bin/kdbgd
2352 root 25388 S /bin/synconf
2353 root 22772 S /bin/httpclid
2354 root 1430m S /bin/mysqld --defaults-file=/etc/mysql/my.cnf --skip
2355 root 174m S /bin/flg_indexd
2379 root 43232 S /bin/flg_reportd
2380 root 27592 S /bin/flg_accessd
2381 root 24512 S /bin/ntpd
2382 root 88224 S /bin/crlupdated
2383 root 27344 S /bin/snmpd
2384 root 53892 S /bin/dnsd
2386 root 798m S /bin/ptd
2387 root 292m S /bin/restapi_cmdd
2413 root 992m S /bin/restapi 1
2414 root 991m S /bin/restapi 2
2415 root 272m S /bin/sysmd
2416 root 418m S /bin/urlfilter
2417 root 26968 S /bin/lbdns
2418 root 28072 S /bin/ocid
2419 root 23172 S /bin/fasd
2420 root 26768 S /bin/kubed
2427 root 27948 S /bin/sapd
2428 root 16488 S {irqbalance-init} /bin/sh /bin/irqbalance-init
2429 root 77568 S /bin/shell-accessd
2430 root 100m S /bin/csfd
2431 root 56896 S /bin/wassd
2432 root 124m S /bin/fcnacd
2439 root 52488 S /bin/infod
2459 root 367m S < ipshelper c 0
2486 root 52368 S keepalived: main
2499 root 16488 S sleep 3153600
2685 root 60896 S keepalived: checker
2756 root 29244 S /bin/rtmd -d -z /var/run/root_zserv.api -f /migadmin
2936 root 26800 S /bin/ospfd -d -z /var/run/root_zserv.api -f /migadmi
3076 root 59632 S {fnginx} nginx: master process fnginx -p /etc/fnginx
3086 root 98.6m S {fnginx} nginx: worker process
3092 root 28248 S /bin/bgpd -d -z /var/run/root_zserv.api -f /migadmin
3198 root 25628 S /bin/bfdd -d -z /var/run/root_zserv.api -f /migadmin
3355 root 26392 S /bin/ospf6d -d -z /var/run/root_zserv.api -f /migadm
3488 root 362m S < /bin/ipsengine m 1
3625 root 24512 S /bin/ntpd
3626 root 24512 S /bin/ntpd
3823 root 81828 S < /bin/av
3824 root 81828 S < /bin/av
5908 root 0 IW [kworker/u2:1]
10620 root 0 IW [kworker/u2:2]
11080 root 336m S cli admin 0 admin console
11679 root 16488 R ps
12516 root 6172 S /bin/nmon -Z -fT -s 300 -c 288 -m /var/log/nmon_moni
19482 root 26000 S nginx: worker process

 

  1. Enable the shell mode in the FortiADC setting. As an example, user 'ert' and password 12345:

 

config system global
    set shell-access enable
    set shell-username ert
    set shell-password 12345
    set shell-timeout 200
end

 

  1. Access it as follows:

 

ssh ert@x.x.x.x <----- Where x.x.x. is the IP address of the FortiADC.

 

  1. To kill a process like this, run the following command in shell mode using the collected PID:

 

kill 2316


If any process still causes issues after killing it, open a TAC ticket.