运维辅助组件

最近更新时间:2018-06-14 16:55:18

运维辅助组件用途

运维辅助组件(TsysAgent) 是黑石物理机运维管理功能的基础组件,主要用于支撑重置密码、下发 EIP 隧道配置等功能。

安全性说明

  • Tsysagent 由腾讯云权限管理平台统一保护。
  • 用户权限约束,仅执行用户发起的重置密码等指定操作。

缺失影响

  • 无法控制台改密码,忘记主机密码的情况下,需重装系统以重置密码。
  • 无法使用 自定义脚本 功能。

TsysAgent 安装(重装修复)指引

windows 版本

单击 链接 下载安装包。

注意
该链接请于黑石服务器中访问下载。

下载完成后解压 zip 包。

双击 install.bat 文件进行安装即可。

如需验证进程与端口,可打开我的电脑,在地址栏输入 "cmd" 并回车。

输入命令 tasklist 回车,可以看到 Tsys.exe TsysProxy.exe.

输入命令 netstat 并回车,可以看到 48369 42222 43333 端口。

Linux 版本

在命令行终端下执行相关命令 下载安装包
执行 wget http://mirrors.tencentyun.com/install/monitor_bm/TsysAgent_64.tar.gz .

[root@centos ~]# wget http://mirrors.tencentyun.com/install/monitor_bm/TsysAgent_64.tar.gz
--2017-06-09 16:17:52--  http://mirrors.tencentyun.com/install/monitor_bm/TsysAgent_64.tar.gz
Resolving mirrors.tencentyun.com (mirrors.tencentyun.com)... 10.112.65.62
Connecting to mirrors.tencentyun.com (mirrors.tencentyun.com)|10.112.65.62|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1969862 (1.9M) [application/octet-stream]
Saving to: 'TsysAgent_64.tar.gz'

100%[==========================================================================================================>] 1,969,862   7.87MB/s   in 0.2s   

2017-06-09 16:17:52 (7.87 MB/s) - 'TsysAgent_64.tar.gz' saved [1969862/1969862]

执行 tar xzpf TsysAgent_64.tar.gz ,进行解压。

[root@centos ~]# tar xzpf TsysAgent_64.tar.gz
[root@centos ~]# ls
TsysAgent_64.tar.gz  TsysAgent_BS_64.tar.gz  install.sh

执行 ./install.sh ,进行安装。

[root@centos ~]# ./install.sh
TsysAgent/
TsysAgent/upload/
TsysAgent/upload_bak/
TsysAgent/log/
TsysAgent/bin/
TsysAgent/bin/unstalltscagent.sh
TsysAgent/bin/start.sh
TsysAgent/bin/rtsvr.crt
TsysAgent/bin/tsysca.pub
TsysAgent/bin/.sessions/
TsysAgent/bin/.sessions/127.0.0.1:42222_0
TsysAgent/bin/.sessions/127.0.0.1:42222_1
TsysAgent/bin/pamcheck
TsysAgent/bin/sha512sum
TsysAgent/bin/.safe_TsysProxy_sh.pid
TsysAgent/bin/rsa_pri_key
TsysAgent/bin/agent_tsys_1.crt
TsysAgent/bin/rtsvrpri.key
TsysAgent/bin/netstat.sh
TsysAgent/bin/restart.sh
TsysAgent/bin/rtcli.crt
TsysAgent/bin/.safe_TsysAgent_sh.pid
TsysAgent/bin/prope_sock.sh
TsysAgent/bin/stop_proxy.sh
TsysAgent/bin/ps.sh
TsysAgent/bin/TsysAgent
TsysAgent/bin/TsysAgent.pid
TsysAgent/bin/tsysca.crt
TsysAgent/bin/rsa_rs
TsysAgent/bin/rtclipri.key
TsysAgent/bin/ping_client2
TsysAgent/bin/start_proxy.sh
TsysAgent/bin/promote
TsysAgent/bin/safe_TsysAgent.sh
TsysAgent/bin/agent_tsys_1.key
TsysAgent/bin/stop.sh
TsysAgent/bin/safe_TsysProxy.sh
TsysAgent/bin/ping_client
TsysAgent/bin/ping_client.conf
TsysAgent/bin/TsysProxy.pid
TsysAgent/bin/rsa_pub_key
TsysAgent/bin/netstat_proxy.sh
TsysAgent/bin/pri_key_100308
TsysAgent/bin/ps_proxy.sh
TsysAgent/bin/safe_prope.sh
TsysAgent/bin/rsa_rpk
TsysAgent/bin/TsysProxy
TsysAgent/etc/
TsysAgent/etc/sigex.list
TsysAgent/etc/allowBMregmode
TsysAgent/etc/key_shmcomm
TsysAgent/etc/ssl.conf
TsysAgent/etc/configtype
TsysAgent/etc/proxy_ctrl.conf
TsysAgent/etc/agent.ini_install
TsysAgent/etc/config.ini
TsysAgent/etc/ssl.ini
TsysAgent/etc/ssl_tfileserver.conf
TsysAgent/etc/autoreg
TsysAgent/etc/proxy_ctrl.conf_install
TsysAgent/etc/ctl_sigex
TsysAgent/etc/md5.list
TsysAgent/etc/key_df
TsysAgent/etc/key_md5
TsysAgent/etc/libgcc_s.so.1
TsysAgent/etc/server.ini
TsysAgent/etc/signature.list
TsysAgent/etc/agent.ini
TsysAgent/etc/cron_file1
TsysAgent/etc/allowlistenwanip
TsysAgent/etc/key_tm
TsysAgent/etc/key_ini
TsysAgent/update/
TsysAgent/agent_work/
TsysAgent/agent_work/backup/
TsysAgent/agent_work/agent_backup/
TsysAgent/agent_work/scan/
TsysAgent/agent_work/shell/
TsysAgent/agent_work/agent_upload/
TsysAgent/Readme
********************************************
Display TsysAgent Version
ver:Linux_64 S 3.2.22 May 17 2017 10:52:17
Dispaly TsysAgent listening port
tcp        0      0 127.0.0.1:42222         0.0.0.0:*               LISTEN      10345/TsysAgent

执行命令 ps aux | grep Tsys 可以看到 TsysProxy TsysAgent ,进行验证进程与端口。

[root@centos ~]# ps aux | grep Tsys
root     10311  0.0  0.1   9512  1420 pts/0    S    16:18   0:00 /bin/bash ./safe_TsysAgent.sh start
root     10345  0.0  0.1  15452  1712 pts/0    S    16:18   0:00 /usr/local/TsysAgent/bin/TsysAgent
root     10371  0.0  0.1   9512  1420 pts/0    S    16:18   0:00 /bin/bash ./safe_TsysProxy.sh start
root     10395  0.0  0.1  17008  1708 pts/0    S    16:18   0:00 /usr/local/TsysAgent/bin/TsysProxy
root     10580  0.0  0.0   9036   672 pts/0    R+   16:19   0:00 grep --color=auto Tsys

执行 netstat -anp | grep Tsys 可以看到 48369 42222 端口。

[root@centos ~]# netstat -anp | grep Tsys
tcp        0      0 127.0.0.1:42222         0.0.0.0:*               LISTEN      10345/TsysAgent     
tcp        0      0 0.0.0.0:48369           0.0.0.0:*               LISTEN      10395/TsysProxy