Skip to main content

Script Reference

This reference guide provides detailed documentation for all SSH Operations Hub script flags and options. Each section includes examples, best practices, and common use cases.

Flag Categories

IP Address Management

Configure which clients to target and how to connect to them.

-ip / -primary & -secondary Define primary and secondary IP pools for client targeting.

-ip-prefix Customize the IP address prefix used for client connections.

User Authentication

Specify SSH usernames for different client groups.

-puser / -user & -suser Configure SSH usernames for primary and secondary client groups.

Command Execution

Define what commands to run on your target clients.

-cmd Specify commands to execute across multiple clients with variable substitution support.

Quick Reference

FlagDescriptionExample
-ip / -primaryPrimary client IPs-ip 1 2 3
-secondarySecondary client IPs-secondary 10 11
-ip-prefixCustom IP prefix-ip-prefix 192.168.1
-user / -puserPrimary client username-user root
-suserSecondary client username-suser admin
-cmdCommand to execute-cmd "uptime"

Common Usage Patterns

Basic Multi-Client Command

ssh-operations-hub -ip 1 2 3 -user root -cmd "hostname"

Mixed User Groups

ssh-operations-hub -primary 1 2 -user root -secondary 10 11 -suser admin -cmd "uptime"

Custom Network Range

ssh-operations-hub -ip-prefix 192.168.1 -ip 50 51 52 -user ubuntu -cmd "df -h"