Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address entered

by rahulruns (Scribe)
on Nov 28, 2014 at 08:37 UTC ( [id://1108626]=note: print w/replies, xml ) Need Help??


in reply to Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address entered

Let me be more specific. I need to write a Script that takes input from users for NIC bonds 2 to 8 (we do not have bond5), Netmask, gateway and DNS. Then it has to check all the IP's enetred for these entities and ask for a particular entity if IP is enetered wrong. After this it has to create specific bond files with respective entries of IP addresses taken from user. I am able to create if I ask from user and they enter wrong IP but repetatively asking a question for one entitiy and matching the IP address to be entered in file is the problem I am facing

  • Comment on Re: Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address entered

Replies are listed 'Best First'.
Re^2: Ask user to enter IP address repitatively for entities like Netmask, Gateway, DNS, bonds etc till correct address entered
by Loops (Curate) on Nov 28, 2014 at 09:41 UTC

    Hi there,

    vinoth.ree has given you a good answer for the problem you seem to be having. You want to:

      Ask question.
      Test answer.
      Repeat until answer is acceptable.

    What is your question relating to Perl?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1108626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found