SlideShare una empresa de Scribd logo
1 de 35
Scripting & Automated Tasks 
A means of doing custom things for your custom Customers 
Ernest Byrd, Sales Engineer 
GFI MAX
Agenda 
» Why use Scripting? 
» Plug it in 
» Turn it on: Using a Script 
» FixITScripts.com 
» Interfacing with the MAX Remote Management Dashboard 
» Basic Scripts 
» Using a Script as an Automated Task 
» Basic Troubleshooting 
» Pseudo-Code and Modeling 
» Deeper Dive
Why use Scripting?
“EASY does it” 
Here at GFI MAX we aim for ease of use while 
remaining Comprehensive. With that said, there is 
always going to be a Customer that has specific and 
UNiQUe needs. 
If we fulfilled the needs of every Customer in our 
Dashboard, GFI MAX could be quite overwhelming. 
In order to remove complexity we have available the 
Scripting & Automated Tasks solution sets. These 
enable YOU to simply “plug in” a script, having it 
available for Automated Processes. 
Scripts can then be utilized by Superusers or 
Administrators within your Dashboard in order 
accomplish tasks across both small and larger 
Managed Networks.
What are some things that can be accomplished with Scripting? 
» File and Folder manipulation 
» System Cleanup 
» Localized Tasks 
» Creation of Mapped Drives 
» Informational Output 
» Application Download 
…The List goes on…
Plug it in
Plug it in 
Example: 
Plugging a Script into the MAX 
Remote Management 
Dashboard…
Turn it on: Using a Script
Put the Script to use 
Example: 
Calling on a Script in the MAX 
Remote Management 
Dashboard…
FixITScripts.com
Where can I find a good library 
of Scripts to plug into the GFI 
MAX Remote Management 
Dashboard? 
FixITScripts.com
FixITScripts.com 
Example: 
Pulling a Script from 
FixITScripts.com, plugging it 
into the MAX Remote 
Management Dashboard, 
viewing its output…
Interfacing with the MAX Remote Management 
Dashboard
The Script Writing Guidelines can be found in the Help Files at: 
https://dashboard.systemmonitor.us/helpcontents/script_guide.htm 
To locate the GFI MAX Remote Management Help Files:
» The Windows Advanced Monitoring Agent supports the following script types where there is an 
interpreter installed. DOS Batch, JavaScript, Perl, PHP, PowerShell, Python, Ruby, VBS and 
CMD. 
» The Linux Monitoring Agent and OSX Monitoring Agent supports Shell scripts and interpreted 
languages such as Perl, PHP, Python, Ruby for which there is a handler installed. 
» The status of the script - pass or fail - can be reported to the DashBoard through exit codes. Zero 
indicates success, with any other number recorded as a failure. 
Please note, we have reserved the exit codes 1 to 999 for use by the system scripts. As such we would 
suggest returning an exit code greater than 1000 in your scripts to ensure the text output is displayed 
correctly in the DashBoard. 
Exit Code Result 
0 Pass 
>0 Fail 
1 - 999 Reserved exit codes 
>1000 Displays text output in DashBoard
If a Fail is reported to the Dashboard, within the Dashboard you will see: 
If a Pass is reported to the Dashboard, within the Dashboard you will see: 
To output text from the script to the DashBoard, simply echo from the script to standard output 
(stdout). 
» For example in DOS Batch, VBScript and Powershell this can be achieved by: 
Pass Fail 
DOS Batch echo “Success Message” echo “Error Message” 
exit 0 exit 1001 
VBScript wscript.echo( “Success Message” ) wscript.echo( “Error Message” ) 
wscript.Quit(0) wscript.Quit(1001) 
PowerShell Write-Host “Success Message” Write-Host “Error Message” 
Exit 0 Exit 1001
Basic Scripts
Hello World 
Example: 
Writing a Script, in VBScript 
language, that will return the 
text “Hello World” into the MAX 
Remote Management 
Dashboard. The returned 
information can then be seen in 
the Script Check’s “Extra” 
(Informational) Column…
Hello World: Interactive Output 
If the Script is double-clicked on, here is what is 
seen: 
» Note that no prompts for User Input are 
seen, and the Script executes to completion.
Hello World: Calling Script from Command Line 
Example: 
Calling on HelloWorld.vbs from 
Command Line…
Hello World 
Once this script is plugged into the Dashboard and called on as a “Script Check”, the 
following results should appear:
Report a Failure to the MAX Remote Management Dashboard 
Script Contents: 
'Report Fail to Dashboard 
wscript.Quit(1001) 
Dashboard Output:
Script to accept Command Line Variables 
Script Contents: 
'Accept Command Line Variables and Return to Dashboard 
Dim Arg1 
Dim Arg2 
Arg1 = Wscript.Arguments.Item(0) 
Arg2 = Wscript.Arguments.Item(1) 
Wscript.Echo Arg1 & Arg2 
Dashboard Output:
Supplying Command Line Variables 
When viewing the Properties of a Script 
Check, there is a field to provide Command 
Line Variable(s). This is where Scripts that 
are written to accept Command Line 
Variable(s) can be given input.
Enumerating Class Variables from Win32_UserAccount 
Example: 
Calling to the 
“Win32_UserAccount” object in 
Windows, ensuring access to 
items within on my target 
device. This can then serve as a 
component into a larger Script if 
successful…
Resource: WMI Classes 
http://msdn.microsoft.com/en-us/library/aa394554(v=vs.85).aspx
Using a Script as an Automated Task
Using a Script as an Automated Task 
Example: 
Using the Maintenance 
Window script, seen at 
www.allthingsmax.com, 
as an Automated Task 
(http://www.allthingsmax.com/2014/ 
03/give-me-break.html)…
Basic Troubleshooting
Troubleshooting 101 
Essentially, once the script is plugged in to the GFI MAX Remote Management Dashboard and called 
on as: 
» A Script Check 
OR 
» An Automated Task 
…the script will execute in a command line fashion, running under the account which loads the 
“Advanced Monitoring Agent” Service.
Troubleshooting 101 
What this means: The Script which you are utilizing should not require any user input or 
interaction. If your script requires this, it will halt at the point of requirement and never 
allow the script to reach completion. 
Also, it is good to note that the default account for the “Advanced Monitoring Agent” 
Service is: Local System.
Troubleshooting 101 
“My script runs as intended when I double click it, or call on it from command line. How 
can I make it work in the GFI MAX Remote Management Dashboard?” 
If your script runs properly under a logged on account: 
» Review the account you are logged in with when running the script 
» Change your “Advanced Monitoring Agent” Service on the intended device to run with this same 
account 
(To find the account you are logged in with, the use of a command line call: WhoamI may be helpful.)
Pseudo-Code and Modeling
Script Development Essentials 
» Summarize what your Script or Automated Task is going to accomplish. This should be 
something that you can define in one or two sentences. 
» Write/Draw out the Logic used to develop your Script. This is commonly referred to as Pseudo-coding. 
» Convert your Pseudo-code into the desired Scripting language. 
If Then 
-If Then 
- 
Else 
While is Not 
Do
Deeper Dive

Más contenido relacionado

Similar a Scripting and Automation within the MAX Platform Ernest Byrd

Automation and delegation of exchange and office 365 adminstrative tasks with...
Automation and delegation of exchange and office 365 adminstrative tasks with...Automation and delegation of exchange and office 365 adminstrative tasks with...
Automation and delegation of exchange and office 365 adminstrative tasks with...Heiko Brenn
 
UI.Vision RPA Software 2020.pptx
UI.Vision RPA Software 2020.pptxUI.Vision RPA Software 2020.pptx
UI.Vision RPA Software 2020.pptxmayur970057
 
.NET Debugging Tips and Techniques
.NET Debugging Tips and Techniques.NET Debugging Tips and Techniques
.NET Debugging Tips and TechniquesBala Subra
 
.Net Debugging Techniques
.Net Debugging Techniques.Net Debugging Techniques
.Net Debugging TechniquesBala Subra
 
Architecture: Manual vs. Automation
Architecture: Manual vs. AutomationArchitecture: Manual vs. Automation
Architecture: Manual vs. AutomationAmazon Web Services
 
Advanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAdvanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAmazon Web Services
 
Advanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAdvanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAmazon Web Services
 
Serverless in production (O'Reilly Software Architecture)
Serverless in production (O'Reilly Software Architecture)Serverless in production (O'Reilly Software Architecture)
Serverless in production (O'Reilly Software Architecture)Yan Cui
 
(Don't) Go Tracing Server Calls
(Don't) Go Tracing Server Calls(Don't) Go Tracing Server Calls
(Don't) Go Tracing Server CallsBrandon Hunter
 
Debugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio ProjectsDebugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio ProjectsAVEVA
 
XPages Blast - ILUG 2010
XPages Blast - ILUG 2010XPages Blast - ILUG 2010
XPages Blast - ILUG 2010Tim Clark
 
2008 - TechDays PT: Building Software + Services with Volta
2008 - TechDays PT: Building Software + Services with Volta2008 - TechDays PT: Building Software + Services with Volta
2008 - TechDays PT: Building Software + Services with VoltaDaniel Fisher
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
"Running CF in a Shared Hosting Environment"
"Running CF in a Shared Hosting Environment""Running CF in a Shared Hosting Environment"
"Running CF in a Shared Hosting Environment"webhostingguy
 
Moving "Something Simple" To The Cloud - What It Really Takes
Moving "Something Simple" To The Cloud - What It Really TakesMoving "Something Simple" To The Cloud - What It Really Takes
Moving "Something Simple" To The Cloud - What It Really TakesCloverDX
 
Mobile Enterprise Applications
Mobile Enterprise ApplicationsMobile Enterprise Applications
Mobile Enterprise ApplicationsJason Conger
 
Apex Enterprise Patterns: Building Strong Foundations
Apex Enterprise Patterns: Building Strong FoundationsApex Enterprise Patterns: Building Strong Foundations
Apex Enterprise Patterns: Building Strong FoundationsSalesforce Developers
 

Similar a Scripting and Automation within the MAX Platform Ernest Byrd (20)

Java script
Java scriptJava script
Java script
 
Automation and delegation of exchange and office 365 adminstrative tasks with...
Automation and delegation of exchange and office 365 adminstrative tasks with...Automation and delegation of exchange and office 365 adminstrative tasks with...
Automation and delegation of exchange and office 365 adminstrative tasks with...
 
UI.Vision RPA Software 2020.pptx
UI.Vision RPA Software 2020.pptxUI.Vision RPA Software 2020.pptx
UI.Vision RPA Software 2020.pptx
 
.NET Debugging Tips and Techniques
.NET Debugging Tips and Techniques.NET Debugging Tips and Techniques
.NET Debugging Tips and Techniques
 
.Net Debugging Techniques
.Net Debugging Techniques.Net Debugging Techniques
.Net Debugging Techniques
 
Architecture: Manual vs. Automation
Architecture: Manual vs. AutomationArchitecture: Manual vs. Automation
Architecture: Manual vs. Automation
 
Dynamic virtual evironments
Dynamic virtual evironmentsDynamic virtual evironments
Dynamic virtual evironments
 
Advanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAdvanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step Functions
 
ws-commands.pdf
ws-commands.pdfws-commands.pdf
ws-commands.pdf
 
Advanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step FunctionsAdvanced Serverless Apps With Step Functions
Advanced Serverless Apps With Step Functions
 
Serverless in production (O'Reilly Software Architecture)
Serverless in production (O'Reilly Software Architecture)Serverless in production (O'Reilly Software Architecture)
Serverless in production (O'Reilly Software Architecture)
 
(Don't) Go Tracing Server Calls
(Don't) Go Tracing Server Calls(Don't) Go Tracing Server Calls
(Don't) Go Tracing Server Calls
 
Debugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio ProjectsDebugging VBScript in InduSoft Web Studio Projects
Debugging VBScript in InduSoft Web Studio Projects
 
XPages Blast - ILUG 2010
XPages Blast - ILUG 2010XPages Blast - ILUG 2010
XPages Blast - ILUG 2010
 
2008 - TechDays PT: Building Software + Services with Volta
2008 - TechDays PT: Building Software + Services with Volta2008 - TechDays PT: Building Software + Services with Volta
2008 - TechDays PT: Building Software + Services with Volta
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
"Running CF in a Shared Hosting Environment"
"Running CF in a Shared Hosting Environment""Running CF in a Shared Hosting Environment"
"Running CF in a Shared Hosting Environment"
 
Moving "Something Simple" To The Cloud - What It Really Takes
Moving "Something Simple" To The Cloud - What It Really TakesMoving "Something Simple" To The Cloud - What It Really Takes
Moving "Something Simple" To The Cloud - What It Really Takes
 
Mobile Enterprise Applications
Mobile Enterprise ApplicationsMobile Enterprise Applications
Mobile Enterprise Applications
 
Apex Enterprise Patterns: Building Strong Foundations
Apex Enterprise Patterns: Building Strong FoundationsApex Enterprise Patterns: Building Strong Foundations
Apex Enterprise Patterns: Building Strong Foundations
 

Más de MAXfocus

Year of pawnage - Ian trump
Year of pawnage  - Ian trumpYear of pawnage  - Ian trump
Year of pawnage - Ian trumpMAXfocus
 
Delivering Security Within the MAX Remote Management Platform - Todd Haughland
Delivering Security Within the MAX Remote Management Platform - Todd HaughlandDelivering Security Within the MAX Remote Management Platform - Todd Haughland
Delivering Security Within the MAX Remote Management Platform - Todd HaughlandMAXfocus
 
Creating Positive User Experiences Through Technology - Paul Kenny
Creating Positive User Experiences Through Technology - Paul KennyCreating Positive User Experiences Through Technology - Paul Kenny
Creating Positive User Experiences Through Technology - Paul KennyMAXfocus
 
Welcome and MAX Keynotes - Dave Sobel and Alistair Forbes
Welcome and MAX Keynotes   - Dave Sobel and Alistair ForbesWelcome and MAX Keynotes   - Dave Sobel and Alistair Forbes
Welcome and MAX Keynotes - Dave Sobel and Alistair ForbesMAXfocus
 
Closing Keynote - Dave Sobel
Closing Keynote - Dave SobelClosing Keynote - Dave Sobel
Closing Keynote - Dave SobelMAXfocus
 
Maximise Your Reputation in the Marketplace Jason King
Maximise Your Reputation in the Marketplace   Jason KingMaximise Your Reputation in the Marketplace   Jason King
Maximise Your Reputation in the Marketplace Jason KingMAXfocus
 
Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...
Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...
Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...MAXfocus
 
Managed Services in 2014: Pricing and Positioning - Dave Sobel
Managed Services in 2014: Pricing and Positioning - Dave SobelManaged Services in 2014: Pricing and Positioning - Dave Sobel
Managed Services in 2014: Pricing and Positioning - Dave SobelMAXfocus
 
Delivering Security with the MAX RemoteManagement Platform - Paul Fenwick
Delivering Security with the MAX RemoteManagement Platform -  Paul FenwickDelivering Security with the MAX RemoteManagement Platform -  Paul Fenwick
Delivering Security with the MAX RemoteManagement Platform - Paul FenwickMAXfocus
 
Lessons from the Trenches Selling and Marketing Best Practices Terry Hedden
Lessons from the Trenches Selling and Marketing Best Practices    Terry HeddenLessons from the Trenches Selling and Marketing Best Practices    Terry Hedden
Lessons from the Trenches Selling and Marketing Best Practices Terry HeddenMAXfocus
 
Recruit & Retain Top Talent - Michael Schmditmann
Recruit & Retain Top Talent - Michael SchmditmannRecruit & Retain Top Talent - Michael Schmditmann
Recruit & Retain Top Talent - Michael SchmditmannMAXfocus
 
Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan
Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan
Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan MAXfocus
 
Getting from $400k to $4m - the Four Biggest Operational Challenges - Gordan Tan
Getting from $400k to $4m - the Four Biggest Operational Challenges - Gordan TanGetting from $400k to $4m - the Four Biggest Operational Challenges - Gordan Tan
Getting from $400k to $4m - the Four Biggest Operational Challenges - Gordan TanMAXfocus
 
5 Critical Steps for Selling Managed Services - Adam Harris
5 Critical Steps for Selling Managed Services - Adam Harris 5 Critical Steps for Selling Managed Services - Adam Harris
5 Critical Steps for Selling Managed Services - Adam Harris MAXfocus
 
Max Backup Roadmap and Strategy Presentation - Eric Harless
Max Backup Roadmap and Strategy Presentation - Eric Harless Max Backup Roadmap and Strategy Presentation - Eric Harless
Max Backup Roadmap and Strategy Presentation - Eric Harless MAXfocus
 
How we turned Office 365 from a threat to an opportunity- Dan Scott
How we turned Office 365 from a threat to an opportunity- Dan ScottHow we turned Office 365 from a threat to an opportunity- Dan Scott
How we turned Office 365 from a threat to an opportunity- Dan ScottMAXfocus
 
Delivering Security with GFI MAX - Mark Petrie
Delivering Security with GFI MAX - Mark Petrie  Delivering Security with GFI MAX - Mark Petrie
Delivering Security with GFI MAX - Mark Petrie MAXfocus
 
7 reasons your backups should go to the cloud - Nick Cavalancia
7 reasons your backups should go to the cloud - Nick Cavalancia 7 reasons your backups should go to the cloud - Nick Cavalancia
7 reasons your backups should go to the cloud - Nick Cavalancia MAXfocus
 
The Mysterious Case of the Vanishing Cloud - Seth Robinson
The Mysterious Case of the Vanishing Cloud - Seth Robinson The Mysterious Case of the Vanishing Cloud - Seth Robinson
The Mysterious Case of the Vanishing Cloud - Seth Robinson MAXfocus
 
Christiano Fermo
Christiano Fermo Christiano Fermo
Christiano Fermo MAXfocus
 

Más de MAXfocus (20)

Year of pawnage - Ian trump
Year of pawnage  - Ian trumpYear of pawnage  - Ian trump
Year of pawnage - Ian trump
 
Delivering Security Within the MAX Remote Management Platform - Todd Haughland
Delivering Security Within the MAX Remote Management Platform - Todd HaughlandDelivering Security Within the MAX Remote Management Platform - Todd Haughland
Delivering Security Within the MAX Remote Management Platform - Todd Haughland
 
Creating Positive User Experiences Through Technology - Paul Kenny
Creating Positive User Experiences Through Technology - Paul KennyCreating Positive User Experiences Through Technology - Paul Kenny
Creating Positive User Experiences Through Technology - Paul Kenny
 
Welcome and MAX Keynotes - Dave Sobel and Alistair Forbes
Welcome and MAX Keynotes   - Dave Sobel and Alistair ForbesWelcome and MAX Keynotes   - Dave Sobel and Alistair Forbes
Welcome and MAX Keynotes - Dave Sobel and Alistair Forbes
 
Closing Keynote - Dave Sobel
Closing Keynote - Dave SobelClosing Keynote - Dave Sobel
Closing Keynote - Dave Sobel
 
Maximise Your Reputation in the Marketplace Jason King
Maximise Your Reputation in the Marketplace   Jason KingMaximise Your Reputation in the Marketplace   Jason King
Maximise Your Reputation in the Marketplace Jason King
 
Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...
Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...
Consolidating your Services Portfolio with GFI MAX - Jason Parsons and Steve ...
 
Managed Services in 2014: Pricing and Positioning - Dave Sobel
Managed Services in 2014: Pricing and Positioning - Dave SobelManaged Services in 2014: Pricing and Positioning - Dave Sobel
Managed Services in 2014: Pricing and Positioning - Dave Sobel
 
Delivering Security with the MAX RemoteManagement Platform - Paul Fenwick
Delivering Security with the MAX RemoteManagement Platform -  Paul FenwickDelivering Security with the MAX RemoteManagement Platform -  Paul Fenwick
Delivering Security with the MAX RemoteManagement Platform - Paul Fenwick
 
Lessons from the Trenches Selling and Marketing Best Practices Terry Hedden
Lessons from the Trenches Selling and Marketing Best Practices    Terry HeddenLessons from the Trenches Selling and Marketing Best Practices    Terry Hedden
Lessons from the Trenches Selling and Marketing Best Practices Terry Hedden
 
Recruit & Retain Top Talent - Michael Schmditmann
Recruit & Retain Top Talent - Michael SchmditmannRecruit & Retain Top Talent - Michael Schmditmann
Recruit & Retain Top Talent - Michael Schmditmann
 
Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan
Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan
Lessons from the Worlds Top 5 MSPs MAX2014 - Gordon Tan
 
Getting from $400k to $4m - the Four Biggest Operational Challenges - Gordan Tan
Getting from $400k to $4m - the Four Biggest Operational Challenges - Gordan TanGetting from $400k to $4m - the Four Biggest Operational Challenges - Gordan Tan
Getting from $400k to $4m - the Four Biggest Operational Challenges - Gordan Tan
 
5 Critical Steps for Selling Managed Services - Adam Harris
5 Critical Steps for Selling Managed Services - Adam Harris 5 Critical Steps for Selling Managed Services - Adam Harris
5 Critical Steps for Selling Managed Services - Adam Harris
 
Max Backup Roadmap and Strategy Presentation - Eric Harless
Max Backup Roadmap and Strategy Presentation - Eric Harless Max Backup Roadmap and Strategy Presentation - Eric Harless
Max Backup Roadmap and Strategy Presentation - Eric Harless
 
How we turned Office 365 from a threat to an opportunity- Dan Scott
How we turned Office 365 from a threat to an opportunity- Dan ScottHow we turned Office 365 from a threat to an opportunity- Dan Scott
How we turned Office 365 from a threat to an opportunity- Dan Scott
 
Delivering Security with GFI MAX - Mark Petrie
Delivering Security with GFI MAX - Mark Petrie  Delivering Security with GFI MAX - Mark Petrie
Delivering Security with GFI MAX - Mark Petrie
 
7 reasons your backups should go to the cloud - Nick Cavalancia
7 reasons your backups should go to the cloud - Nick Cavalancia 7 reasons your backups should go to the cloud - Nick Cavalancia
7 reasons your backups should go to the cloud - Nick Cavalancia
 
The Mysterious Case of the Vanishing Cloud - Seth Robinson
The Mysterious Case of the Vanishing Cloud - Seth Robinson The Mysterious Case of the Vanishing Cloud - Seth Robinson
The Mysterious Case of the Vanishing Cloud - Seth Robinson
 
Christiano Fermo
Christiano Fermo Christiano Fermo
Christiano Fermo
 

Último

Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxRTS corp
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesVictoriaMetrics
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slidesvaideheekore1
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsJean Silva
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITmanoharjgpsolutions
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolsosttopstonverter
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencessuser9e7c64
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 

Último (20)

Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 Updates
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slides
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero results
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh IT
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration tools
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conference
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 

Scripting and Automation within the MAX Platform Ernest Byrd

  • 1. Scripting & Automated Tasks A means of doing custom things for your custom Customers Ernest Byrd, Sales Engineer GFI MAX
  • 2. Agenda » Why use Scripting? » Plug it in » Turn it on: Using a Script » FixITScripts.com » Interfacing with the MAX Remote Management Dashboard » Basic Scripts » Using a Script as an Automated Task » Basic Troubleshooting » Pseudo-Code and Modeling » Deeper Dive
  • 4. “EASY does it” Here at GFI MAX we aim for ease of use while remaining Comprehensive. With that said, there is always going to be a Customer that has specific and UNiQUe needs. If we fulfilled the needs of every Customer in our Dashboard, GFI MAX could be quite overwhelming. In order to remove complexity we have available the Scripting & Automated Tasks solution sets. These enable YOU to simply “plug in” a script, having it available for Automated Processes. Scripts can then be utilized by Superusers or Administrators within your Dashboard in order accomplish tasks across both small and larger Managed Networks.
  • 5. What are some things that can be accomplished with Scripting? » File and Folder manipulation » System Cleanup » Localized Tasks » Creation of Mapped Drives » Informational Output » Application Download …The List goes on…
  • 7. Plug it in Example: Plugging a Script into the MAX Remote Management Dashboard…
  • 8. Turn it on: Using a Script
  • 9. Put the Script to use Example: Calling on a Script in the MAX Remote Management Dashboard…
  • 11. Where can I find a good library of Scripts to plug into the GFI MAX Remote Management Dashboard? FixITScripts.com
  • 12. FixITScripts.com Example: Pulling a Script from FixITScripts.com, plugging it into the MAX Remote Management Dashboard, viewing its output…
  • 13. Interfacing with the MAX Remote Management Dashboard
  • 14. The Script Writing Guidelines can be found in the Help Files at: https://dashboard.systemmonitor.us/helpcontents/script_guide.htm To locate the GFI MAX Remote Management Help Files:
  • 15. » The Windows Advanced Monitoring Agent supports the following script types where there is an interpreter installed. DOS Batch, JavaScript, Perl, PHP, PowerShell, Python, Ruby, VBS and CMD. » The Linux Monitoring Agent and OSX Monitoring Agent supports Shell scripts and interpreted languages such as Perl, PHP, Python, Ruby for which there is a handler installed. » The status of the script - pass or fail - can be reported to the DashBoard through exit codes. Zero indicates success, with any other number recorded as a failure. Please note, we have reserved the exit codes 1 to 999 for use by the system scripts. As such we would suggest returning an exit code greater than 1000 in your scripts to ensure the text output is displayed correctly in the DashBoard. Exit Code Result 0 Pass >0 Fail 1 - 999 Reserved exit codes >1000 Displays text output in DashBoard
  • 16. If a Fail is reported to the Dashboard, within the Dashboard you will see: If a Pass is reported to the Dashboard, within the Dashboard you will see: To output text from the script to the DashBoard, simply echo from the script to standard output (stdout). » For example in DOS Batch, VBScript and Powershell this can be achieved by: Pass Fail DOS Batch echo “Success Message” echo “Error Message” exit 0 exit 1001 VBScript wscript.echo( “Success Message” ) wscript.echo( “Error Message” ) wscript.Quit(0) wscript.Quit(1001) PowerShell Write-Host “Success Message” Write-Host “Error Message” Exit 0 Exit 1001
  • 18. Hello World Example: Writing a Script, in VBScript language, that will return the text “Hello World” into the MAX Remote Management Dashboard. The returned information can then be seen in the Script Check’s “Extra” (Informational) Column…
  • 19. Hello World: Interactive Output If the Script is double-clicked on, here is what is seen: » Note that no prompts for User Input are seen, and the Script executes to completion.
  • 20. Hello World: Calling Script from Command Line Example: Calling on HelloWorld.vbs from Command Line…
  • 21. Hello World Once this script is plugged into the Dashboard and called on as a “Script Check”, the following results should appear:
  • 22. Report a Failure to the MAX Remote Management Dashboard Script Contents: 'Report Fail to Dashboard wscript.Quit(1001) Dashboard Output:
  • 23. Script to accept Command Line Variables Script Contents: 'Accept Command Line Variables and Return to Dashboard Dim Arg1 Dim Arg2 Arg1 = Wscript.Arguments.Item(0) Arg2 = Wscript.Arguments.Item(1) Wscript.Echo Arg1 & Arg2 Dashboard Output:
  • 24. Supplying Command Line Variables When viewing the Properties of a Script Check, there is a field to provide Command Line Variable(s). This is where Scripts that are written to accept Command Line Variable(s) can be given input.
  • 25. Enumerating Class Variables from Win32_UserAccount Example: Calling to the “Win32_UserAccount” object in Windows, ensuring access to items within on my target device. This can then serve as a component into a larger Script if successful…
  • 26. Resource: WMI Classes http://msdn.microsoft.com/en-us/library/aa394554(v=vs.85).aspx
  • 27. Using a Script as an Automated Task
  • 28. Using a Script as an Automated Task Example: Using the Maintenance Window script, seen at www.allthingsmax.com, as an Automated Task (http://www.allthingsmax.com/2014/ 03/give-me-break.html)…
  • 30. Troubleshooting 101 Essentially, once the script is plugged in to the GFI MAX Remote Management Dashboard and called on as: » A Script Check OR » An Automated Task …the script will execute in a command line fashion, running under the account which loads the “Advanced Monitoring Agent” Service.
  • 31. Troubleshooting 101 What this means: The Script which you are utilizing should not require any user input or interaction. If your script requires this, it will halt at the point of requirement and never allow the script to reach completion. Also, it is good to note that the default account for the “Advanced Monitoring Agent” Service is: Local System.
  • 32. Troubleshooting 101 “My script runs as intended when I double click it, or call on it from command line. How can I make it work in the GFI MAX Remote Management Dashboard?” If your script runs properly under a logged on account: » Review the account you are logged in with when running the script » Change your “Advanced Monitoring Agent” Service on the intended device to run with this same account (To find the account you are logged in with, the use of a command line call: WhoamI may be helpful.)
  • 34. Script Development Essentials » Summarize what your Script or Automated Task is going to accomplish. This should be something that you can define in one or two sentences. » Write/Draw out the Logic used to develop your Script. This is commonly referred to as Pseudo-coding. » Convert your Pseudo-code into the desired Scripting language. If Then -If Then - Else While is Not Do