Skip to main content
Contributor
May 9, 2009
Solved

Delete All Sessions

  • May 9, 2009
  • 4 replies
  • 47831 views
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
    Best answer by Anonymous_User
    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.

    4 replies

    abelio
    SuperUser
    SuperUser
    May 9, 2009
    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
    Contributor
    May 10, 2009
    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
    SuperUser
    SuperUser
    May 10, 2009
    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
    Contributor
    May 17, 2009
    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
    Anonymous_UserAuthorAnswer
    Contributor
    May 17, 2009
    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.