AWS Cloud EBS limit script!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting AWS Cloud EBS limit script!
# 1  
Old 01-01-2014
AWS Cloud EBS limit script!

Hi,

I am trying to correct the following script to get total EBS usage from Amazon cloud. Can someone please help in correcting it. It appears that its not working properly.

Code:
t=0; for i in `ec2-describe-volumes | grep VOLUME | grep standard | awk '{print $3}'`; do t=`expr $t + $i`; done; echo $t

Thanks!

Last edited by bartus11; 01-01-2014 at 07:04 PM.. Reason: Please use code tags
# 2  
Old 01-01-2014
Show us sample output of "ec2-describe-volumes" and what you want to count from there (desired output).
# 3  
Old 01-01-2014
Hi,

Thanks for the response. Let me provide more details here. I am running the command on the console which is Amazon CLI and it's producing the output as shown in the image. What I am trying to achieve here is to get the size which is 100 in this image from all volumes and then calculate them to see the total usage of our volumes. My end goal is to collect in use volumes size and then add them all to get total capacity being used by volumes.

Code:
aws ec2 describe-volumes --output table

Image

Thanks,
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Send an email if "No such file or directory" in the shell script program log in EBS concur

Hi All, I have the below code(.sh) and need to send an email. #!/bin/bash cp /u02/xxc_incoming/TEST*.dat /u02/xxc_archive_incoming/AMER7764_ARPP_2/ cat /u02/xxc_incoming/TEST*.dat > /u02/xxc_incoming/XXC_TEST.dat rm /u02/xxc_incoming/TEST*.dat cd $XXC_TOP/bin sqlldr userid=apps/<pwd> ... (12 Replies)
Discussion started by: Mist123
12 Replies

2. Shell Programming and Scripting

AWS S3 with Bash Script

Hello All, I am trying few stuff on Amazon S3 move files to EC2 (Ubuntu Server) I am receiving daily 2 files in S# bucket XYZ_2015-02-26_ 200.csv ABC_2015-02-26_ 200.csv I want to move daily received files to local EC2(Ubuntu server) and rename files to XYZ_2015-02-26.csv... (3 Replies)
Discussion started by: krux_rap
3 Replies

3. Shell Programming and Scripting

Host Script in the Cloud

OSX Is there a way to host a script on a server? Specifically, the end user would pop in a terminal command or script that fetches text (a formatted script) from a server and runs that code on the local system. I want to do this because I have a script that is constantly evolving and it... (7 Replies)
Discussion started by: sudo
7 Replies

4. UNIX and Linux Applications

Mod_proxy_html on Oracle EBS

Hi , I am trying to impliment mod_proxy and mod_proxy_html as a reverse proxy for oracle EBS. Everything is working fine except the submenu links (still pointing to the internal url) of the modules tree view. Please help me. Regards, Arumon (0 Replies)
Discussion started by: arumon
0 Replies

5. Virtualization and Cloud Computing

How to grow an EBS Array at AWS

This process was collected by trial and error (mostly error) since most of the documents I found on the 'net were incomplete. The cookbook/walkthrough on how to grow an Array on EBS at AWS... # walkthrough by John Jones (jjones at cirrhus9 dot com) umount /dev/md0 mdadm --stop /dev/md0... (0 Replies)
Discussion started by: Habitual
0 Replies

6. UNIX and Linux Applications

Sun EBS Networker 7.3

I am having an issue with Sun EBS Networker 7.3, (64 bit) (Sun Hardware, Solaris 9) where it expects an Oracle DB (11.5.10 with 10g Database (10.2.0.2)) size of 4294967295 bytes. The DB's get backed up anyway, but it's only happening to certain DB's. The warning messages occur at random intervals... (4 Replies)
Discussion started by: djembeplayer
4 Replies

7. Virtualization and Cloud Computing

Event Cloud Computing - IBM Turning Data Centers Into ?Computing Cloud?

Tim Bass Thu, 15 Nov 2007 23:55:07 +0000 *I predict we may experience less*debates*on the use of the term “event cloud”*related to*CEP in the future, now that both IBM and Google* have made announcements about “cloud computing” and “computing cloud”, IBM Turning Data Centers Into ‘Computing... (0 Replies)
Discussion started by: Linux Bot
0 Replies
Login or Register to Ask a Question