Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Not applicable

Delete All Sessions

Hello there, I want to know how i can delete all sessions opened from a particular client IP address, instead of delete single sessions by clicking delete icon on Session Details. Imagine if a client had hundreds of sessions opened. There should be way from CLI. Thanks in Advance. FostiOS v4.0.0,build0092
1 Solution
Not applicable

diagnose sys session filter and diagnose sys session clear are the correct commands.
the command is still not showing any thing. even with context help i cannot see any sessions
These commands only deletes the sessions, it has no output on the CLI. To see the active session use this command: diag sys session list With the list command you can check if the sessions have been deleted.

View solution in original post

5 REPLIES 5
abelio
SuperUser
SuperUser

Hi, use CLI commands:
diagnose sys session filter  ..  
(press ? to find filter options you want to define)
diagnose sys session clear
(clear sessions defined by filter; if you don' t define a filter, it will clear ALL sessions) regards

regards




/ Abel

regards / Abel
Not applicable

Hello Abel, Thanks for the reply i tried the command but the after useing filter it doesnt show anything like if i use diagnose sys session filter src 192.168.11.212 doent show anything i tries other filter optins also but same thing any ideas Best Regards
abelio

diagnose sys session filter src 192.168.11.212 doent show anything i tries other filter optins also but same thing
likely that filter is incomplete and doesn' t match anything; try with no filter a ' diag sys sess list' , see the fields and rewrite the filter accordingly

regards




/ Abel

regards / Abel
Not applicable

hello, the command is still not showing any thing. even with context help i cannot see any sessions but what i had done is: i open a continous ping session from my pc to a internet server. now i can see the sessions but i can see only from my pc where i had open ssh to fortinet and ping. but even i cannot delete any of the sessions using any filter as those filter doest shows anything even. abel had you tried those command yourself. thanks in advanced best regards
Not applicable

diagnose sys session filter and diagnose sys session clear are the correct commands.
the command is still not showing any thing. even with context help i cannot see any sessions
These commands only deletes the sessions, it has no output on the CLI. To see the active session use this command: diag sys session list With the list command you can check if the sessions have been deleted.
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors