DBD::Sys::Plugin::Any::FileSysDf - provides a table containing the free space of file systems
$filesysdf = $dbh->selectall_hashref("select * from filesysdf", "mountpoint");
DBD::Sys::Plugin::Any::FileSysDf ISA DBD::Sys::Table
This module provides the table <filesysdf> which contains the free space on file systems.
The friendly name of the filesystem. This will usually be the same name as appears in the list returned by the filesystems() method.
Total blocks existing on the filesystem.
Total blocks free existing on the filesystem.
Total blocks available to the user executing the Perl application. This can be different than bfree if you have per-user quotas on the filesystem, or if the super user has a reserved amount. bavail can also be a negative value because of this. For instance if there is more space being used then you have available to you.
bfree
bavail
Total blocks used existing on the filesystem.
Percent of disk space used. This is based on the disk space available to the user executing the application. In other words, if the filesystem has 10% of its space reserved for the superuser, then the percent used can go up to 110%.
Total inodes existing on the filesystem.
Total inodes free existing on the filesystem.
Total inodes available to the user executing the application. See the information for the bavail column.
Total inodes used existing on the filesystem.
Percent of inodes used on the filesystem. See the information for the bper column.
bper
Returns the column names of the table as named in "Columns"
Return the attributes supported by this module:
Allows to specify the blocksize of the returned free blocks. This defaults to 1.
$dbh->{sys_filesysdf_blocksize} = 512; # use UNIX typical blocksize for df
Retrieves the mountpoints of mounted file systems from Sys::Filesystem and determine the free space on their devices using Filesys::DfPortable. The mountpoint and the free space information are put in fetchable rows.
Sys::Filesystem and Filesys::DfPortable are required in order to fill the table filesysdf with data.
filesysdf
Jens Rehsack Alexander Breibach CPAN ID: REHSACK rehsack@cpan.org alexander.breibach@googlemail.com http://www.rehsack.de/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Free support can be requested via regular CPAN bug-tracking system. There is no guaranteed reaction time or solution time, but it's always tried to give accept or reject a reported ticket within a week. It depends on business load. That doesn't mean that ticket via rt aren't handles as soon as possible, that means that soon depends on how much I have to do.
Business and commercial support should be acquired from the authors via preferred freelancer agencies.
To install DBD::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBD::Sys
CPAN shell
perl -MCPAN -e shell install DBD::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.