No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
http get

http get

Function

The http get command detects whether the URL server is reachable.

Format

http get [ -a source-ip-address | -c count | -t timeout | -v http-version ] * url url

Parameters

Parameter Description Value
-a source-ip-address Specifies the source IP address of outgoing HTTP request packets.

If this parameter is not specified, the IP address of the outbound interface is used as the source IP address of outgoing HTTP request packets.

The value is in dotted decimal notation.
-c count Specifies the transmission count of HTTP request packets.

If the network works unstably, increase the transmission count to detect network quality based on the packet loss ratio.

The value is an integer ranging from 1 to 100. The default value is 5.
-t timeout Specifies the timeout interval for an HTTP response packet.

The http get command sends an HTTP request packet to an address and waits for a response. If the response is received within the timeout interval, the destination is reachable. If no response is received within the timeout interval, the sender displays a message indicating that the request packet times out.

A response is received within 1 to 10 seconds after an HTTP request packet is sent. If the transmission speed is low, properly prolong the timeout interval.

The value is an integer that ranges from 1 to 65535, in milliseconds. The default value is 5000 ms.
-v http-version Specifies the HTTP version number. The HTTP version number is 1.0 or 1.1. The default value is 1.0.
url url Specifies the destination URL. The value is a string of 1 to 256 characters.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The http get command detects whether the URL server is reachable. You can use HTTP request packets to detect the following items:
  • Whether the HTTP service is enabled on the URL server
  • Round-trip delay in communication
  • Packet loss

Example

# Check whether the HTTP service is enabled on the URL server with the URL of http://w3.huawei.com, and set the source IP address of outgoing HTTP packets to 10.137.147.142, the transmission count to 5, the period for waiting for a response packet to 100 ms, and the HTTP version number to 1.1.

<Huawei> system-view
[Huawei] http get -a 10.137.147.142 -c 5 -t 100 -v 1.1 url http://w3.huawei.com
  Http getting http://w3.huawei.com[10.82.55.199]:                                      
                                                                                
   1:packets interaction time 90 ms,the link reachable                             
   2:packets interaction time 100 ms,the link reachable                            
   3:packets interaction time 100 ms,the link reachable                            
   4:packets interaction time 100 ms,the link reachable                            
   5:packets interaction time 90 ms,the link reachable                             
  --http get result statistics--                                               
    Http Get 5 time(s),succeed 5 time(s),failed 0 time(s).                               
    round-trip min/avg/max = 90/96/100 ms
Table 2-49  Description of the http get command output

Item

Description

Http getting x.x.x

URL and IP address of the URL server.

x:packets interaction time x ms,the link reachable

Response to each HTTP packet.
  • Round-trip delay in communication

  • Link reachability

If no response packet is received after the timeout period, the message "Connect times out" is displayed.

http get result statistics

HTTP test statistics:
  • Http Get x time(s): number of outgoing HTTP packets

  • succeed x time(s): number of HTTP request packets of which corresponding HTTP response packets are received

  • failed x time(s): number of HTTP request packets of which corresponding HTTP response packets fail to be received

  • round-trip min/avg/max: minimum, average, and maximum round-trip delay

Related Topics
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 194828

Downloads: 118

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next