FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
475 views 3 comments
by anonymous

Hi,

I need to configure ping_reboot using CLI via SSH.

I assume this can be achieved by editing /etc/config/ping_reboot and executing /etc/init.d/ping_reboot restart. Is this correct?

Also, please can anyone help me understand the options in red below?

config ping_reboot
        option action '1'        
# does '1' mean device restart? what are other options?
        option host 8.8.8.8      
        option fail_counter '0'  #  what is fail_counter? is it secs or mins?
        option packet_size '56'   
        option interface '1'     
# Is '1' the WAN interface?
        option stop_action '0'   # what is stop_action? what is option '0'? what other options are possible?
        option type 'ping'       
        option retry '3'         
        option time_out '10'     # is this the timeout between ping retries? is it secs or mins?
        option time '120'        # what is time? is it secs or mins?
        option current_try '0'   # what is current_try? what are the options?
        option enable '0'        

Many thanks in advance for help.

1 Answer

0 votes
by anonymous

Hello, 

For these questions of yours here are the answers:

        option action '1'        # 1 = Device Reboot | 2 = Modem reboot | 3 = None
        option host 8.8.8.8      
        option fail_counter '0'  #  just a variable to determine the fail counts it will not change keep it in 0
        option packet_size '56'   
        option interface '1'     
# Is '1' the WAN interface? Yes it's WAN interface [Keep it 1]
        option stop_action '0'   # 1 and 0 ignores the action configured [Keep it 0]
        option type 'ping'       
        option retry '3'         
        option time_out '10'     # This value is in seconds
        option time '120'        # This value is in seconds
        option current_try '0'   # Just a counter on how many ping attempts is already made. 
        option enable '0'  

I hope it helps

Regards,
Mellow

Best answer
by anonymous

Hi Mellow, thanks!

What's the meaning of  time_out and time ?

To change the values using CLI via SSH should I edit /etc/config/ping_reboot and then execute /etc/init.d/ping_reboot restart ?

Many thanks!

by anonymous

Hello, 

Time -> The frequency at which ping request is sent to the specified host (e.g ping request will be sent every one minute)
Time out -> Maximum response time if no echo is received after the specified time it is considered to be failed.

Yes, you can edit it via "vi" or "UCI" command then /etc/init.d/ping_reboot restart to apply the changes. 

For UCI you can refer to this link: UCI command usage - Teltonika Networks Wiki (teltonika-networks.com)

I hope it helps.

Regards,
Mellow

by anonymous
Awesome, thanks Mellow