EasyManuals Logo
Home>Dell>Server>FORCE10 Open Automation

Dell FORCE10 Open Automation User Manual

Dell FORCE10 Open Automation
98 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #71 background imageLoading...
Page #71 background image
Programmatic Management | 71
The following example shows how to embed an HTTP get request in Python script.
Figure 7-2. Python Sample with HTTP Get Request that Invokes the REST API
#!/usr/bin/python
import httplib
conn = httplib.HTTPConnection("10.42.51.5")
# Send HTTP GET request
conn.request("GET","/cgi-bin/F10Ping?IpAddress=10.42.0.13")
# Get response data
response = conn.getresponse()
# Display response texts on success or display status
if(response.status == 200):
# Handle response data
data = response.read()
print data
else :
# Handle error
print "Operation failed",response.status,response.reason
conn.close()

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Dell FORCE10 Open Automation and is the answer not in the manual?

Dell FORCE10 Open Automation Specifications

General IconGeneral
BrandDell
ModelFORCE10 Open Automation
CategoryServer
LanguageEnglish

Related product manuals