http

Syntax

http {get | raw} URL [source {<SOURCE-IPV4-ADDR> | <IFNAME>} source-port <PORT-NUM>]
     [proxy proxy-url] [cache disable] [name-server <IPV4-ADDR-DNS-SERVER>]
     [probe-interval <30-604800>] [version<VERSION-NUMBER>] [http-raw-request <RAW-PAYLOAD>]

Description

Configures HTTP as the IP-SLA test mechanism. Requires destination URL and type of HTTP request (raw/get).

Command context

config-ip-sla-<IP-SLA-NAME>

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://<HOST NAME/IP-ADDRESS>:<PORT>/<PATH>.

source {<SOURCE-IPV4-ADDR> | <IFNAME>}

Selects the source IPv4 address for SLA probes or the source interface to use for sending IP-SLA probes.

source-port <PORT-NUM>

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 <IPV4-ADDR-DNS-SERVER>

Specifies the IPv4 address of DNS server.

probe-interval <PROBE-INTERVAL>

Specifies the probe interval in seconds. Range: 30 to 604800.

version <VERSION-NUMBER>

Specifies the source interface to use for sending IP-SLA probes.

http-raw-request <RAW-PAYLOAD>

HTTP raw request. String.

Authority

Administrators

Examples

switch(config-ipsla-1)# http get http://device.arubanetworks.com/root/home.html
    switch(config-ipsla-1)# http raw http://device.arubanetworks.com/root/home.html
    switch(config-ipsla-1)# http 2.2.2.2 source 1/1/1
    switch(config-ipsla-1)# http http://device.arubanetworks.com  source 2.2.2.1
    switch(config-ipsla-1)# http http://device.arubanetworks.com/root/home.html source-interface 1/1/1
    switch(config-ipsla-1)# http http://device.arubanetworks.com  name-server 10.10.10.2
    switch(config-ipsla-1)# http raw raw-request "GET /en/US/hmpgs/index.html HTTP/1.0\r\n\r\n"