/usr/share/doc/libsys-virt-perl/examples/node-info.pl is in libsys-virt-perl 3.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/usr/bin/perl
use strict;
use warnings;
use Sys::Virt;
my $addr = @ARGV ? shift @ARGV : "";
my $hv = Sys::Virt->new(address => $addr, readonly => 1);
my $info = $hv->get_node_info();
my @models = $hv->get_cpu_model_names($info->{model});
print join ("\n", sort{ lc $a cmp lc $b } @models), "\n";
my @info = $hv->get_node_free_pages([2048], 0, 0);
use Data::Dumper;
print Dumper(\@info);
my $xml = $hv->get_domain_capabilities(undef, "x86_64", undef, "kvm");
print $xml;
|