Skip to content

A collection of useful automation scripts for system administration, development, and DevOps tasks. Unified under a single script.

License

Notifications You must be signed in to change notification settings

sundanc/auto_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Automation Scripts Operations Specialist

Author GitHub Status

⭐ Please star if you find this useful ⭐
📋 Original content - Attribution required if used or modified 📋

Auto-Scripts Collection

A collection of useful automation scripts for system administration, development, and DevOps tasks.

IT Arsenal Command Center

The IT Arsenal is a unified command center that brings all scripts together into a cohesive toolkit. This central interface makes it easy to access all scripts in one place, with consistent logging, configuration, and execution handling. Check my blog post

This blog post covers:

  • Installation and setup
  • Detailed usage instructions for all tool categories
  • Advanced features and integrations
  • Creating your own arsenal-compatible scripts
  • Troubleshooting common issues
  • Best practices for IT automation

Whether you're new to the toolkit or looking to master advanced features, this comprehensive guide will help you leverage the full power of the IT Arsenal.

To launch the arsenal:

chmod +x arsenal.sh
./arsenal.sh

The arsenal provides:

  • Menu-driven access to all tools
  • Unified logging system
  • Centralized configuration
  • Error handling and notifications
  • Easy script execution

Comprehensive Tutorial

We've created a detailed tutorial to help you get the most out of the IT Arsenal:

How to Use IT Arsenal: Your One-Stop IT Automation Solution

Directory Structure

  • system/ - Scripts for system administration tasks
  • development/ - Scripts for development workflows and tools
  • devops/ - Scripts for deployment and CI/CD automation
  • database/ - Scripts for database management and maintenance
  • lib/ - Shared libraries and utilities
  • config/ - Configuration files
  • logs/ - Log files generated by the arsenal and scripts
  • docs/ - Documentation and tutorials

Available Scripts

System Administration

Script Description
vm.sh Enhanced VM detection script that checks for hypervisors, virtual hardware signatures, network adapters and container environments.
uptime.sh Displays system uptime and boot time in a human-readable format.
updateupgrade.sh Simple apt package update and upgrade script with colored output.
syshealth.sh Advanced system health monitoring with adaptive thresholds based on historical data. Includes CPU, memory, disk usage and load average tracking.
sys_monitor.sh Simple system monitoring script that logs system statistics every 5 seconds.
health_check.sh Service health check that verifies if nginx is running and starts it if needed.
disk_usage.sh Monitors disk usage and alerts when partitions exceed the defined threshold (85%).
connectivity_check.sh Checks network connectivity to a specified host and logs the result.
security_audit.sh Comprehensive security audit tool that scans for common vulnerabilities and configuration issues.
network_diagnostics.sh Advanced network troubleshooting tool that performs comprehensive diagnostics including interface information, DNS resolution, connectivity tests, gateway testing, route analysis, speed testing, and hardware checks.
log_analyzer.sh Powerful log analysis tool that identifies error patterns, authentication failures, service restarts, and resource issues in system logs with detailed reporting.
system_benchmark.sh Complete system performance benchmark tool measuring CPU, memory, disk, and network performance with detailed metrics and reports.

Development Tools

Script Description
git_branch_management.sh Interactive git branch management tool for creating, deleting, and merging branches. Includes safety checks and confirmation prompts.
autogit.sh Streamlines the git workflow by automating add, commit, and push operations with interactive prompts.
create_env.sh Creates and activates a Python virtual environment for development projects.

DevOps & Deployment

Script Description
ci_cd_auto.sh Comprehensive CI/CD automation system with branch management, testing, code quality checks, and deployment capabilities.
deploy.sh Deploys an application from a git repository to a target server with options for branch selection and service restart.
backup.sh Simple file backup script that creates timestamped backup directories.

Database Management

Script Description
database_backup.sh MySQL database backup utility that creates timestamped SQL dumps.
autodb.sh Advanced database maintenance script with backup, optimization, connection monitoring, and performance reporting features.

Library Functions

The lib/common.sh provides shared functionality for all scripts, including:

  • Configuration management
  • Logging functions
  • System monitoring utilities
  • File management helpers
  • User interaction tools
  • Network utilities

To use these functions in your own scripts:

source "$(dirname "$0")/../lib/common.sh"

Usage

Most scripts can be executed directly after making them executable:

chmod +x script_name.sh
./script_name.sh

However, it's recommended to use the IT Arsenal command center to execute scripts for consistent logging and error handling.

Contributing

Feel free to contribute to this collection by adding new scripts or improving existing ones. Please follow these guidelines:

  • Add clear comments to your script
  • Include error handling where appropriate
  • Use consistent formatting
  • Document any dependencies or prerequisites

License

These scripts are provided as-is under the MIT license. Use at your own risk.

About

A collection of useful automation scripts for system administration, development, and DevOps tasks. Unified under a single script.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages