Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

746

December 11th, 2011 02:00

monitor thin Pool

Hi all

to monitor thin Pool space ,  use symcfg monitor command

we can create script to keep checking thin Pool Space and incase it reached thereshold value , symcfg excute another script ( to send email for example)

so if we wana do it in windows 2003

1- first script checkpool.bat

#######################

sub shell(cmd)

    ' Run a command as if you were running from the command line

    dim objShell

    Set objShell = WScript.CreateObject( "WScript.Shell" )

objShell.Run(cmd)

    Set objShell = Nothing

end sub

cd C:\Program Files (x86)\EMC\SYMCLI\bin\

c:

symcfg.exe -sid 123 -percent 80 -thin -pool R1FC30015K -gb monitor -action "cscript D:\script\sendmail.vbs"

#####################################

2-Second script to send email

#####################

Option Explicit

Dim strComputer

Dim objMessage

Set objMessage = CreateObject("CDO.Message")

objMessage.From ="IRA_ECC_Server@yalu.infinibyte.ae"'strComputer & "@YourDomain.com"

objMessage.To = "PLOadmin@infinibyte.ae"

objMessage.Subject = "R1FC30015K Pool Space reach thershold Warrning "

objMessage.Textbody = "R1FC30015K Pool Space reach 80%, kindly check " & Time

objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "192.168.1.15"

objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objMessage.Configuration.Fields.Update

objMessage.Send

Set objMessage = Nothing

############################

3-

Now schdule first script in Windows Task Schduler to run daily every one hour or 30 minutes

4- some people like to use symcfg with -i option  ( i prefer not to do that )

-without -i , you make window schduler run script every one hour , but with -i you make schduler run at startup and command will repeat itself based on -i value

---coz with -i  option , symcfg process will be running all the time , which consume more cpu,.ram , resources ... without i , symcfg process will be excuted once then Die , will be reissued every hour ( if Window schduler hourly for this task)

--with -i , output will appear in cmd (DOS) windows and incase someone by mistake close the Dos window , then you need to re-run the taske form Window Task Schduler or , create another script to make checkpoo.bat run in background

below 4th script so checkpool,dat run in background if using -i option

3rd script background.vbs , in that case in Windows Task schduler , you add this script which will call chekpoolwithI.bat and run it in background

#########

Set WshShell = CreateObject("WScript.Shell")

WshShell.Run chr(34) & "D:\script\checkpoolwithI.bat" & Chr(34), 0

Set WshShell = Nothing

###################

91 Posts

April 25th, 2012 07:00

Hi,

Thanks for the information. That was helpfull.

Regards

Jithin

No Events found!

Top