SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The device has a built-in ping utility for testing and troubleshooting network connectivity issues. The ping is started by posting the following parameters to /api/1/netapp/ping, as shown in Table 10-3.
Name (code) | Description | Example |
---|---|---|
Target IP (__SL_P_T.A) | IPv4 target address of ping requests. | (__SL_P_T.A=192.168.10.10) |
Ping packet size (__SL_P_T.B) | Size of the ping payload in bytes (from 1 to 1472). | (__SL_P_T.B=1024) |
Packets to send (__SL_P_T.C) | Number of packets to send (from 1 to 255). | (__SL_P_T.C=4) |
For example, the following request will send 4 ping packets, each of size 1024 bytes, to IP 10.123.45.2:
POST /api/1/netapp/ping HTTP/1.1
Host: mysimplelink.net
Content-Type: application/x-www-form-urlencoded
__SL_P_T.C=4&__SL_P_T.B=1024&__SL_P_T.A=10.123.45.2
The ping process stops automatically when the requested number of packets is sent. To manually stop it beforehand, a post request should be sent to /api/1/netapp/ping_stop (no parameters are necessary). The results can be retrieved by requesting the token __SL_G_T.D (see Section A for details).