Hi
Using only Shell sh scripting
I need to get the QUE from 3 adapters. And it gives me the information as shown below. It is not always that there is a que, but when there is one it is the one below the adapter name.
I have an output from a comman that looks something like this. (In reality its longer, but this is 3 "adapters")
The end result of the script using the example data should be something like this.
Adapter_SB_SB_CRM_IVR_3 0
Adapter_NDOU_Oracle_I_CRM_3 null (there is no que)
Adapter_RKI_RKI_C_CRM_3 10
The trick is that I have to log if the que is above xx.
Hope some one can help
/Lhg
Using only Shell sh scripting
I need to get the QUE from 3 adapters. And it gives me the information as shown below. It is not always that there is a que, but when there is one it is the one below the adapter name.
I have an output from a comman that looks something like this. (In reality its longer, but this is 3 "adapters")
Code:
Adapter_SB_SB_CRM_IVR_3 (SiebelAdapter Version 4.2.1 build43 on host "abcrm15")
replyTo = Adapter_SB_SB_CRM_IVR_3
transactions = basic
CADK = 4.2i (4)
java.version = 1.2.2
java.vendor = Sun Microsystems Inc.
java.compiler = symcjit
os.name = Windows NT
os.arch = x86
os.version = 5.0
user.language = da
file.encoding = Cp1252
startTime = Tue Feb 26 00:00:09 CET 2008
totalMemory = 3354616
[b]queueLength = 0[/b]
Adapter_NDOU_Oracle_I_CRM_3 (oracle Version 4.0.4 052802 on host "elwood.dmt.dk")
replyTo = Adapter_NDOU_Oracle_I_CRM_3
dbVendor = oracle
transactions = basic
dbVersion = 8i
CADK = 4.2i (4)
java.version = 1.2.2.11
java.vendor = Hewlett-Packard Co.
java.compiler =
os.name = HP-UX
os.arch = PA_RISC
os.version = B.11.11
user.language = en
file.encoding = 8859_1
startTime = Thu Feb 14 02:52:18 CET 2008
totalMemory = 21553152
Adapter_RKI_RKI_C_CRM_3 (CRMRKIAdapter 4.0 on host "elwood.dmt.dk")
replyTo = Adapter_RKI_RKI_C_CRM_3
transactions = basic
CADK = 4.2i (4)
java.version = 1.2.2.11
java.vendor = Hewlett-Packard Co.
java.compiler =
os.name = HP-UX
os.arch = PA_RISC
os.version = B.11.11
user.language = en
file.encoding = 8859_1
startTime = Mon Feb 04 03:58:22 CET 2008
totalMemory = 4980736
[b]queueLength = 10[/b]
The end result of the script using the example data should be something like this.
Adapter_SB_SB_CRM_IVR_3 0
Adapter_NDOU_Oracle_I_CRM_3 null (there is no que)
Adapter_RKI_RKI_C_CRM_3 10
The trick is that I have to log if the que is above xx.
Hope some one can help
/Lhg