This post is more than 5 years old
1 Rookie
•
12 Posts
0
1310
September 2nd, 2010 12:00
Anyone know of a way to get grid utilization from within a script or command line?
I want to email the results of the capacity.sh script to our operations folks. I have a script that does this and thought a perfect addition to it would be to include the utilization of the grid.
No Events found!



Avamar Exorcist
462 Posts
0
September 3rd, 2010 07:00
mccli server show-prop | grep "Server utilization"
jxtliG76io12459
25 Posts
0
September 2nd, 2010 19:00
Hi,
To get the utilization of OS filesystem, issue the command 'df -h'
For example, if you are using multi-node Avamar system.
1, log into utility node using admin account,
2, load dpn key
- ssh-agent bash
- ssh-add .ssh/dpnid
3,
- mapall --all 'df -h'
To get the utilization of GSAN, the command 'status.dpn' will show the detailed information of your Avamar status, including utilization.
Hope the above information would be helpful.
Regards,
Sean
TimFeldmann1
1 Rookie
•
12 Posts
0
September 3rd, 2010 05:00
Thanks, but the results of these do not match up to what I'm wanting.
Here's the utilization I'm looking for.
open console to grid, select "server", then select "Server Management" tab, "Server Utilization"
rpervan
266 Posts
1
September 3rd, 2010 07:00
Hello TimFeldmann,
There are possibilities to get those data using sql language and query PostgreSQL DB.
mcdb=# select * from v_node_space;
date | time | date_time | node | disk | capacity_mb | used_mb | stripes_reserved_mb | stripes_used_mb | utilization | diskreadonly
------------+----------+---------------------+------+------+-------------+---------+---------------------+-----------------+-------------+--------------
2010-09-02 | 13:50:39 | 2010-09-02 13:50:39 | 0.0 | 0 | 77364 | 9666 | 2422 | 224 | 0.46 | 65
2010-09-02 | 14:00:39 | 2010-09-02 14:00:39 | 0.0 | 0 | 77364 | 9666 | 2422 | 224 | 0.46 | 65
or just
mcdb=# select utilization from v_node_space;
utilization
-------------
0.46
0.46
Actually you can write your own script, plase it in cron .... and it will send you data per mail .
I already wrote how to connect to the PostgreSQL in some of my previous topic .
regards,
.R