可以使用 telnet 或管理控制台的测试来对代理程序的连接进行测试。
要从命令行测试连接:
telnet hostname 5555
此响应指示连接成功:200 HELLO - BuildForge Agent v7.0.1.buildnumber
telnet localhost 5555
username user name
password password
cmd ping
go
以下消息指示成功:
AUTH: set user account to <user name>
如果以上测试成功而作业失败,且服务器的测试显示用户认证错误,请检查可插拔认证模块 (PAM) 配置。如果看到如下消息,请继续下一步骤。AUTH: unable to set user account to <user name>: unknown account (1)
cmd ping go
以下是 telnet 会话的典型输出。尤其要在输出末尾查找 RESULT 0,这是成功的指示。该测试针对在 Windows 上运行的代理程序。
300 DATA s 67
AUTH: Running as: [SYSTEM] in domain [NT AUTHORITY] SID Type [User]
300 DATA s 52
AUTH: Running with Privilege: [Lock pages in memory]
300 DATA s 66
AUTH: Running with Privilege: [Adjust memory quotas for a process]
300 DATA s 63
AUTH: Running with Privilege: [Create permanent shared objects]
300 DATA s 46
AUTH: Running with Privilege: [Debug programs]
300 DATA s 56
AUTH: Running with Privilege: [Bypass traverse checking]
300 DATA s 61
AUTH: Running with Privilege: [Back up files and directories]
300 DATA s 54
AUTH: Running with Privilege: [Change the system time]
300 DATA s 68
AUTH: Running with Privilege: [Remove computer from docking station]
300 DATA s 73
AUTH: Running with Privilege: [Impersonate a client after authentication]
300 HEARTBEAT 1
300 DATA s 16
PLAT: Windows XP
250 RESULT 0
PING: internal loopback test complete
260 EOR
要从管理控制台测试连接:
在测试后,结果会显示在测试结果选项卡中。
Could not open a connection to host on port 5555
这是由于管理控制台无法与主机连接,或者代理程序未运行。