• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

SCO OpenServer下的终端监控系统-Spy FileSystem

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 23次 | 进入软件测试论坛讨论

领测软件测试网
作者:yeungxl 发表时间:2002/12/29 11:27am
------------------------------------------------------- 
作为系统管理员,有时候需要进行系统紧急维护,但系统用户众多,
很难一一通知,即使可以通过使用wall等命令发消息给用户,但如果
碰到用户不在电脑前就比较麻烦了.
为此,多番寻找可以远程控制登录用户的软件,终于发现了SPY文件
系统,下载连接:
ftp://stage.caldera.com/TLS/tls604.tar.Z
SPY的英文说明:

SPY is a suite of programs that allows you to passively and silently observe 
what users are typing on the system. You can observe each keystroke, the entire
screen as they see it being drawn, or even inject keys into their program as 
if they typed it. A special mode allows you to observe the complete 
contents of any multiscreen on the system, with or without 6845 attribute 
bytes, allowing color, underline, or blink information on the other tty 
to be shown as well. 

SPY is completely passive to the user and program and runs under any tty 
device (console, serial, pseudo, etc.). 
SPY cannot monitor a console that is in graphics mode. 

SPY is implemented as an SVR3 filesystem for Open Server Release 5.0, 
dynamically creating all necessary directories and files. This allows 
standard UNIX tools like cat, dd, hd, etc. to use all of SPY’s features 
and allows you to write your own custom tools. Most of SPY’s features can 
even be used across NFS, allowing for remote monitoring and controlling 
of programs and users from another machine. 


注意:
安装后千万不要未经告知远程控制同事使用的机器,尤其是
有心脏问题的同事,切记!
仅在SCO OpenServer 5.0.4上测试通过,其它版本请自己测
试.
请先在非正式使用服务器上测试,一切后果,概不负责!

安装步骤需要以root用户登录)
1) 解压缩:
uncompress tls604.tar.Z
tar xvf tls604.tar
(当前目录下分别生成spyfs-1.1、arpwatch、dumpscreen、
sockinfo、tcpdump等目录)
2) 安装:
cd spyfs-1.1
(为保险起见,请先阅读README) 
# ./installit
Installing the SPY package
Installing new header files
Installing new command files
Installing SPY driver files
SPY installed. You still need to relink a new kernel and reboot.

After this message, relink your kernel, answering ’y’ to everything.
# /etc/conf/cf.d/link_unix
关闭系统重新启动,如果安装正常,启动时有以下信息:
fsstat: SPY filesystem unmounted and ok
fsstat: mounted /spy
3) 使用:
监控终端: spyon
usage: spyon [options] name:number
or : spyon [options] ttyname
where options are any of the following:
-r show raw queue contents and quit
-c show canonical queue contents and quit
-o show output queue contents and quit
-a show all 3 queue contents and quit
-l list available spynames for using ’name:number’ format
-m mountpoint use this mountpoint instead of /spy
-z use with -r, -c, or -o: don’t quit

还有spysend、spycons、spycontrol等命令,具体使用参见README.

 idragon 回复于:2003-02-20 20:00:38
斑主,down不了呀!还有没有别的地址能down?

 longxm 回复于:2003-02-20 21:55:32
可以DOWN,我已经DOWN了

 muzx 回复于:2003-02-20 22:20:13
我也DOWN了!
3KU。

 idragon 回复于:2003-02-23 19:26:03
正在连接 stage.caldera.com:21
正在连接 stage.caldera.com [IP=216.250.128.37:21]

这个IP根本ping不通嘛,怎么down?

 simonzhan 回复于:2003-02-23 19:49:13
谢谢,收到了。

 流云飞渡 回复于:2003-02-23 21:09:56
我执行了一下,可是报错了。这是怎么回事呢?
# spyon /dev/tty01
couldn't chdir to directory /spy/console/0; errno=2
chdir: No such file or directory

 simonzhan 回复于:2003-02-23 23:39:33
你的系统是否有这个目录和文件/spy/console/0?

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网