[英]Not able to access Isilon Server
我正在嘗試使用以下代碼連接 Isilon 服務器。 但是我收到了 400 Bad Request 作為響應。 你能幫我解決這個問題嗎?
static void Main(string[] args)
{
var IsilonServerAddress = "http://192.168.45.151:8080";
var request = (HttpWebRequest)WebRequest.Create(IsilonServerAddress + "/namespace/ ");
request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(new ASCIIEncoding().GetBytes("root" + ":" + "root")));
var response = (HttpWebResponse)request.GetResponse();
}
服務器應該向我返回正確的響應作為輸出。
響應表明您正在提供 Isilon 不喜歡的東西(語法等)。
isilon-1# isi services -a isi_webui
很可能它正在運行,因為您得到了一些響應,但檢查是否正常不會有什么壞處。
例如列出 SMB 共享:
isilon-1# curl -vk -u "root" -H 'Content-type:application/json' -X GET 'https://<Isilon_IP>:8080/platform/1/protocols/smb/shares'
有關詳細信息,請查看 EMC KBA# 304504:如何使用 curl 命令驗證 OneFS API 在 OneFS 7.0 及更高版本中正常工作http://support.emc.com/kb/304504
另請參閱以下文檔:
Dell EMC Isilon OneFS 版本 8.1.2 API 參考https://support.emc.com/docu90414_Isilon-OneFS-8.1.2-API-Reference-Guide.pdf?language=en_US
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.