Printer FriendlyEmail Article Link

Spirent TestCenter-HLTAPI: Do we support pinging IPv6 address?

Environment/Versions
  • Spirent TestCenter
  • Automation-HLTAPI version t4.46 and above
Answer
  • Feature added in HLTAPI version t4.46 and above.
  • API Details:

Name:
sth::emulation_ping


Purpose:
Sends ICMP ECHO_REQUESTs from the specified test port and returns the PING results
 

Synopsis:
sth::emulation_ping
-port_handle <portHandle>
-handle <handle>
-host {a.b.c.d|<aaaa:bbbb:cccc:dddd:eeee:ffff:gggg:hhhh>}
[-count <integer>]
[-interval <integer>]
[-mac_address_start <aa:bb:cc:dd:ee:ff>]
 

Arguments:
-port_handle
Specifies the handle of the port from which to send ICMP ECHO_REQUESTs. This argument is mandatory.
-handle
Specifies the host handle from which to send ICMP ECHO_REQUESTs. For example, the handle received from function sth::interface_config.
Note: -port_handle and -handle are mutually exclusive. It is mandatory to specify either of the two but not both.
-count
Specifies the number of ICMP ECHO_REQUEST messages to send as a fixed number of datagrams.
-host
Specifies the IPV4/IPv6 address or hostname of the host to ping. The value must be in IPv4 or IPv6 format. This argument is mandatory.
-interval
Specifies the interval in milliseconds between successive transmissions of ICMP ECHO_REQUEST packets.
-mac_address_start
Initial MAC address of the interfaces created for the PING configuration. This argument is only supported when -port_handle is specified.

 

Please note that during this API execution with more number of counts, console control will not be given back to User to execute other commands(related to DUT or Spirent)


Product : Spirent TestCenter,Automation,API,Spirent TestCenter