EasyManuals Logo

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
SeriesFORCE10
ModelOpen Automation
Jumbo Frame SupportYes
Product TypeSwitch
PortsVaries by model
Switching CapacityVaries by model
Forwarding RateVaries by model
MAC Address Table SizeVaries by model
Power SupplyVaries by configuration
Operating Temperature0°C to 40°C
Storage Temperature-40°C to 70°C
DimensionsVaries by model
WeightVaries by model

Related product manuals