Ad Widget

Collapse

Mass add hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rukhem
    Junior Member
    • Dec 2008
    • 12

    #1

    Mass add hosts

    This patch allows you to add many hosts at once.

    Patch based on the development Alexey Gladkov (www.yandex.ru).

    Mass add patterns:

    # <FORMAT> [ARGS]...
    # FORMAT controls the output as in printf(3).
    # ARGS can have expanded sequences of numbers or letters:
    # [1-N] [a-z] {a,z,x} or {1,8,3}
    # press Preview for see exsample
    #192.168.0.%s [1-254]

    srv-%s-%s%s.domain.com {FE,BE,DB} [0-2] [0-3]

    This generate:
    -----------------------------------------------------------------
    srv-BE-00.domain.com
    srv-BE-01.domain.com
    srv-BE-02.domain.com
    ...

    srv-BE-23.domain.com
    srv-DB-00.domain.com
    srv-DB-01.domain.com

    ...

    srv-FE-22.domain.com
    srv-FE-23.domain.com

    -----------------------------------------------------------------

    Patch create -

    new files:
    include/hosts_mass.inc.php

    change file:
    include/forms.inc.php
    hosts.php
    include/locales/en_gb.inc.php
    include/locales/ru_ru.inc.php
    Attached Files
    Last edited by rukhem; 10-09-2009, 06:18.
Working...