tech note

インフラ技術や車についてつぶやいていくブログ

SRX EX ssh/telnet滞留セッションの確認方法とClearの方法

確認コマンド

show system users

Clearコマンド

request system logout terminal [TTY]

実行例

root@srx-node0> show system users
node0:
--------------------------------------------------------------------------
 6:23PM  up 17 days, 23:56, 2 users, load averages: 0.01, 0.09, 0.07
USER     TTY      FROM                              LOGIN@  IDLE WHAT
root     p0       10.2.1.1                         6:16PM      6 -cli (cli) ←滞留セッション
root     p1       10.2.1.1                         6:19PM      - -cli (cli)

node1:
--------------------------------------------------------------------------
 6:23PM  up 17 days, 23:56, 0 users, load averages: 0.20, 0.11, 0.03

{primary:node0}
root@lab-srx-node0> request system logout terminal p0 ←Clearコマンド


{primary:node0}
root@srx-node0>

{primary:node0}
root@srx-node0> show system users
node0:
--------------------------------------------------------------------------
 6:24PM  up 17 days, 23:56, 1 user, load averages: 0.01, 0.08, 0.06
USER     TTY      FROM                              LOGIN@  IDLE WHAT
root     p1       10.2.1.1                         6:19PM      - -cli (cli)

node1:
--------------------------------------------------------------------------
 6:24PM  up 17 days, 23:56, 0 users, load averages: 0.17, 0.11, 0.03