-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from instana/InormixOsCheck
Code for Os Auto check
- Loading branch information
Showing
24 changed files
with
317 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# !/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
INFORMIXDIR=$2 && | ||
export INFORMIXDIR && | ||
ONCONFIG=$3 && | ||
export ONCONFIG && | ||
INFORMIXSERVER=$4 && | ||
export INFORMIXSERVER && | ||
PATH=$INFORMIXDIR/bin:$PATH && | ||
export PATH && | ||
INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
export INFORMIXSQLHOSTS && | ||
./onstat -g ses active | awk 'NR==2 {linecount = NF -2; if (linecount>0) print linecount; else print 0}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# !/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
INFORMIXDIR=$2 && | ||
export INFORMIXDIR && | ||
ONCONFIG=$3 && | ||
export ONCONFIG && | ||
INFORMIXSERVER=$4 && | ||
export INFORMIXSERVER && | ||
PATH=$INFORMIXDIR/bin:$PATH && | ||
export PATH && | ||
INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
export INFORMIXSQLHOSTS && | ||
./onstat -p |head -n 6| awk '{a[NR]=$0} END{print a[NR]}'| awk '{print $4}') | ||
|
||
echo $result|cut -d'.' -f 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# !/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
INFORMIXDIR=$2 && | ||
export INFORMIXDIR && | ||
ONCONFIG=$3 && | ||
export ONCONFIG && | ||
INFORMIXSERVER=$4 && | ||
export INFORMIXSERVER && | ||
PATH=$INFORMIXDIR/bin:$PATH && | ||
export PATH && | ||
INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
export INFORMIXSQLHOSTS && | ||
./onstat -p |head -n 6| awk '{a[NR]=$0} END{print a[NR]}'| awk '{print $8}') | ||
|
||
echo $result|cut -d'.' -f 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -p | awk 'NR==6 {print $1}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -p | awk 'NR==6 {print $5}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -g iof | awk 'NR==11 {print $2}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -g iof | awk 'NR==12 {print $2}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -k | awk '{a[NR]=$0} END{print a[NR-1]}' |awk '{print $1}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -p |head -n 18| awk '{a[NR]=$0} END{print a[NR]}'| awk '{print $2}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -F| head -n 6| awk '{a[NR]=$0} END{print a[NR]}'| awk '{print $2}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -g seg | grep -i 'total' | awk '{print $7*100/($7+$8)}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -p |head -n 15| awk '{a[NR]=$0} END{print a[NR]}'| awk '{print $1}') | ||
|
||
echo $result |
13 changes: 13 additions & 0 deletions
13
rdb/scripts/informix_solaris10/overflow_transaction_count.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -p |head -n 15| awk '{a[NR]=$0} END{print a[NR]}'| awk '{print $3}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -p |head -n 15| awk '{a[NR]=$0} END{print a[NR]}'| awk '{print $2}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -g ses | awk 'NR==2 {linecount = NF -2; if (linecount>0) print linecount; else print 0}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -g his 1 | head -n 10 | awk '{a[NR]=$0} END{print a[NR-1]}' | awk '{print $4}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -T | grep 'sysmaster' |awk '{print $8}' | awk '{sum+=$0;}END{print sum;}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -T | awk '{print $7}' | awk '{sum+=$0;}END{print sum;}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -T | awk '{print $8}' | awk '{sum+=$0;}END{print sum;}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -T | grep 'sysmaster' |awk '{print $7}' | awk '{sum+=$0;}END{print sum;}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFO RMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -g wai | awk '{RS=""; FS="\n"} NR==2 {linecount = NF -2; if (linecount>0) print linecount; else print 0}') | ||
|
||
echo $result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# (c) Copyright IBM Corp. 2024 | ||
# (c) Copyright Instana Inc. | ||
|
||
result=$(cd $1 && | ||
export INFORMIXDIR=$2 && | ||
export ONCONFIG=$3 && | ||
export INFORMIXSERVER=$4 && | ||
export PATH=$INFORMIXDIR/bin:$PATH && | ||
export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/$5 && | ||
./onstat -x | awk '{a[NR]=$0} END{print a[NR-1]}'| awk '{print $1}') | ||
|
||
echo $result |
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