Changeset 201 for trunk/klask


Ignore:
Timestamp:
Jan 28, 2017, 6:28:21 PM (7 years ago)
Author:
g7moreau
Message:
  • Add date on klask switch map
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r200 r201  
    23972397   print "internet [label = \"internet\", color = black, fillcolor = cyan, shape = house, style = filled];\n";
    23982398
     2399   require DateTime;
     2400   my $date_now = DateTime->now;
     2401   print '"'.$date_now->ymd('/').' - '.$date_now->hms()."\" [ color = white, fillcolor = black, shape = polygon, sides=14, style = filled, fontcolor = white ]\n";
     2402
    23992403   my $b=0;
    24002404   for my $building (keys %db_building) {
     
    24772481 klask exportdb --format [txt|html]
    24782482 klask removedb computer*
    2479  klask cleandb  [--verbose] --day number_of_day --repair-dns --verbose
     2483 klask cleandb  [--verbose] --day number_of_day --repair-dns
    24802484
    24812485 klask updatesw [--verbose]
     
    25502554
    25512555
    2552 =head2 exportdb
     2556=head2 exportdb --format [txt|html]
    25532557
    25542558This command print the content of the database. There is actually only one format.
     
    25882592=head1 CONFIGURATION
    25892593
    2590 Because klask need many parameters, it's not possible actually to use command line parameters.
    2591 The configuration is done in a /etc/klask/klask.conf YAML file.
     2594Because klask need many parameters, it's not possible actually to use command line parameters for everything.
     2595The configuration is done in a F</etc/klask/klask.conf> YAML file.
    25922596This format have many advantage over XML, it's easier to read and to write !
    25932597
     
    26042608       - add: 192.168.2.0/24
    26052609     interface: eth0
     2610     vlan-id: 12
    26062611     main-router: gw1.labnet.local
    26072612
     
    26112616       - add: 192.168.7.0/24
    26122617     interface: eth0.38
     2618     vlan-id: 13
    26132619     main-router: gw2.schoolnet.local
    26142620
Note: See TracChangeset for help on using the changeset viewer.