Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    Hostname2     2.2.2.2     Juniper
                  Chassis Serial Number abc123
                  Interface Gi-0/0/31
    
  2. or download this
    $VAR1 = [
              {
    ...
              }
            ];
    
  3. or download this
     my ($current,%data)
    ...
            $current and $data{$current->{HOST}} = $current; # in 2 places
            $current = {HOST=>$host, IP=>$ip, BRAND=>$brand};