]> git.proxmox.com Git - librados2-perl.git/blame - test.pl
depend on libpve-access-control
[librados2-perl.git] / test.pl
CommitLineData
00185d20
DM
1#!/usr/bin/perl
2
3use lib '.';
4use strict;
5use warnings;
6use JSON;
7
8use Data::Dumper;
9
10use PVE::RADOS;
11
00185d20 12my $rados = PVE::RADOS::new();
00185d20 13
f5996c62
DM
14my $res = $rados->mon_command({ prefix => 'get_command_descriptions'});
15print Dumper($res);
16
00185d20
DM
17$res = $rados->mon_command({ prefix => 'mon dump', format => 'json' });
18print Dumper($res);
19
20my $stat = $rados->cluster_stat;
21print Dumper($stat);