{"id":21314112,"url":"https://github.com/bitxx/shell-batch-tools","last_synced_at":"2025-10-11T14:39:18.108Z","repository":{"id":248662707,"uuid":"829297696","full_name":"bitxx/shell-batch-tools","owner":"bitxx","description":"简易运维脚本，方便非专业运维人员多设备情况下批量进行一些常规操作","archived":false,"fork":false,"pushed_at":"2024-09-13T06:27:51.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T01:31:49.271Z","etag":null,"topics":["aleo","batch","server","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitxx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T06:44:01.000Z","updated_at":"2024-11-14T00:42:30.000Z","dependencies_parsed_at":"2024-09-13T15:08:19.902Z","dependency_job_id":null,"html_url":"https://github.com/bitxx/shell-batch-tools","commit_stats":null,"previous_names":["bitxx/shell-batch-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitxx/shell-batch-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fshell-batch-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fshell-batch-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fshell-batch-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fshell-batch-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitxx","download_url":"https://codeload.github.com/bitxx/shell-batch-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxx%2Fshell-batch-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007456,"owners_count":26084313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aleo","batch","server","shell"],"created_at":"2024-11-21T18:10:38.856Z","updated_at":"2025-10-11T14:39:18.085Z","avatar_url":"https://github.com/bitxx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shell-batch-tools\n\n简易运维脚本，方便非专业运维人员批量操作多台 linux 设备  \n该脚本在 ubuntu 22.04 标准服务器版中运行通过\n\n## 当前支持功能\n\n1. 新建 ssl 自有证书(cert.key 和 cert.pem)\n2. 新建 ssh 的 rsa 密钥\n3. 批量更新各服务器公钥\n4. 批量修改各服务器密码\n5. 批量执行自定义命令\n6. 批量安装进程监控\n7. 批量卸载进程监控\n8. 批量安装 aleo 服务\n9. 批量卸载 aleo 服务\n\n## 使用说明\n\n- 该脚本需要 root 账户中操作\n- 批量操作设备，涉及到 ssh 密钥，需要将密钥文件更名为`id_rsa.server`并放在和`tools.sh`同一个目录\n- csv 文件使用时，需要去掉`.tpl`后缀\n- 一些简单命令直接使用`批量执行自定义命令`即可\n- 关于`进程监控`监控功能，需要参考我这个项目[osmonitor](https://github.com/bitxx/osmonitor)，先部署一台 osmonitor-server，然后通过该脚本批量部署`osmonitor-client`到需要监控的设备\n- 目前 aleo 池子支持 f2pool、oula、6block\n\n### server_list_ip.csv 配置规则\n\nip,ssh 端口号  \n例如：\n\n```csv\n192.168.1.2,22\n```\n\n### server_list_pwd.csv 配置规则\n\nip,ssh 端口号,新密码  \n例如：\n\n```csv\n192.168.1.2,22,new_password\n```\n\n### server_list_aleo.csv 配置规则\n\nip,ssh 端口号,下载根地址,池子名称,池子账户,worker 编号\n例如：\n\n```csv\n192.168.1.2,22,http://172.16.1.2,oula,oula_account_name,oula_worker_name\n```\n\n说明：下载根地址，是指程序所在 http 服务器的位置，并且服务器程序名称必须按照规则：`aleo-miner-池子名称`来命名，例如：`aleo-miner-oula`\n\n### server_list_osmonitor_cli.csv\n\n就是部署 `osmonitor-client 需要的参数`\nip,ssh 端口号,name,secret,download_url,service_url,proc_names\n\n## 脚本使用说明\n\n```shell\n# 启动脚本\n./tools\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxx%2Fshell-batch-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitxx%2Fshell-batch-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxx%2Fshell-batch-tools/lists"}