From bbe5e03bfcf0dd7f6799dd5536a67c92660a3a47 Mon Sep 17 00:00:00 2001 From: vivek mahalingam Date: Mon, 29 Jul 2024 15:35:17 +0530 Subject: [PATCH] Code for Os Auto check --- rdb/build.gradle | 5 ++++- .../informix_solaris10/active_session_count.sh | 18 ++++++++++++++++++ .../informix_solaris10/cache_read_ratio.sh | 18 ++++++++++++++++++ .../informix_solaris10/cache_write_ratio.sh | 18 ++++++++++++++++++ rdb/scripts/informix_solaris10/disk_read.sh | 13 +++++++++++++ rdb/scripts/informix_solaris10/disk_write.sh | 13 +++++++++++++ .../informix_solaris10/io_read_count.sh | 13 +++++++++++++ .../informix_solaris10/io_write_count.sh | 13 +++++++++++++ rdb/scripts/informix_solaris10/lock_count.sh | 13 +++++++++++++ rdb/scripts/informix_solaris10/lock_waits.sh | 13 +++++++++++++ rdb/scripts/informix_solaris10/lru_writes.sh | 13 +++++++++++++ .../informix_solaris10/memory_utilization.sh | 13 +++++++++++++ .../informix_solaris10/overflow_lock_count.sh | 13 +++++++++++++ .../overflow_transaction_count.sh | 13 +++++++++++++ .../informix_solaris10/overflow_user_count.sh | 13 +++++++++++++ .../informix_solaris10/session_count.sh | 13 +++++++++++++ rdb/scripts/informix_solaris10/sql_count.sh | 13 +++++++++++++ .../informix_solaris10/tablespace_max.sh | 13 +++++++++++++ .../informix_solaris10/tablespace_size.sh | 13 +++++++++++++ .../informix_solaris10/tablespace_used.sh | 13 +++++++++++++ .../tablespace_utilization.sh | 13 +++++++++++++ .../informix_solaris10/task_wait_count.sh | 13 +++++++++++++ .../informix_solaris10/transaction_count.sh | 13 +++++++++++++ .../impl/informix/OnstatCommandExecutor.java | 14 ++++++++++++-- 24 files changed, 317 insertions(+), 3 deletions(-) create mode 100644 rdb/scripts/informix_solaris10/active_session_count.sh create mode 100644 rdb/scripts/informix_solaris10/cache_read_ratio.sh create mode 100644 rdb/scripts/informix_solaris10/cache_write_ratio.sh create mode 100644 rdb/scripts/informix_solaris10/disk_read.sh create mode 100644 rdb/scripts/informix_solaris10/disk_write.sh create mode 100644 rdb/scripts/informix_solaris10/io_read_count.sh create mode 100644 rdb/scripts/informix_solaris10/io_write_count.sh create mode 100644 rdb/scripts/informix_solaris10/lock_count.sh create mode 100644 rdb/scripts/informix_solaris10/lock_waits.sh create mode 100644 rdb/scripts/informix_solaris10/lru_writes.sh create mode 100644 rdb/scripts/informix_solaris10/memory_utilization.sh create mode 100644 rdb/scripts/informix_solaris10/overflow_lock_count.sh create mode 100644 rdb/scripts/informix_solaris10/overflow_transaction_count.sh create mode 100644 rdb/scripts/informix_solaris10/overflow_user_count.sh create mode 100644 rdb/scripts/informix_solaris10/session_count.sh create mode 100644 rdb/scripts/informix_solaris10/sql_count.sh create mode 100644 rdb/scripts/informix_solaris10/tablespace_max.sh create mode 100644 rdb/scripts/informix_solaris10/tablespace_size.sh create mode 100644 rdb/scripts/informix_solaris10/tablespace_used.sh create mode 100644 rdb/scripts/informix_solaris10/tablespace_utilization.sh create mode 100644 rdb/scripts/informix_solaris10/task_wait_count.sh create mode 100644 rdb/scripts/informix_solaris10/transaction_count.sh diff --git a/rdb/build.gradle b/rdb/build.gradle index c77a34a..6955260 100644 --- a/rdb/build.gradle +++ b/rdb/build.gradle @@ -32,6 +32,7 @@ dependencies { implementation("mysql:mysql-connector-java:5.1.46") implementation(files("libs/DmJdbcDriver18.jar")) implementation(files("libs/vault-1.0.0.jar")) + implementation 'org.apache.commons:commons-lang3:3.6' } application { @@ -45,7 +46,9 @@ applicationDistribution.from("config") { applicationDistribution.from("scripts/informix") { into "scripts" } - +applicationDistribution.from("scripts/informix_solaris10") { + into "scripts_solaris10" +} test { useJUnitPlatform() } diff --git a/rdb/scripts/informix_solaris10/active_session_count.sh b/rdb/scripts/informix_solaris10/active_session_count.sh new file mode 100644 index 0000000..9e993dc --- /dev/null +++ b/rdb/scripts/informix_solaris10/active_session_count.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/cache_read_ratio.sh b/rdb/scripts/informix_solaris10/cache_read_ratio.sh new file mode 100644 index 0000000..988aa89 --- /dev/null +++ b/rdb/scripts/informix_solaris10/cache_read_ratio.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/cache_write_ratio.sh b/rdb/scripts/informix_solaris10/cache_write_ratio.sh new file mode 100644 index 0000000..b8a7615 --- /dev/null +++ b/rdb/scripts/informix_solaris10/cache_write_ratio.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/disk_read.sh b/rdb/scripts/informix_solaris10/disk_read.sh new file mode 100644 index 0000000..22be60f --- /dev/null +++ b/rdb/scripts/informix_solaris10/disk_read.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/disk_write.sh b/rdb/scripts/informix_solaris10/disk_write.sh new file mode 100644 index 0000000..2ba4b66 --- /dev/null +++ b/rdb/scripts/informix_solaris10/disk_write.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/io_read_count.sh b/rdb/scripts/informix_solaris10/io_read_count.sh new file mode 100644 index 0000000..fcfc017 --- /dev/null +++ b/rdb/scripts/informix_solaris10/io_read_count.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/io_write_count.sh b/rdb/scripts/informix_solaris10/io_write_count.sh new file mode 100644 index 0000000..38daab1 --- /dev/null +++ b/rdb/scripts/informix_solaris10/io_write_count.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/lock_count.sh b/rdb/scripts/informix_solaris10/lock_count.sh new file mode 100644 index 0000000..f27100b --- /dev/null +++ b/rdb/scripts/informix_solaris10/lock_count.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/lock_waits.sh b/rdb/scripts/informix_solaris10/lock_waits.sh new file mode 100644 index 0000000..6a8b951 --- /dev/null +++ b/rdb/scripts/informix_solaris10/lock_waits.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/lru_writes.sh b/rdb/scripts/informix_solaris10/lru_writes.sh new file mode 100644 index 0000000..3a984d7 --- /dev/null +++ b/rdb/scripts/informix_solaris10/lru_writes.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/memory_utilization.sh b/rdb/scripts/informix_solaris10/memory_utilization.sh new file mode 100644 index 0000000..4032291 --- /dev/null +++ b/rdb/scripts/informix_solaris10/memory_utilization.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/overflow_lock_count.sh b/rdb/scripts/informix_solaris10/overflow_lock_count.sh new file mode 100644 index 0000000..876fba9 --- /dev/null +++ b/rdb/scripts/informix_solaris10/overflow_lock_count.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/overflow_transaction_count.sh b/rdb/scripts/informix_solaris10/overflow_transaction_count.sh new file mode 100644 index 0000000..b3441b8 --- /dev/null +++ b/rdb/scripts/informix_solaris10/overflow_transaction_count.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/overflow_user_count.sh b/rdb/scripts/informix_solaris10/overflow_user_count.sh new file mode 100644 index 0000000..870cd3d --- /dev/null +++ b/rdb/scripts/informix_solaris10/overflow_user_count.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/session_count.sh b/rdb/scripts/informix_solaris10/session_count.sh new file mode 100644 index 0000000..3e4f587 --- /dev/null +++ b/rdb/scripts/informix_solaris10/session_count.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/sql_count.sh b/rdb/scripts/informix_solaris10/sql_count.sh new file mode 100644 index 0000000..088e3ee --- /dev/null +++ b/rdb/scripts/informix_solaris10/sql_count.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/tablespace_max.sh b/rdb/scripts/informix_solaris10/tablespace_max.sh new file mode 100644 index 0000000..d029773 --- /dev/null +++ b/rdb/scripts/informix_solaris10/tablespace_max.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/tablespace_size.sh b/rdb/scripts/informix_solaris10/tablespace_size.sh new file mode 100644 index 0000000..061198b --- /dev/null +++ b/rdb/scripts/informix_solaris10/tablespace_size.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/tablespace_used.sh b/rdb/scripts/informix_solaris10/tablespace_used.sh new file mode 100644 index 0000000..e195c6e --- /dev/null +++ b/rdb/scripts/informix_solaris10/tablespace_used.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/tablespace_utilization.sh b/rdb/scripts/informix_solaris10/tablespace_utilization.sh new file mode 100644 index 0000000..f905e19 --- /dev/null +++ b/rdb/scripts/informix_solaris10/tablespace_utilization.sh @@ -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 diff --git a/rdb/scripts/informix_solaris10/task_wait_count.sh b/rdb/scripts/informix_solaris10/task_wait_count.sh new file mode 100644 index 0000000..ca9e89d --- /dev/null +++ b/rdb/scripts/informix_solaris10/task_wait_count.sh @@ -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 \ No newline at end of file diff --git a/rdb/scripts/informix_solaris10/transaction_count.sh b/rdb/scripts/informix_solaris10/transaction_count.sh new file mode 100644 index 0000000..faa43b7 --- /dev/null +++ b/rdb/scripts/informix_solaris10/transaction_count.sh @@ -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 diff --git a/rdb/src/main/java/com/instana/dc/rdb/impl/informix/OnstatCommandExecutor.java b/rdb/src/main/java/com/instana/dc/rdb/impl/informix/OnstatCommandExecutor.java index 328d01f..285597a 100644 --- a/rdb/src/main/java/com/instana/dc/rdb/impl/informix/OnstatCommandExecutor.java +++ b/rdb/src/main/java/com/instana/dc/rdb/impl/informix/OnstatCommandExecutor.java @@ -13,10 +13,11 @@ import java.util.Optional; import java.util.logging.Level; import java.util.logging.Logger; +import org.apache.commons.lang3.SystemUtils; public class OnstatCommandExecutor { private static final Logger LOGGER = Logger.getLogger(OnstatCommandExecutor.class.getName()); - public static final String SHELL_SCRIPT = "sh"; + public static String SHELL_SCRIPT; public static final String LINE_BREAK = "\n"; private final String dbPath; private final String binPath; @@ -39,7 +40,16 @@ public OnstatCommandExecutor(String dbPath, String serverName) { * @return : Value as String[] */ public Optional executeCommand(String fileName) { - String path = "scripts/" + fileName; + String path; + if(SystemUtils.OS_NAME.equals("SunOS") && SystemUtils.OS_VERSION.equals("5.10")) { + path = "scripts_solaris10/" + fileName; + SHELL_SCRIPT = "ksh"; + } + else { + path = "scripts/" + fileName; + SHELL_SCRIPT = "sh"; + } + String[] command = new String[]{ SHELL_SCRIPT, path,