IIS Log Archive Script


@ECHO OFF set script_dir=C:\scripts\w3c set iislog_dir=C:\WINDOWS\system32\LogFiles\W3SVC1 set backup_dir=%Date:~-4,4%-%Date:~-10,2%-%Date:~-7,2%-%Time:~-11,2%'%Time:~-8,2%'%Time:~-5,2% set archive_dir=\\File_Server\Log_Archive\%COMPUTERNAME%\W3SVC1 C: cd %iislog_dir% REM ====Create a backup folder named after Today's date========================== mkdir %backup_dir% echo Subject: %COMPUTERNAME% W3C Log Archive Report > %script_dir%\log.txt echo.>> %script_dir%\log.txt date /t >> %script_dir%\log.txt echo. >> %script_dir%\log.txt REM ====Move logs that older than 30 days to the backup folder=================== echo … Continue reading IIS Log Archive Script

EVA Max IO Transfer Size


The HP EVA storage is optimized to perform at 128KB Max IO transfer size or less. If the host operating system uses large block size, it may reduce the storage performance. For example, ESXi use 32MB by default. To tune the value, you can go to host software advanced settings. Reference: http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/mostViewedDisplay/?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_efb5c0793523e51970c8fa22b053ce01=wsrp-navigationalState%3DdocId%253Dmmr_kc-0101662-8%257CdocLocale%253Dzh_HK&javax.portlet.tpst=efb5c0793523e51970c8fa22b053ce01&sp4ts.oid=436460&ac.admitted=1385425196533.876444892.199480143 http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDisplay=wsrp-navigationalState%3DdocId%253Demr_na-c02518189-4%257CdocLocale%253D%257CcalledBy%253D&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003469

Host IPMI System Event Log Status


Sometimes you may still receive ‘Hosst IPMI System Event Log Status’ alerts (which means the system event log is full) even after you reset event log and reset sensors. In my case, the solution is ssh into the ESXi host and restart the sfcbd-watchdog service. ~ # /etc/init.d/sfcbd-watchdog statussfcbd is running.~ # /etc/init.d/sfcbd-watchdog restart~ # … Continue reading Host IPMI System Event Log Status

vCenter 5.1 service fails to start because of anti virus


The real time antivirus program or the vShield endpoint may cause the vCenter 5.1 service fail to start. I found this out the other day in the vpxd.log file. The error is something like No connection could be made because the target machine actively refused it. This is due to the real time anti virus … Continue reading vCenter 5.1 service fails to start because of anti virus