http
Syntax
http {get | raw} URL [source { | } source-port ] [proxy proxy-url] [cache disable] [name-server ] [probe-interval<30-604800>] [version ] [http-raw-request ]
Description
Configures HTTP as the IP-SLA test mechanism. Requires destination URL and type of HTTP request (raw/get).
Command context
config-ip-sla-
Parameters
-
{
get
|raw
} -
Selects HTTP request type as GET or RAW where the system will generate or provide HTTP payload.
-
URL
-
Specifies HTTP URL address of syntax. http://
: / . -
source {
| } -
Selects the source IPv4 address for SLA probes or the source interface to use for sending IP-SLA probes.
-
source-port
-
Specifies the value of the source port for the IP-SLA probes.
-
cache disable
-
Selects cache option for the HTTP server. By default the option is enabled.
-
name-server
-
Specifies the IPv4 address of DNS server.
-
probe-interval
-
Specifies the probe interval in seconds. Range: 30 to 604800.
-
version
-
指定用于发送源接口IP-SLA probes.
-
http-raw-request
-
HTTP raw request. String.
Authority
Administrators or local user group members with execution rights for this command.
Examples
switch(config-ipsla-1)#http get http://device.arubanetworks.com/root/home.htmlswitch(config-ipsla-1)#http raw http://device.arubanetworks.com/root/home.htmlswitch(config-ipsla-1)#http 2.2.2.2 source 1/1/1switch(config-ipsla-1)#http http://device.arubanetworks.com source 2.2.2.1switch(config-ipsla-1)#http http://device.arubanetworks.com/root/home.html source-interface 1/1/1switch(config-ipsla-1)#http http://device.arubanetworks.com name-server 10.10.10.2switch(config-ipsla-1)#http raw raw-request "GET /en/US/hmpgs/index.html HTTP/1.0\r\n\r\n"