#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    2
    Rep Power
    0

    Automation konfig script


    Hello everybody,

    I'm new here and I hope that someone could help me with my little request.

    I try to automate my config scripts which i normaly store in a normal txt.file. The config files are allways very similar, just like

    set -IPAddress "IP-Adresse" -netmask "Subnetzmaske"

    Now i want to create a little script, which runs the lines in my konfig file, and replaces the needed Adresses or names....

    What kind of scripting should i use? i remember that regex could do somethinh like this....right?


    I hope that someone could help me....
    Tanks
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,744
    Rep Power
    9397
    If you intended this to be a PHP question, it may not need to be.

    Need more information. What are these config scripts for? Are they actual scripts, as in do they execute commands? What platform? Where are the IP addresses and names coming from? Substitute permanently into the file or just when the command is being executed?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    2
    Rep Power
    0
    Originally Posted by requinix
    If you intended this to be a PHP question, it may not need to be.

    Need more information. What are these config scripts for? Are they actual scripts, as in do they execute commands? What platform? Where are the IP addresses and names coming from? Substitute permanently into the file or just when the command is being executed?
    Tey are juts logged in a normal txt.file and i want to change the IP Adresses and save them in a new txt.file
    Later the commands should be copied in a CLI from a Linux System by putty.
    It would be nice if the script asks me to put in the adresses. Because it changes by every new aplliance i want to install
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2012
    Posts
    776
    Rep Power
    495
    Originally Posted by scholes89
    It would be nice if the script asks me to put in the adresses. Because it changes by every new aplliance i want to install
    Sure, but you did not say which language.


IMN logo majestic logo threadwatch logo seochat tools logo