< Home

ap-ping

Function

The ap-ping command uses a specified AP to ping a network device and displays the returned result.

Format

ap-ping { ap-name ap-name | ap-id ap-id } [ -c count | -s packetsize | -m time | -t timeout ] * host

Parameters

Parameter

Description

Value

ap-name ap-name

Specifies the name of an AP used to ping other network devices.

The AP name must already exist.

ap-id ap-id

Specifies the ID of an AP used to ping other network devices.

The AP ID must already exist.

-c count

Specifies the number of ICMP Echo Request packets to be sent.

The value is an integer that ranges from 1 to 10. The default value is 4.

-s packetsize

Specifies the length of an Echo Request packet excluding the IP header and ICMP header.

The value is an integer that ranges from 20 to 8100, in bytes. The default value is 56 bytes.

-m time

Specifies the time to wait before sending the next ICMP Request packet.

The value is an integer that ranges from 1 to 5000, in milliseconds. The default value is 2000 ms.

-t timeout

Specifies the timeout period for an ICMP Echo Response packet.

The value is an integer that ranges from 0 to 10000, in milliseconds. The default value is 2000 ms.

host

Specifies the domain name or IP address of the destination host.

The value is a string of 1 to 20 characters.

Views

WLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

  • You can run this command to check the connectivity between an AP and network device by pinging a network device from an AP.
  • The prerequisite is that the AP is online and has been configured with an IP address.

Precautions

  • This command may cost much time because the parameters such as waiting time affects the command running.
  • Only one AP can perform the ping operation at a time.

Example

# Use the AP N1-2 to perform a ping operation.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] ap-ping ap-name N1-2 10.1.1.1
Warning: This operation maybe takes several minutes, continue?[Y/N]:y       
[HUAWEI-wlan-view]                       
  AP ping result                                                                
    Success count        : 4                                                    
    Failure count        : 0                                                    
    Average response time: 1 ms                                                 
    Minimum response time: 1 ms                                                 
    Maximum response time: 1 ms
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >