]> git.proxmox.com Git - librados2-perl.git/blame - test.pl
buildsys: update make upload target for stretch
[librados2-perl.git] / test.pl
CommitLineData
00185d20
DM
1#!/usr/bin/perl
2
3use lib '.';
4use strict;
5use warnings;
6use JSON;
14aebb37 7use PVE::RPCEnvironment;
00185d20
DM
8
9use Data::Dumper;
10
11use PVE::RADOS;
12
14aebb37
DM
13my $rpcenv = PVE::RPCEnvironment->init('cli');
14
00185d20 15my $rados = PVE::RADOS::new();
00185d20 16
f5996c62
DM
17my $res = $rados->mon_command({ prefix => 'get_command_descriptions'});
18print Dumper($res);
19
00185d20
DM
20$res = $rados->mon_command({ prefix => 'mon dump', format => 'json' });
21print Dumper($res);
22
23my $stat = $rados->cluster_stat;
24print Dumper($stat);