Jump to content
  • 0

CLI configuration from inside Shell scripts, cron


Question

Posted (edited)

Hi!

I need dynamical manipulation of ip static - checking link to some peer (if no ping, change peer)

for example, I have web server on 192.168.1.2

Router check ping every minute (cron?)

if ping fails, i need to reconfigure port forwarding (no ip static tcp ... , ip static tcp ..)

 

My question:

1. Is it possible to use cron (or some else) to run my shell script periodically?

2. How to call CLI configuration commands from Shell script?

1644303347684.jpg

Edited by Alekxsandr
adding tags

3 answers to this question

Recommended Posts

  • 0
Posted

Hi! Everything else looks easy. Just one problem:

ndmq -p "ip static ..." not works because no ndmq installed

 

How can it be installed? Help me please

1644613732358.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...