Created
April 9, 2019 23:10
-
-
Save gokycat/893d8d7e674f69bd2c2b41da8692ca6c to your computer and use it in GitHub Desktop.
Get DB memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `db2 list db directory | grep Indirect -B 5 |grep "Database name" |awk {'print $4'} |sort -u | uniq`; do echo -ne $i" ";db2 get db cfg for $i | grep DATABASE_MEM|awk {'print $9'}|sed s/AUTOMATIC\(//g |sed s/\)//g ; donefor i in `db2 list db directory | grep Indirect -B 5 |grep "Database name" |awk {'print $4'} |sort -u | uniq`; do echo -ne $i" ";db2 get db cfg for $i | grep DATABASE_MEM|awk {'print $9'}|sed s/AUTOMATIC\(//g |sed s/\)//g ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment