use strict;
use warnings;
use JSON;
+use PVE::RPCEnvironment;
use Data::Dumper;
use PVE::RADOS;
-print "TEST1\n";
+my $rpcenv = PVE::RPCEnvironment->init('cli');
+
my $rados = PVE::RADOS::new();
-print "TEST2\n";
-my $res = $rados->mon_command({ prefix => 'mon dump', format => 'json' });
+my $res = $rados->mon_command({ prefix => 'get_command_descriptions'});
print Dumper($res);
+
$res = $rados->mon_command({ prefix => 'mon dump', format => 'json' });
print Dumper($res);