{"id":19219189,"url":"https://github.com/ssarcandy/hostat","last_synced_at":"2025-06-30T21:35:22.327Z","repository":{"id":83110620,"uuid":"284216036","full_name":"SSARCandy/hostat","owner":"SSARCandy","description":"🛠 A simple CLI tool to print out host status in one line.","archived":false,"fork":false,"pushed_at":"2023-04-24T18:01:36.000Z","size":33,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T19:27:21.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SSARCandy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-01T08:03:12.000Z","updated_at":"2023-04-24T12:47:56.000Z","dependencies_parsed_at":"2024-11-09T14:32:23.200Z","dependency_job_id":"306b3571-9e74-41ec-bf43-a83de87c57ff","html_url":"https://github.com/SSARCandy/hostat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2Fhostat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2Fhostat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2Fhostat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SSARCandy%2Fhostat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SSARCandy","download_url":"https://codeload.github.com/SSARCandy/hostat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240292391,"owners_count":19778311,"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","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":[],"created_at":"2024-11-09T14:29:50.544Z","updated_at":"2025-02-23T09:15:48.317Z","avatar_url":"https://github.com/SSARCandy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hostat\n\n[![Go](https://github.com/SSARCandy/hostat/workflows/Go/badge.svg?branch=master)](https://github.com/SSARCandy/hostat/actions)\n\n\u003e **Host** + **Status** = **hostat**\n\nA simple CLI tool to print out host status in one line. Support [slurm](https://slurm.schedmd.com/documentation.html) status also.\n\n```sh\n$ hostat\nhostname   | CPUs |     1m |     5m |    15m | memory % | disk % | UpTime |\ncluster01  |    8 |    0.9 |    1.1 |    1.4 |     40 % |   19 % |    4 d |\n```\n\n## Install\n\nFetch the latest release for your platform:\n\n```sh\n# Linux\nsudo wget https://github.com/SSARCandy/hostat/releases/download/v1.0.0/hostat-linux -O /usr/local/bin/hostat\nsudo chmod +x /usr/local/bin/hostat\n\n# Windows\nwget https://github.com/SSARCandy/hostat/releases/download/v1.0.0/hostat-win10.exe -O hostat.exe\n.\\hostat.exe\n```\n\n## Options\n\n```sh\n$ hostat --help\nUsage of hostat:\n  -header\n        Print Header or not (default true)\n  -thres_disk int\n        Threshold for Disk. Render red color if \u003e= thres (default 80)\n  -thres_load int\n        Threshold for Load. Render red color if \u003e= thres (default 8)\n  -thres_mem int\n        Threshold for Memory. Render red color if \u003e= thres (default 80)\n```\n\n## Fetch multiple nodes status\n\nYou can use [pdsh](https://linux.die.net/man/1/pdsh) to fetch multiple nodes status:\n\n```sh\n$ pdsh -w 'cluster[01-05]' -N -R ssh '/usr/local/bin/hostat --header=false' | sort \ncluster01  |    8 |    1.3 |    1.2 |    1.4 |     40 % |   19 % |    4 d | drain |\ncluster02  |    8 |    8.0 |    8.0 |    8.0 |      8 % |   83 % |   77 d |  idle | \ncluster03  |    8 |    8.0 |    8.1 |    8.0 |      7 % |   84 % |   77 d | alloc | ssarcandy(8)\ncluster04  |    8 |    8.1 |    8.0 |    8.0 |      7 % |   82 % |   77 d | alloc | ssarcandy(8)\ncluster05  |    8 |    8.2 |    8.1 |    8.1 |      7 % |   81 % |   77 d | alloc | ssarcandy(8)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssarcandy%2Fhostat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssarcandy%2Fhostat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssarcandy%2Fhostat/lists"}