|
A |
B |
1 |
"SYNTAX_VERSION 6 ADVMONITOR ""CG-DBSPI-3215"" DESCRIPTION ""% of space used on a specific virtual device(M215_VirtDevSpUsdPct)"" SEPARATORS "" "" SEVERITY Normal APPLICATION ""MSSQL Server"" MSGGRP ""DBSPI"" HELPTEXT "" Probable Cause(s): Allocated storage is approaching total storage with the potential impact the inability to extend databases. CONDITION THRESHOLD 99.000000 SETSTART SEVERITY Critical APPLICATION "MSSQL Server" MSGGRP "MSS_Admin" SERVICE_NAME "SQL_Server_<$OPTION(server)>_@@<$MSG_NODE_ID>" |
Normal APPLICATION ""MSSQL Server"" MSGGRP ""DBSPI"" HELPTEXT "" Probable Cause(s): Allocated storage is approaching total storage with the potential impact the inability to extend databases. CONDITION THRESHOLD 99.000000 SETSTART SEVERITY Critical |
The formula in B1 is
=Between(A1, "Severity", "Application")
Function Between(sInp As String, sWd1 As String, sWd2 As String) As String
Dim iPos1 As Long
Dim iPos2 As Long
iPos1 = InStr(1, sInp, sWd1, vbTextCompare)
iPos2 = InStrRev(sInp, sWd2, , vbTextCompare)
If iPos1 > 0 And iPos2 > 0 Then
Between = Trim(Mid(sInp, iPos1 + Len(sWd1) + 1, iPos2 - iPos1 - Len(sWd1) - 1))
End If
End Function
Bookmarks