I'm posting my question here as I fele that what I am about to try to do must have been done already, and I don't want to re-invent the wheel.
I have recently become responsible for monitoring disk space usage for a large file system.
I would like to geenrate reports that will summise the amount of disk space used by directories at a certain level, grouped into date ranges.
e.g. results
I hope that gives some idea of what I am trying to achive. Basically, I want to highlight large areas of the filesystem that can be archived off because they have not been accessed for some time.
If anyone can point me towards any scripts already written that would do this or something I can modify to do it I would appreciate it.
At the moment I am loking at starting from scratch, which I'd enjoy, but will take some time.
I can not install any software - it must be script based.
I am trying to create a command string that makes use of the du or df utilities to show block count in kilobytes (1024 bytes) instead of multiples of 512 bytes, any suggestions? Thanks..... (3 Replies)
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
CPU usage: PS versus TOP - Different output
Hi
When monitoring a Linux environment with PS command, reported CPU value for a certain process differs, sometimes greatly, from the value seen in TOP.
I understood this is not a bug, they report different data.
I can't understand the nature... (4 Replies)
Hello all,
Below is scripts to find the file following by:
30 days <- How many total file space within 30 days and not quantity
90 days
120 days
1 year
From here also I can get data space to put on PIE Chart. Following this scripts can I do some enhance from this scripts like do... (1 Reply)
hey i want to print the summary or the total disk usage of the configuration files that are in the /etc directory printed in human-readable format.
i think i got somewhere right as am using wc *.conf commands but i am unsure how to use to put it in human-readable format with the wc command.
... (13 Replies)
Hello all;
I'll try an explain my dilemma as best I can. But first some background:
1- I am suppose to compare a database to itself before and after changes; basically generate audit trail report.
2- This database contains "RULES" (the id field) that we use for transmitting files.
3 - The... (0 Replies)
Hi ,
Following alerts are coming for %busy device on a server
Disk Device hdisk5 is 100% busy
Please assist how do I analyse this and also how do I check the %age busy for hdisk5.
Best regards,
Vishal (4 Replies)
Hi All,
The NMON file is getting generated with file size of more than 70MB for just 40 minute duration on AIX 6.1 box, due to more number of disks (Disk0, Disk1..., Disk22).
With respect to disk related details, I need to have only the disk summary, and disable the detailed disk statistics... (6 Replies)
HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you.
=================
#!/bin/bash
TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies
LEARN ABOUT DEBIAN
mojolicious::routes::match
Mojolicious::Routes::Match(3pm) User Contributed Perl Documentation Mojolicious::Routes::Match(3pm)NAME
Mojolicious::Routes::Match - Routes visitor
SYNOPSIS
use Mojolicious::Routes;
use Mojolicious::Routes::Match;
# Routes
my $r = Mojolicious::Routes->new;
$r->get('/foo')->to(action => 'foo');
$r->put('/bar')->to(action => 'bar');
# Match
my $m = Mojolicious::Routes::Match->new(PUT => '/bar');
$m->match($r);
say $m->captures->{action};
DESCRIPTION
Mojolicious::Routes::Match is a visitor for Mojolicious::Routes structures.
ATTRIBUTES
Mojolicious::Routes::Match implements the following attributes.
"captures"
my $captures = $m->captures;
$m = $m->captures({foo => 'bar'});
Captured parameters.
"endpoint"
my $endpoint = $m->endpoint;
$m = $m->endpoint(Mojolicious::Routes->new);
The routes endpoint that actually matched.
"root"
my $root = $m->root;
$m = $m->root($routes);
The root of the routes tree.
"stack"
my $stack = $m->stack;
$m = $m->stack([{foo => 'bar'}]);
Captured parameters with nesting history.
METHODS
Mojolicious::Routes::Match inherits all methods from Mojo::Base and implements the following ones.
"new"
my $m = Mojolicious::Routes::Match->new(GET => '/foo');
my $m = Mojolicious::Routes::Match->new(GET => '/foo', $ws);
Construct a new match object.
"match"
$m->match(Mojolicious::Routes->new, Mojolicious::Controller->new);
Match against a routes tree.
"path_for"
my $path = $m->path_for;
my $path = $m->path_for(foo => 'bar');
my $path = $m->path_for({foo => 'bar'});
my $path = $m->path_for('named');
my $path = $m->path_for('named', foo => 'bar');
my $path = $m->path_for('named', {foo => 'bar'});
my ($path, $ws) = $m->path_for;
my ($path, $ws) = $m->path_for(foo => 'bar');
my ($path, $ws) = $m->path_for({foo => 'bar'});
my ($path, $ws) = $m->path_for('named');
my ($path, $ws) = $m->path_for('named', foo => 'bar');
my ($path, $ws) = $m->path_for('named', {foo => 'bar'});
Render matching route with parameters into path.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Routes::Match(3pm)