Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using the following code on my ilo 3 or 4 machines successfully in order to get a response and parse it for information:

public string doiLO3Request(string requestRibcl)
        {
            ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(iLOCertificateValidation);
            HttpWebRequest request = WebRequest.Create("https://192.168.0.100/ribcl") as HttpWebRequest;
            request.Method = "POST";
            request.ContentType = "text/xml";
            request.KeepAlive = false;
            request.SendChunked = true;
            request.Headers.Add("TE: chunked"); //iLO 3 needs this TE header instead of the proper Transfer-Encoding header
            request.ContentLength = requestRibcl.Length;
            request.GetRequestStream().Write(Encoding.ASCII.GetBytes(requestRibcl), 0, requestRibcl.Length);
            request.GetRequestStream().Flush();
            request.GetRequestStream().Close();

            HttpWebResponse response = request.GetResponse() as HttpWebResponse;
            Stream responseStream = response.GetResponseStream();
            StreamReader responseReader = new StreamReader(responseStream);
            string results = "";
            results = responseReader.ReadToEnd();
            response.Close();
            return results;
        }
        public bool iLOCertificateValidation(Object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors Errors) {
            //we don't care about certificate validity, we just want to read what the server provides
            return true;
        }

However that does not seem to work for ilo 2 machines, returning error 404 not found.

I have it narrowed to the http address: https://192.168.0.100/ribcl

If you input that into the browser, for ilo 3 and 4 it returns some xml but error 404 on ilo 2.

If running the ilo 2 scripts from the command line, the xml response is correct but I need to get that into my winform app.

Does anyone know if the RIBCL address syntax https://192.168.0.100/ribcl is different for ilo 2?

share|improve this question
    
What are the server types/model? –  ewwhite Jan 8 '13 at 16:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.