AttuneOps Logo
  • AttuneOps
    • AttuneOps
      • Features
      • Projects
  • Pricing
  • Support
    • Support
      • Discord
      • Raise a Community Support Issue
  • Docs
  • Blog
  • Enterprise
  • Download AttuneOps CE

Documentation Contents

  • Getting Started
    • Design, Plan, and Run Framework
    • How To Setup WinRM, CIFS Manually
    • Tutorials
      • Creating your first Linux or macOS Project
  • Using Attune
    • Designing Automation Projects
    • Automate Operating System Installation
    • Boolean Best Practices
    • Documentation Best Practices
  • “How-to” guides
    • How To Clone a GIT Project
    • How To Create a Job
    • How To Setup WinRM Via AD
    • How To Enable Windows Built-in Administrator Account
    • How To Add Local Non-Administrator Account to the Remote Management Users Group
    • Script Snippets
      • Powershell Script Snippets
      • Bash Script Snippets
      • SQL (Oracle) Code Snippets
      • Mako Template Code Snippets
    • How to configure GIT remotes with FTPS
  • Reference guides
    • Architecture and Deployment
    • Design Workspace
    • Plan Workspace
    • Run Workspace
    • Referencing Parameters in Scripts
    • git_ftp reference guide
  • FAQ
    • Attune Frequently Asked Questions
    • Troubleshooting
    • How to Troubleshoot Git FTP
  • Glossary
  • Release Notes
    • Release notes - Attune v26.8.x
    • Release notes - Attune v25.7.x
    • Release notes - Attune v25.2.x
    • Release notes - Attune v24.6.x
    • Release notes - Attune v23.7.x
    • Release notes - Attune v23.0.x
    • Release notes - Attune v5.1.x
    • Release notes - Attune v4.3.x
    • Release notes - Attune v4.2.x
    • Release notes - Attune v4.1.x
    • Release notes - Attune v4.0.x
    • Release notes - Attune v3.1.x
    • Release notes - Attune v3.0.x
    • Release notes - Attune v2.0.x
    • Release notes - Attune v1.4.x
    • Release notes - Attune v1.3.x
    • Release notes - Attune v1.2.x
Attune
  • “How-to” guides
  • Script Snippets
  • View page source
Previous Next

Script Snippets

Contents:

  • Powershell Script Snippets
    • How To Start Attune From Local User Snippet
    • How To Restart a Windows VM Code Snippet
    • How To Shutdown Windows Snippet
    • How To Get Fully Qualified Domain Name Windows Snippet
    • How To Windows Commands Exit with the Wrong Code
    • How To Search for Installed oVirt VIRTIO Drivers
    • How To Set Timezone Server
  • Bash Script Snippets
    • How To Iterate Over Files in a Directory
    • How To For Loop Over CSV File Which Contains Spaces
    • Build a List of Items to Loop Over
    • How To Iterate Over FileNames With Spaces
    • Conditional Bash Step in Attune
    • How To Perform SSL Handshake and Save Certificate to File
    • How To Append Lines To File If They Do Not Exist
    • How To Grep the Standard Error
    • Filter and Save Output to File
    • Exit Codes in Functions
    • How To Piping into Functions
    • How To Iterate Over RPM Files List and Install RPM if not Already Installed
    • How To Check Whether SELinux is Enabled
    • How To Download RPM For Offline Use
  • SQL (Oracle) Code Snippets
    • How To Get Readable Results in sqlplus
    • How To Loop over a Node List
    • How To Check the Grants on a User
    • How To Create Bash Script to Perform Oracle Commands as Oracle on Target Server
    • How To Create Dynamic SQL Script from Bash
    • How To Use SQL to Create a File that Bash can Query
  • Mako Template Code Snippets
    • How To Escape a Mako Variable
    • How To Render a Node List value IP addresses

© Copyright 2026, Synerty HQ Pty Ltd | Documentation Structure Powered by Divio.

Built with Sphinx using a theme provided by Read the Docs.