| ximbow 回复于:2003-11-08 16:13:50 |
| 好帖 |
| guchengman 回复于:2003-11-08 18:06:14 |
| 自个顶一下. |
| rogerw 回复于:2003-11-08 19:47:33 |
| 不错,我还一直不明白为什么我的工作站一关机,连接到串口的server就停机呢!
谢谢了 |
| mmmmn 回复于:2003-11-08 20:11:03 |
| 可惜,说了半天,没把最好的方法说出来。。。
abort_enable更是好多机器不可能那么使用的 |
| 随意江湖行 回复于:2003-11-08 20:23:34 |
| 好啊!
好长时间不见mmmmmn了! |
| guchengman 回复于:2003-11-08 21:23:22 |
| 最好的办法就是利用我上面所提供的脚本,
安装后就可以用 /etc/init.d/nobreak start (stop) 来启用和停止键盘防中断功能. |
| mmmmn 回复于:2003-11-10 17:18:44 |
| 说过了,你把键盘中断功能完全停止了有时候会很麻烦的。
到sunmanager上找找会有更好的方法 |
| C.Arthur 回复于:2003-11-10 17:24:43 |
| mmmmn赶紧贴个上来吧! |
| mmmmn 回复于:2003-11-10 17:25:40 |
| KICK,偶也是要找的!!!
偶懒 |
| C.Arthur 回复于:2003-11-10 17:29:59 |
| [quote:5202bb6674="mmmmn"]KICK,偶也是要找的!!!
偶懒[/quote:5202bb6674] 不要懒啦,辛苦你一个,幸福千万人,多有价值啊,你就勇敢的去吧,哈哈 在哪里?我也去找找看 |
| mmmmn 回复于:2003-11-10 17:34:29 |
| sunmanager |
| C.Arthur 回复于:2003-11-10 17:37:48 |
| 收到 |
| pegasusw 回复于:2005-06-09 09:54:04 |
| 更好的办法是既不让 termianl/terminalserver 关机影响到 server , 又可以在需要时发送 BREAK 以获得 OK prompt.
原文出处: http://sysunconfig.net/unixtips/alternate_break_sequence.txt 在Netra上没验证该办法可行不可行.哪位试一下吧. ---------------------- Creating an alternate keyboard sequence for the BREAK signal on dumb terminal ----------------------------------------------------------------------------- The following patches introduce a new option to the kbd command --------------------------------------------------------------- Solaris 2.6 patch 105924-10 or greater Solaris 7 patch 107589-02 or greater Solaris 8 patch is integrated The patch allows the keyboard sequence of ~^b to be used instead of the BREAK signal on a dumb terminal console attached to the serial port. The "alternate" flag is not discussed by "man kbd". Here are the instructions to enable the alternate keyboard sequence. Step 1. Install patch 105924-10 on 2.6 and patch 107589-02 on 7. Step 2. reboot the machine. Step 3. A root user can now turn on the alternate break sequence with the following command: #kbd -a alternate Now the new Break sequence is ~^b. Example: To bring the system to the OK prompt (assuming the console is on the serial port) send the following key sequences: # <cr> # ~^b The following procedure will also enable the alternate keyboard sequence Step 1. Install patch 105924-10 on 2.6 and patch 107589-02 on 2.7. Step 2. Modify the /etc/default/kbd file, by removing the # from the entry: #KEYBOARD_ABORT=enable and changing it to: KEYBOARD_ABORT=alternate Step 3. reboot Any user logged in at the dumb console will be able to issue the alternate break signal with the following key sequences: # <cr> # ~^b NOTE: It is not possible to set an alternate BREAK on Netra systems. NOTE: On servers with a physical keyswitch, the alternate BREAK does not work when the key is set to the Secure position. NOTE: Solaris 8 does not require a patch for the new kbd option. "In Solaris 8, the alternate break key is defined by the driver for the serial device (i.e. zs driver). The man page for zs in Solaris 8 says that the alternate break sequence is "<RETURN> ~ ^B" (carriage return - tilde - control B)." |
| pegasusw 回复于:2005-06-09 09:58:20 |
| 根据 http://www.sunhelp.org/unix-sysadmin-resources/sysadmin-faq-sun 的说法, 在输入BREAK序列 <回车> ~ ^B 时, 字符输入的时间间隔应大于 0.5 秒, 且应在5秒内全部输入完. |