Changeset 296
- Timestamp:
- Jul 18, 2018, 12:20:18 PM (7 years ago)
- Location:
- trunk/ddt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ddt/ddt
r295 r296 4 4 # License GNU GPL version 2 or later and Perl equivalent 5 5 # 6 # apt-get install perl-base perl-modules libyaml-syck-perl libnet-netmask-perl libreadonly-perl libfile-touch-perl 6 # apt-get install perl-base perl-modules libyaml-syck-perl libnet-netmask-perl libreadonly-perl libfile-touch-perl libtext-table-perl 7 7 8 8 package DDT::RE; … … 30 30 use File::Copy; 31 31 use Socket; 32 use Text::Table; 32 33 33 34 my $command = shift @ARGV || 'help'; … … 2268 2269 next if $domainset_current eq 'version'; 2269 2270 2270 print "\n# *** List of pool computers in the domain set: $domainset_current ***\n"; 2271 printf "%-30s %-20s %17s %5s %7s %-10s %s\n", 2272 'Hostname', 2273 'IPv4-Address', 2274 'MAC-Address', 2275 'Type', 2276 'Status', 2277 'Date', 2278 'Comment'; 2271 my $tb_computer = Text::Table->new( 2272 {align => 'left', align_title => 'left', title => 'Hostname.DomainSet'}, 2273 {align => 'left', align_title => 'left', title => 'IPv4-Address'}, 2274 {align => 'center', align_title => 'center', title => 'MAC-Address'}, 2275 {align => 'right', align_title => 'right', title => 'Type'}, 2276 {align => 'right', align_title => 'right', title => 'Status'}, 2277 {align => 'left', align_title => 'left', title => 'Date'}, 2278 {align => 'left', align_title => 'left', title => 'Comment'}, 2279 ); 2280 2281 $tb_computer->add( 2282 2283 #printf "%-30s %-20s %17s %5s %7s %-10s %s\n", 2284 # 'Hostname', 2285 # 'IPv4-Address', 2286 # 'MAC-Address', 2287 # 'Type', 2288 # 'Status', 2289 # 'Date', 2290 # 'Comment'; 2279 2291 my @domainsetdb = @{$computer_db->{$domainset_current}}; 2280 2292 … … 2314 2326 } 2315 2327 2316 printf "%-30s %-20s %17s %9s %3s %10s %s\n", 2328 #printf "%-30s %-20s %17s %9s %3s %10s %s\n", 2329 $tb_computer->add( 2317 2330 $attribute->{'hostname'} . '.' . $domainset_current, 2318 2331 $ip, … … 2321 2334 $enable, 2322 2335 $date, 2323 $comment; 2324 } 2336 $comment, 2337 ); 2338 } 2339 2340 print "\n# *** List of pool computers in the domain set: $domainset_current ***\n"; 2341 print $tb_computer->title(); 2342 print $tb_computer->rule('-'); 2343 print $tb_computer->body(); 2325 2344 } 2326 2345 -
trunk/ddt/make-package-debian
r253 r296 43 43 Tag: implemented-in::perl, interface::commandline, role::program 44 44 Priority: optional 45 Depends: perl, perl-base, perl-modules, libyaml-syck-perl, libnet-netmask-perl, libreadonly-perl, libfile-touch-perl 45 Depends: perl, perl-base, perl-modules, libyaml-syck-perl, libnet-netmask-perl, libreadonly-perl, libfile-touch-perl, libtext-table-perl 46 46 Suggests: libyaml-shell-perl | yamllint, perl-doc, isc-dhcp-server, bind9 47 47 Architecture: all
Note: See TracChangeset
for help on using the changeset viewer.