Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Killing a console session remotely

    Posted 08-26-2010 11:42

    I have a few switches deployed where someone in our department was logged in via console and just disconnected without logging out.  I get messages like:

     

    Entering configuration mode
    Users currently editing the configuration:
      root terminal u0 (pid 934) on since 2010-02-25 06:54:55 PST, idle 26w0d 03:29
          {master:0}[edit]

    I want to kill the session without having to reconnect to the console.  My thought is to just issue a 'kill 934' from the CLI but I want to be sure I don't break anything.  Here's the output of ps-aux

     

    root     934  0.0  1.3 39532 13420  ??  Is   25Feb10   0:05.37 mgd: (mgd) (root)/dev/ttyu0 (mgd)

     

    Thanks in advance.



  • 2.  RE: Killing a console session remotely
    Best Answer

    Posted 08-26-2010 12:13

    Did you try something like this:

     

    root@sriracha> show system users no-resolve

     

    and then:

     

    root@sriracha> request system logout user <item>

     

    Where '<item>' would be one of the following:

     

    • all - all sessions owned by the named user
    • pid - management session process ID
    • terminal - terminal the user is logged into
    • user - the name of the user


  • 3.  RE: Killing a console session remotely

    Posted 08-26-2010 13:07

    That is exactly what I was looking for.  I entered the commands and it worked perfectly. 

     

    I did KB and Google searches but my search parameters were incorrect to give me an answer.

     

    Thanks again for the help.