Log a User Out of the Router
Purpose
Disconnect a user session when that session does not terminate after the user logs out.
Action
To log a user out of all terminal sessions on a router, enter the following JUNOS CLI operational mode command:
user@host>request system logoutusernameSample Output
user@host>show system users10:07PM up 13 days, 1:25, 2 users, load averages: 0.17, 0.05, 0.02USER TTY FROM LOGIN@ IDLE WHATharry p0 hpot-lt.cmpy.net 10:07PM - -cli (clwizard p1 hpot-lt.cmpy.net 10:06PM - -cli (cluser@host>request system logout user harryuser@host>show system users10:07PM up 13 days, 1:25, 1 user, load averages: 0.24, 0.06, 0.02USER TTY FROM LOGIN@ IDLE WHATwizard p1 hpot-lt.cmpy.net 10:06PM - -cli (clWhat It Means
The sample output for the first
show system userscommand shows there were two users on the router,harryandwizard. Therequest system logout usercommand was issued to log out userharry.Because there is no output to indicate thatharrywas logged out, theshow system userscommand was issued again to verify that userharrywas actually logged out of the router.