您可以使用 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
可能是「管理主控台」無法連接至主機,或是代理程式無法運作。