Changeset 380


Ignore:
Timestamp:
Jan 4, 2018, 3:48:55 PM (6 years ago)
Author:
g7moreau
Message:
  • Add doc for exportsw command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r379 r380  
    11871187
    11881188 klask updatesw [--verbose|-v]
    1189  klask exportsw [--format|-f txt|dot] [--modulo|-m XX] [--shift|-s YY]
     1189 klask exportsw [--format|-f txt|dot] [--modulo|-m XX] [--shift|-s YY] [-way all|desc|child|parent] [--no-header|-H]
    11901190
    11911191 klask searchdb [--kind|-k host|mac] computer [mac-address]
     
    33483348
    33493349 klask updatesw [--verbose|-v]
    3350  klask exportsw [--format|-f txt|dot] [--modulo|-m XX] [--shift|-s YY]
     3350 klask exportsw [--format|-f txt|dot] [--modulo|-m XX] [--shift|-s YY] [-way all|desc|child|parent] [--no-header|-H]
    33513351
    33523352 klask searchdb [--kind|-k host|mac] computer [mac-address]
     
    35223522=head2 exportsw
    35233523
    3524  klask exportsw [--format|-f txt|dot] [--modulo|-m XX] [--shift|-s YY]
     3524 klask exportsw [--format|-f txt|dot] [--modulo|-m XX] [--shift|-s YY] [-way all|desc|child|parent] [--no-header|-H]
    35253525
    35263526This command print the content of the switch database. There is actually two format.
    35273527One is just TXT for terminal and the other is the DOT format from the graphviz environnement.
    35283528By default, format is TXT.
     3529
     3530B<Options for TXT format:>
     3531
     3532Tree tables are print :
     3533C<desc> gives the switches description, model and revision,
     3534C<child> return the switch to parent switch table and
     3535C<parent> return the switch parent to parent child table.
     3536With option C<--way>, you can choose which on to print.
     3537C<all> will print all and C<child,parent> will print only C<child> and C<parent> table.
     3538With option C<--no-header>, you can remove the header for each table.
     3539
     3540B<Options for DOT format:>
    35293541
    35303542 klask exportsw --format dot > /tmp/map.dot
Note: See TracChangeset for help on using the changeset viewer.