Changeset 290


Ignore:
Timestamp:
Sep 26, 2017, 3:17:19 PM (7 years ago)
Author:
g7moreau
Message:
  • Remove end space
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r289 r290  
    791791      my ($oid_current) = $snmp_session->var_bind_names;
    792792      last LOOP_ON_OID_PORT if  not Net::SNMP::oid_base_match($oid_search_ix, $oid_current);
    793      
     793
    794794      my $port_ifIndex = $snmp_session->var_bind_list->{$oid_current};
    795795      my ($port_ix) = reverse split /\./, $oid_current; # last number
     
    798798      # prepare next loop item
    799799      @args = (-varbindlist => [$oid_current]);
    800      
     800
    801801      my $oid_search_ifName = $OID_NUMBER{'ifName'} .'.'. $port_ifIndex;
    802802      my $result = $snmp_session->get_request(-varbindlist => [$oid_search_ifName]);
    803803      next LOOP_ON_OID_PORT if not defined $result;
    804      
     804
    805805      my $current_port_hr = normalize_port_human_readable($result->{$oid_search_ifName});
    806806      printf "PORT2: $oid_search_ifName => $current_port_hr\n" if $verbose;
    807807      if ($current_port_hr eq $swport_hr) {
    808808         print "PORT3: $current_port_hr <-> $port_ix\n" if $verbose;
    809          
     809
    810810         # return port number ifIndex need by OID portUpDown
    811811         $swport_id = $port_ifIndex; # other possible value could be $port_ix
     
    15471547         # Link to uplink switch
    15481548         next LOOP_ON_OUTPUT_SWITCH;
    1549          
     1549
    15501550         # Do not print anymore
    15511551         my $mac_address  = $db_switch{$db_switch_parent{$sw}->{'switch'}}->{'mac_address'};
     
    21272127      my %vlandb = snmp_get_vlan_list($session);
    21282128      $session->close;
    2129      
     2129
    21302130      print "VLAN_ID - VLAN_NAME # $sw_name\n";
    21312131      for my $vlan_id (keys %vlandb) {
     
    28152815      $db_building{$building}->{$location} ||= {};
    28162816      $db_building{$building}->{$location}{ $sw->{'hostname'} } = 'y';
    2817      
     2817
    28182818      $db_switch_line{$sw} = 0;
    28192819      }
     
    28782878               print "\"$sw:$port_connect\" [label=\"".format_aggregator4dot($port_connect)."\", color=black, fillcolor=plum, peripheries=$peripheries, style=filled];\n";
    28792879               print "\"$sw:$port_connect\" -> \"$sw\" [len=2, style=bold, color=$color, arrowhead=normal, arrowtail=inv];\n";
    2880                
     2880
    28812881               #$db_switch_line{$sw}++;
    28822882               #if ($db_switch_line{$sw} % 9 == 0) {
     
    30993099This means that an C<fping> command is done at the beginning on all the IP of the network
    31003100and the computers that was not detected in this pass, but where their Klask entry is less than one week,
    3101 will have an C<arping> 
     3101will have an C<arping>
    31023102(some OS do not respond to C<ping> but a computer have to respond to C<arping> if it want to interact with other).
    31033103In the scan mode C<passive>, no C<fping> and no C<arping> are done.
Note: See TracChangeset for help on using the changeset viewer.