Max remote sessions for login:admin is 2解决方法

2017年8月11日 发表评论 阅读评论

一、问题现象

市面上的交换机大部分都是OEM的博科的,现网一台光交在同事在使用admin帐号登录两次,未执行logout退出时,出现了“Sorry! Max remote sessions for login:admin is 2 ” 的报错,具体如下:

max-remote-session

二、解决方法

brocade的官方论坛上 ,有人给出了解决方法。具体就是换用root用户进行登录,进入后通过telnetkill命令将admin 的session强制杀掉就行了。操作如下:

swd77:FID128:root>
swd77:FID128:root> who
admin    pts/0    Aug 10 16:04
admin    pts/1    Aug 10 16:53
root     pts/2    Aug 10 17:41
swd77:FID128:root> i |grep pts
4 S     0  7807  7803  0  76   0 -  1422 -      pts/0    00:00:00 rbash
0 S     0  8040  7807  0  76   0 -   530 -      pts/0    00:00:00 more
4 S     0  8544  8541  0  76   0 -  1422 -      pts/1    00:00:00 rbash
0 S     0  8959  8544  0  75   0 -   530 -      pts/1    00:00:00 more
4 S     0  9839  9836  0  75   0 -   735 -      pts/2    00:00:00 sh
4 R     0  9928  9839  0  79   0 -  3532 -      pts/2    00:00:00 i
0 S     0  9929  9839  0  75   0 -   437 -      pts/2    00:00:00 grep
0 R     0  9932  9928  0  79   0 -   557 -      pts/2    00:00:00 ps
swd77:FID128:root> killtelnet
Collecting login information....
                   List of sessions (3 found)
______________________________________________________________________________
 Session No   USER     TTY      IDLE     LOGIN@ FROM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     0        admin    pts/0    1:37m    16:04  10.211.59.91
     1        admin    pts/1    35:24    16:53  10.211.59.91
     2        root     pts/2    0.00s    17:41  10.212.52.253
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter Session Number to terminate (q to quit) 0
______________________________________________________________________________
 USER     TTY      IDLE     LOGIN@ FROM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 admin    pts/0    1:37m    16:04  10.211.59.91
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Confirm Kill Session (Y/[N]): y
Killing Session....  Done!
Collecting login information....
                   List of sessions (2 found)
______________________________________________________________________________
 Session No   USER     TTY      IDLE     LOGIN@ FROM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     0        admin    pts/1    35:33    16:53  10.211.59.91
     1        root     pts/2    0.00s    17:41  10.212.52.253
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter Session Number to terminate (q to quit) 0
______________________________________________________________________________
 USER     TTY      IDLE     LOGIN@ FROM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 admin    pts/1    35:33    16:53  10.211.59.91
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Confirm Kill Session (Y/[N]): y
Killing Session....  Done!
Collecting login information....
                   List of sessions (1 found)
______________________________________________________________________________
 Session No   USER     TTY      IDLE     LOGIN@ FROM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     0        root     pts/2    0.00s    17:41  10.212.52.253
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter Session Number to terminate (q to quit) q
swd77:FID128:root> 

三、其他

出于安全考虑,以上这个现象是在正常的,root用户没有这个限制。Brocade文档对每个用户限制如下:

Maximum number of simultaneous sessions
Role name Maximum sessions
Admin 2
BasicSwitchAdmin 4
FabricAdmin 4
Operator 4
SecurityAdmin 4
SwitchAdmin 4
User 4
ZoneAdmin 4




本站的发展离不开您的资助,金额随意,欢迎来赏!

分类: 平台架构 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.