Changeset 227


Ignore:
Timestamp:
Feb 20, 2017, 10:56:22 PM (8 years ago)
Author:
g7moreau
Message:
  • Add doc about the scan-mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r226 r227  
    27222722It search a computer on the network and give the port and the switch on which the computer is connected.
    27232723
    2724 =head2 search
     2724=head2 search-mac-on-switch
    27252725
    27262726 klask search-mac-on-switch [--verbose|-v] [--vlan|-i vlan-id] switch mac_addr
     
    27342734 klask enable  [--verbose|-v] switch port
    27352735
    2736 This command activate a port on a switch by SNMP.
     2736This command activate a port (or an agrregate bridge port) on a switch by SNMP.
    27372737So you need to give the switch name and a port on the command line.
    27382738See L</ABBREVIATION FOR PORT>.
    27392739
    2740 You need to have the SNMP write access on the switch in order to modify it's configuration.
     2740Warning: You need to have the SNMP write access on the switch in order to modify it's configuration.
    27412741
    27422742
     
    27452745 klask disable [--verbose|-v] switch port
    27462746
    2747 This command deactivate a port on a switch by SNMP.
     2747This command deactivate a port (or an agrregate bridge port) on a switch by SNMP.
    27482748So you need to give the switch name and a port on the command line.
    27492749See L</ABBREVIATION FOR PORT>.
    27502750
    2751 You need to have the SNMP write access on the switch in order to modify it's configuration.
     2751Warning: You need to have the SNMP write access on the switch in order to modify it's configuration.
    27522752
    27532753
     
    27612761See L</ABBREVIATION FOR PORT>.
    27622762
     2763If it's not possible to change port status with command L</enable> and L</disable>
     2764(SNMP community read write access),
     2765it's always possible to have the port status even for bridge agrregate port.
     2766
    27632767
    27642768=head2 updatedb
     
    27732777Option are not stable and could be use manually when you have a new kind of switch.
    27742778Maybe some option will be transfered in a future C<checksw> command!
     2779
     2780The network parameter C<scan-mode> can have two values: C<active> or C<passive>.
     2781By default, a network is C<active>.
     2782This means that an C<fping> command is done at the beginning on all the IP of the network
     2783and the computers that was not detected in this pass, but where their Klask entry is less than one week,
     2784will have an C<arping>
     2785(some OS do not respond to C<ping> but a computer have to respond to C<arping> if it want to interact with other).
     2786In the scan mode C<passive>, no C<fping> and no C<arping> are done.
     2787It's good for big subnet with few computer (telephone...).
     2788The idea of the C<active> scan mode is to force computer to regulary send packet over the network.
    27752789
    27762790=head2 exportdb
     
    28722886   snmpport: 161
    28732887   float-regex: '(?^msx: ^float )'
     2888   scan-mode: active
    28742889
    28752890 network:
     
    28842899   schoolnet:
    28852900     ip-subnet:
    2886        - add: 192.168.6.0/24
    2887        - add: 192.168.7.0/24
     2901       - add: 192.168.3.0/24
     2902       - add: 192.168.4.0/24
    28882903     interface: eth0.38
    28892904     vlan-id: 13
    28902905     main-router: gw2.schoolnet.local
     2906     scan-mode: passive
     2907
     2908   etunet:
     2909     ip-subnet:
     2910       - add: 192.168.5.0/24
     2911     interface: eth2
     2912     vlan-id: 14
     2913     main-router: gw3.etunet.local
     2914     scan-mode: passive
    28912915
    28922916 switch:
    28932917   - hostname: sw1.klask.local
     2918     location: BatY / 1 floor / K004
    28942919     portignore:
    28952920       - 1
     
    28972922
    28982923   - hostname: sw2.klask.local
    2899      location: BatK / 2 / K203
     2924     location: BatY / 2 floor / K203
    29002925     type: HP2424
    29012926     portignore:
     
    29032928       - 2
    29042929     fake-ip: 192.168.9.14
     2930
     2931   - hostname: sw3.klask.local
     2932     location: BatY / 2 floor / K203
    29052933
    29062934I think it's pretty easy to understand.
Note: See TracChangeset for help on using the changeset viewer.