Topic on Project talk:Support desk/Archive

Round Robin script to enable one IP address at a time and disable others

This topic was hidden by MarkAHershberger
Reason: not for mw
2
Bilalelghali (talkcontribs)

Hello mates,

I need your support in creating a looped script ( it'll be scheduled later) the scenario is as below:

I have four IP addresses on an interface, only one IP should be enabled at a time. The script should identify enabled interface, adjust the next interface status from disabled to enabled then disable the previous interface.

initially first IP enabled 2,3,4 disabled

running script : identify 1 , enable 2 , disable 1

running script: identify 2, enable 3, disable 2

running script: identify 3, enable 4, disable3

running script: identify 4 , enable 1 , disable 4

I tried to use the flag as identify interface.

Thanks for your help,

Bilal

MarkAHershberger (talkcontribs)

Hello. This site is for MediaWiki support. Your question has nothing to do with MediaWiki as far as I can tell.