您可以使用 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