SlideShare a Scribd company logo
1 of 15
Backup Checks… the easy way

A look at automating and extending Spiceworks
                       by
               William Nel-Barker
The Problem

 Backup checks take too long to do!
   – Many customers
      • If 5 minutes/customer x 60 customers = 3 hrs/day!
   – Need to maintain quality of Service
      •   Techie time can be far better spent than on checks
      •   Yet backups are essential
      •   And so backup checks are essential
      •   Need to automate it
The Limitations
    – Spiceworks was designed for single site
       • Remote Collector adds support for multiple sites
    – No native support for multiple customers
       • But customers may be added as devices
    – No easy way to get data into/out of Spiceworks
       • E-mailing data to Spiceworks is safe
       • Reading directly from the database is safe
       • Custom scripts needed
The Challenge
   – Insert data into Spiceworks safely
      • E-mail helpdesk
      • NEVER write to the database!
   – Get data out of Spiceworks safely
      • Read the database directly
   – Notifications arrive by e-mail
      • Need to automate Outlook
      • Mail rules within Outlook
   – Auto-create Backup Check tickets
      • Scheduled script that e-mails the helpdesk
The Process
   – Bullet-proof the checks
      • 3 categories: Success, Failure & No Notification
      • No Notification is treated as failure!
   – Successful backups
      • Auto-close the ticket
   – Failed backups
      • Ticket remains open & techie investigates failure
      • Ticket is updated with status
      • Account manager is auto-cc’d
The Plan
   – Automate creation of tickets
      •   Scheduled VBScript
      •   Customer (as device) has custom field checkbackup
      •   VBScript reads from Spiceworks database
      •   If checkbackup = Yes then create ticket
      •   We control which customers has a backup check ticket
          created from within Spiceworks
   – Automate Outlook
      •   Mail rule to run a script is conditions are met
      •   Script (VBA) exports message as MSG.TXT file
      •   VBA Script calls external VBScript
      •   VBScript reads MSG.TXT
The VBScript
      •   Reads MSG.TXT and looks for certain fields within it
      •   Mail From tells us who the customer is
      •   Date tells us when the message was sent
      •   IF-THEN loops within VBScript for each customer
      •   SQL query unique for each customer
      •   Connects to Spiceworks DB and gets ticket NR
      •   Sends e-mail to update the ticket, e.g. backup
          succeeded, so #close the ticket
IF-THEN loops
      • Not all customers use the same backup software
      • Backup notifications are different
      • Small Business Server is in Daily Summary Report
      • Backup Exec, Altaro, Yosimite, etc send dedicated e-
        mail
      • We need to support all these methods
The Notifications
    Example notifications
       • Backup Exec: (Server: “< Servername >") (Job: "Full Server")
         The job completed successfully. However, the following
         conditions were encountered: 29 files were skipped.
       • Backup Exec: (Server: “<Servername>") (Job: "Daily
         Backup") Daily Backup -- The job failed with the following
         error: The item could not be opened while in use.
       • SBS 2003 Report: Backup: Completed successfully
       • SBS 2008/2011 Report: Backup OK
       • Altaro: Successful backup <virtualservername>
       • Altaro: Failed backup <virtualservername>
Building it
    Example IF-THEN loop
       If strEmail = "administrator@CustomerName.co.uk" then
               strCust = "CustomerName"
               strSql = "select * from `tickets` WHERE c_backup_status = 'To be checked'
       AND status = 'open' and description = 'Do daily backup check for CustomerName'
       AND created_at >= " & strDate
               If InStr(strMsg,"Backup Exec Alert: Job Failed (Server:") >30 then
                    strBody = vbCrLf & "CustomerName - The last backup failed."
                    strCmd = "#set c_backup_status=Failed"
               End If
               If InStr(strMsg,"The job completed successfully") >30 then
                    strBody = vbCrLf & "CustomerName - Last backup: Backup was
       successful."
                    strCmd = "#set c_backup_status=OK"
               End If
The SQL

     select * from `tickets` - get everything from the Tickets table
     WHERE c_backup_status = 'To be checked' – This value is set by
     the script that creates the ticket
     AND status = 'open'
     AND description = 'Do daily backup check for CustomerName' –
     We want tickets for a particular customer
     AND created_at >= " & strDate – We can play with the date to
     allow for weekends
The E-mail
 From:    Zantra JAD Backup Checks
 Sent:    16 May 2012 11:29
 To:      Spiceworks
 Subject: [Ticket #4303] Customername - do daily Windows backup checks on
 16/05/2012

 -Summary-             -This allows us to cherry-pick what goes into our monthly reports

 Customername - Last backup: Windows backup was successful

 #assign Backup    - Dedicated account to assign backup tickets to
 #set c_backup_status=OK     - Custom value that makes it easy to run a report
 #close            - Successful backup, let’s close the ticket!

 Recognise this? We’re using Tickets Anywhere!
The Overview
     • We automate backup checks
     • We auto-close successful backup tickets
     • We have fail-safes designed into the process
     • We add customers as devices
     • We use My Ticket Rules to auto-relate tickets to
       customers (devices)
     • We extensively use custom fields
     • We NEVER write to the database
     • We save many hours each day
The Future

   –   Flexible system
   –   Allows support for ANY alerting system
   –   As long as alerts are by e-mail
   –   Spiceworks How-to will be published
The End

More Related Content

Similar to Checking your back ups without batting an eye

SharePoint Saturday Kansas City - Kerberos Survival Guide
SharePoint Saturday Kansas City - Kerberos Survival GuideSharePoint Saturday Kansas City - Kerberos Survival Guide
SharePoint Saturday Kansas City - Kerberos Survival GuideJ.D. Wade
 
Agile db testing_techniques
Agile db testing_techniquesAgile db testing_techniques
Agile db testing_techniquesTarik Essawi
 
Kerberos Survival Guide - St. Louis Day of .Net
Kerberos Survival Guide - St. Louis Day of .NetKerberos Survival Guide - St. Louis Day of .Net
Kerberos Survival Guide - St. Louis Day of .NetJ.D. Wade
 
What you need to know for postgresql operation
What you need to know for postgresql operationWhat you need to know for postgresql operation
What you need to know for postgresql operationAnton Bushmelev
 
Kerberos survival guide
Kerberos survival guideKerberos survival guide
Kerberos survival guideJ.D. Wade
 
SQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedSQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedConfio Software
 
Silicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
Silicon Valley Code Camp 2015 - Advanced MongoDB - The SequelSilicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
Silicon Valley Code Camp 2015 - Advanced MongoDB - The SequelDaniel Coupal
 
transactions-advanced for automatic payment.pptx
transactions-advanced for automatic payment.pptxtransactions-advanced for automatic payment.pptx
transactions-advanced for automatic payment.pptxssusereced02
 
Azure Saturday 2017 - Hold my beer...
Azure Saturday 2017 - Hold my beer...Azure Saturday 2017 - Hold my beer...
Azure Saturday 2017 - Hold my beer...Eric Berg
 
Llunitebe2018 worst config mgr cb mistakes
Llunitebe2018 worst config mgr cb mistakesLlunitebe2018 worst config mgr cb mistakes
Llunitebe2018 worst config mgr cb mistakesKenny Buntinx
 
Kerberos Survival Guide: SharePoint Saturday Nashville 2015
Kerberos Survival Guide: SharePoint Saturday Nashville 2015Kerberos Survival Guide: SharePoint Saturday Nashville 2015
Kerberos Survival Guide: SharePoint Saturday Nashville 2015J.D. Wade
 
Java - Servlet - Mazenet Solution
Java - Servlet - Mazenet SolutionJava - Servlet - Mazenet Solution
Java - Servlet - Mazenet SolutionMazenetsolution
 
Ansible benelux meetup - Amsterdam 27-5-2015
Ansible benelux meetup - Amsterdam 27-5-2015Ansible benelux meetup - Amsterdam 27-5-2015
Ansible benelux meetup - Amsterdam 27-5-2015Pavel Chunyayev
 
Applying Vistara Runbook Automation
Applying Vistara Runbook AutomationApplying Vistara Runbook Automation
Applying Vistara Runbook AutomationVistara
 
Kaseya Connect 2012 - Service Automation
Kaseya Connect 2012 - Service AutomationKaseya Connect 2012 - Service Automation
Kaseya Connect 2012 - Service AutomationKaseya
 
Advance java session 19
Advance java session 19Advance java session 19
Advance java session 19Smita B Kumar
 

Similar to Checking your back ups without batting an eye (20)

SharePoint Saturday Kansas City - Kerberos Survival Guide
SharePoint Saturday Kansas City - Kerberos Survival GuideSharePoint Saturday Kansas City - Kerberos Survival Guide
SharePoint Saturday Kansas City - Kerberos Survival Guide
 
Agile db testing_techniques
Agile db testing_techniquesAgile db testing_techniques
Agile db testing_techniques
 
Kerberos Survival Guide - St. Louis Day of .Net
Kerberos Survival Guide - St. Louis Day of .NetKerberos Survival Guide - St. Louis Day of .Net
Kerberos Survival Guide - St. Louis Day of .Net
 
What you need to know for postgresql operation
What you need to know for postgresql operationWhat you need to know for postgresql operation
What you need to know for postgresql operation
 
Kerberos survival guide
Kerberos survival guideKerberos survival guide
Kerberos survival guide
 
SQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedSQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type Explained
 
Silicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
Silicon Valley Code Camp 2015 - Advanced MongoDB - The SequelSilicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
Silicon Valley Code Camp 2015 - Advanced MongoDB - The Sequel
 
transactions-advanced for automatic payment.pptx
transactions-advanced for automatic payment.pptxtransactions-advanced for automatic payment.pptx
transactions-advanced for automatic payment.pptx
 
Azure Saturday 2017 - Hold my beer...
Azure Saturday 2017 - Hold my beer...Azure Saturday 2017 - Hold my beer...
Azure Saturday 2017 - Hold my beer...
 
Llunitebe2018 worst config mgr cb mistakes
Llunitebe2018 worst config mgr cb mistakesLlunitebe2018 worst config mgr cb mistakes
Llunitebe2018 worst config mgr cb mistakes
 
Kerberos Survival Guide: SharePoint Saturday Nashville 2015
Kerberos Survival Guide: SharePoint Saturday Nashville 2015Kerberos Survival Guide: SharePoint Saturday Nashville 2015
Kerberos Survival Guide: SharePoint Saturday Nashville 2015
 
Atm System
Atm SystemAtm System
Atm System
 
Sessions&cookies
Sessions&cookiesSessions&cookies
Sessions&cookies
 
Java - Servlet - Mazenet Solution
Java - Servlet - Mazenet SolutionJava - Servlet - Mazenet Solution
Java - Servlet - Mazenet Solution
 
Ansible benelux meetup - Amsterdam 27-5-2015
Ansible benelux meetup - Amsterdam 27-5-2015Ansible benelux meetup - Amsterdam 27-5-2015
Ansible benelux meetup - Amsterdam 27-5-2015
 
Applying Vistara Runbook Automation
Applying Vistara Runbook AutomationApplying Vistara Runbook Automation
Applying Vistara Runbook Automation
 
Adapting to evolving user, security, and business needs with aruba clear pass
Adapting to evolving user, security, and business needs with aruba clear passAdapting to evolving user, security, and business needs with aruba clear pass
Adapting to evolving user, security, and business needs with aruba clear pass
 
Kaseya Connect 2012 - Service Automation
Kaseya Connect 2012 - Service AutomationKaseya Connect 2012 - Service Automation
Kaseya Connect 2012 - Service Automation
 
Advance java session 19
Advance java session 19Advance java session 19
Advance java session 19
 
Database training for developers
Database training for developersDatabase training for developers
Database training for developers
 

More from Spiceworks

SpiceWorld London 2012 presentation Eaton
SpiceWorld London 2012 presentation EatonSpiceWorld London 2012 presentation Eaton
SpiceWorld London 2012 presentation EatonSpiceworks
 
Spice world london 2012 Grey Howe
Spice world london 2012 Grey HoweSpice world london 2012 Grey Howe
Spice world london 2012 Grey HoweSpiceworks
 
Spice world london 2012 Ben Snape
Spice world london 2012 Ben SnapeSpice world london 2012 Ben Snape
Spice world london 2012 Ben SnapeSpiceworks
 
SpiceWorld London 2012 Presentation Matthieu Jaeger
SpiceWorld London 2012 Presentation Matthieu JaegerSpiceWorld London 2012 Presentation Matthieu Jaeger
SpiceWorld London 2012 Presentation Matthieu JaegerSpiceworks
 
EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...
EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...
EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...Spiceworks
 
Bringing Patch Management to Spiceworks
Bringing Patch Management to SpiceworksBringing Patch Management to Spiceworks
Bringing Patch Management to SpiceworksSpiceworks
 
Introducing....Office 365
Introducing....Office 365Introducing....Office 365
Introducing....Office 365Spiceworks
 
Making Sense of the Cloud
Making Sense of the CloudMaking Sense of the Cloud
Making Sense of the CloudSpiceworks
 
Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...
Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...
Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...Spiceworks
 
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...Spiceworks
 
Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...
Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...
Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...Spiceworks
 
Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...
Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...
Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...Spiceworks
 
Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...
Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...
Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...Spiceworks
 
A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...
A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...
A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...Spiceworks
 
Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...
Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...
Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...Spiceworks
 
Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...
Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...
Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...Spiceworks
 
Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...
Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...
Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...Spiceworks
 
How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...
How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...
How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...Spiceworks
 
Using Spiceworks for Change Control - Justin Davison, R J Lee Group
Using Spiceworks for Change Control - Justin Davison, R J Lee GroupUsing Spiceworks for Change Control - Justin Davison, R J Lee Group
Using Spiceworks for Change Control - Justin Davison, R J Lee GroupSpiceworks
 
Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...
Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...
Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...Spiceworks
 

More from Spiceworks (20)

SpiceWorld London 2012 presentation Eaton
SpiceWorld London 2012 presentation EatonSpiceWorld London 2012 presentation Eaton
SpiceWorld London 2012 presentation Eaton
 
Spice world london 2012 Grey Howe
Spice world london 2012 Grey HoweSpice world london 2012 Grey Howe
Spice world london 2012 Grey Howe
 
Spice world london 2012 Ben Snape
Spice world london 2012 Ben SnapeSpice world london 2012 Ben Snape
Spice world london 2012 Ben Snape
 
SpiceWorld London 2012 Presentation Matthieu Jaeger
SpiceWorld London 2012 Presentation Matthieu JaegerSpiceWorld London 2012 Presentation Matthieu Jaeger
SpiceWorld London 2012 Presentation Matthieu Jaeger
 
EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...
EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...
EatonVirtualization, Connectivity and the Cloud — Trends Driving the Future o...
 
Bringing Patch Management to Spiceworks
Bringing Patch Management to SpiceworksBringing Patch Management to Spiceworks
Bringing Patch Management to Spiceworks
 
Introducing....Office 365
Introducing....Office 365Introducing....Office 365
Introducing....Office 365
 
Making Sense of the Cloud
Making Sense of the CloudMaking Sense of the Cloud
Making Sense of the Cloud
 
Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...
Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...
Virtualization: A Case Study from the IT Trenches - Darren Schoen, Broward Ce...
 
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
 
Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...
Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...
Can't Do It with Spiceworks? You Can Build an Extension for That! - Scott Con...
 
Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...
Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...
Security Essentials for the SMB IT Network (on a Shoestring Budget!) - Adam W...
 
Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...
Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...
Raising the Bar on Remote Site Management - Francis Sullivan & Stephen Chudle...
 
A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...
A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...
A Whole New Way to Keep Track of Your People & IT Purchasing - Justin Perkins...
 
Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...
Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...
Going the Extra Mile in Network Monitoring & Management - Greg Kattawar, Spic...
 
Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...
Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...
Getting More Nitty-gritty Details on Your Network - Brian Gugliemetti, Spicew...
 
Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...
Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...
Keep IT Simple (& Get IT All Done!) with Spiceworks - Paul Luciano, Expand In...
 
How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...
How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...
How to Take an Enterprise Approach in a SMB World - Jeff Shuron, Sports Physi...
 
Using Spiceworks for Change Control - Justin Davison, R J Lee Group
Using Spiceworks for Change Control - Justin Davison, R J Lee GroupUsing Spiceworks for Change Control - Justin Davison, R J Lee Group
Using Spiceworks for Change Control - Justin Davison, R J Lee Group
 
Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...
Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...
Back-up Solutions: Where to Cut Corners & Where Not To - Daniel Kimberlin, En...
 

Recently uploaded

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 

Checking your back ups without batting an eye

  • 1. Backup Checks… the easy way A look at automating and extending Spiceworks by William Nel-Barker
  • 2. The Problem Backup checks take too long to do! – Many customers • If 5 minutes/customer x 60 customers = 3 hrs/day! – Need to maintain quality of Service • Techie time can be far better spent than on checks • Yet backups are essential • And so backup checks are essential • Need to automate it
  • 3. The Limitations – Spiceworks was designed for single site • Remote Collector adds support for multiple sites – No native support for multiple customers • But customers may be added as devices – No easy way to get data into/out of Spiceworks • E-mailing data to Spiceworks is safe • Reading directly from the database is safe • Custom scripts needed
  • 4. The Challenge – Insert data into Spiceworks safely • E-mail helpdesk • NEVER write to the database! – Get data out of Spiceworks safely • Read the database directly – Notifications arrive by e-mail • Need to automate Outlook • Mail rules within Outlook – Auto-create Backup Check tickets • Scheduled script that e-mails the helpdesk
  • 5. The Process – Bullet-proof the checks • 3 categories: Success, Failure & No Notification • No Notification is treated as failure! – Successful backups • Auto-close the ticket – Failed backups • Ticket remains open & techie investigates failure • Ticket is updated with status • Account manager is auto-cc’d
  • 6. The Plan – Automate creation of tickets • Scheduled VBScript • Customer (as device) has custom field checkbackup • VBScript reads from Spiceworks database • If checkbackup = Yes then create ticket • We control which customers has a backup check ticket created from within Spiceworks – Automate Outlook • Mail rule to run a script is conditions are met • Script (VBA) exports message as MSG.TXT file • VBA Script calls external VBScript • VBScript reads MSG.TXT
  • 7. The VBScript • Reads MSG.TXT and looks for certain fields within it • Mail From tells us who the customer is • Date tells us when the message was sent • IF-THEN loops within VBScript for each customer • SQL query unique for each customer • Connects to Spiceworks DB and gets ticket NR • Sends e-mail to update the ticket, e.g. backup succeeded, so #close the ticket
  • 8. IF-THEN loops • Not all customers use the same backup software • Backup notifications are different • Small Business Server is in Daily Summary Report • Backup Exec, Altaro, Yosimite, etc send dedicated e- mail • We need to support all these methods
  • 9. The Notifications Example notifications • Backup Exec: (Server: “< Servername >") (Job: "Full Server") The job completed successfully. However, the following conditions were encountered: 29 files were skipped. • Backup Exec: (Server: “<Servername>") (Job: "Daily Backup") Daily Backup -- The job failed with the following error: The item could not be opened while in use. • SBS 2003 Report: Backup: Completed successfully • SBS 2008/2011 Report: Backup OK • Altaro: Successful backup <virtualservername> • Altaro: Failed backup <virtualservername>
  • 10. Building it Example IF-THEN loop If strEmail = "administrator@CustomerName.co.uk" then strCust = "CustomerName" strSql = "select * from `tickets` WHERE c_backup_status = 'To be checked' AND status = 'open' and description = 'Do daily backup check for CustomerName' AND created_at >= " & strDate If InStr(strMsg,"Backup Exec Alert: Job Failed (Server:") >30 then strBody = vbCrLf & "CustomerName - The last backup failed." strCmd = "#set c_backup_status=Failed" End If If InStr(strMsg,"The job completed successfully") >30 then strBody = vbCrLf & "CustomerName - Last backup: Backup was successful." strCmd = "#set c_backup_status=OK" End If
  • 11. The SQL select * from `tickets` - get everything from the Tickets table WHERE c_backup_status = 'To be checked' – This value is set by the script that creates the ticket AND status = 'open' AND description = 'Do daily backup check for CustomerName' – We want tickets for a particular customer AND created_at >= " & strDate – We can play with the date to allow for weekends
  • 12. The E-mail From: Zantra JAD Backup Checks Sent: 16 May 2012 11:29 To: Spiceworks Subject: [Ticket #4303] Customername - do daily Windows backup checks on 16/05/2012 -Summary- -This allows us to cherry-pick what goes into our monthly reports Customername - Last backup: Windows backup was successful #assign Backup - Dedicated account to assign backup tickets to #set c_backup_status=OK - Custom value that makes it easy to run a report #close - Successful backup, let’s close the ticket! Recognise this? We’re using Tickets Anywhere!
  • 13. The Overview • We automate backup checks • We auto-close successful backup tickets • We have fail-safes designed into the process • We add customers as devices • We use My Ticket Rules to auto-relate tickets to customers (devices) • We extensively use custom fields • We NEVER write to the database • We save many hours each day
  • 14. The Future – Flexible system – Allows support for ANY alerting system – As long as alerts are by e-mail – Spiceworks How-to will be published