{"id":18896844,"url":"https://github.com/shakibamoshiri/helg","last_synced_at":"2026-05-01T16:34:21.759Z","repository":{"id":128566877,"uuid":"352261501","full_name":"shakibamoshiri/helg","owner":"shakibamoshiri","description":"Hurricane Electric's Network Looking Glass cli","archived":false,"fork":false,"pushed_at":"2021-10-27T10:47:47.000Z","size":81,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T07:39:24.315Z","etag":null,"topics":["bash","bgp","bgp-router","curl","looking-glass"],"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/shakibamoshiri.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":"2021-03-28T06:51:44.000Z","updated_at":"2024-11-05T10:53:55.000Z","dependencies_parsed_at":"2023-05-04T22:47:09.422Z","dependency_job_id":null,"html_url":"https://github.com/shakibamoshiri/helg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/shakibamoshiri/helg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Fhelg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Fhelg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Fhelg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Fhelg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shakibamoshiri","download_url":"https://codeload.github.com/shakibamoshiri/helg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shakibamoshiri%2Fhelg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32505106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["bash","bgp","bgp-router","curl","looking-glass"],"created_at":"2024-11-08T08:35:33.660Z","updated_at":"2026-05-01T16:34:21.741Z","avatar_url":"https://github.com/shakibamoshiri.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# helg\nHurricane Electric's Network Looking Glass\n\nHurricane Electric as a root server does not provide any kind of API to request to.\nIt does have **telnet** over [route-server.he.net\n](telnet://route-server.he.net/) but is not so friendly to work with, thus you\ncan think of this bash CLI as pseudo-API.\n\n## prerequisites\nBefore proceeding the bellow commands should already have been installed:\n\n - `perl`\n - `curl`\n - `echo`\n - `printf`\n - `grep`\n - [pup](https://github.com/ericchiang/pup) HTML parser for `txt` output\n - [jq](https://github.com/stedolan/jq) JSON parser for `json` output\n\nPlus you can check them using below option, and it shows you either [OK] or [Error].\n```bash\n./cli.sh --check cmd\ncheck prerequisites:\ncurl .......................... [ OK ]\nperl .......................... [ OK ]\npup ........................... [ OK ]\ngrep .......................... [ OK ]\nprintf ........................ [ OK ]\necho .......................... [ OK ]\n```\n\n## download\n**clone** the repository using `git`:\n```bash\ngit clone https://github.com/k-five/helg.git \u0026\u0026 cd helg\n```\n### check if you have prerequisites\n```bash\n./cli.sh --check cmd\n```\nIf all the check were [ OK ], then you can use or install it.\n\n### install it\nYou can use the `cli.sh` file or you may want to change the name and install it\nwith a proper name e.g. `helg` and then `mv` it to `/usr/local/bin` so you can run\nit everywhere on you machine.\n```bash\nsudo mv cli.sh /usr/local/usr/helg\n# or\nsudo cp cli.sh /usr/local/usr/helg\n# or just use it\n./cli.sh ...\n```\n\n## how to use\nFirst run the `--help` to see available options. It has two main options:\n 1. `--ip`\n 2. `--log`\n\nThe `--ip` option can read list of IPs/Mask from a file or from the Terminal as\nmany as you need. If the argument is a single one, first it checks if it is a\nfile or not, if it was a file, reads it, otherwise it will assume it is an IP.\n\nthe `--log` option has three mode:\n 1. `html` for log as html file (enabled by default)\n 2. `txt` for log as txt file\n 3. `term` for print on Terminal (stdout)\n 4. `json` for log as JSON file\n\n\n## exampells\n```bash\n# request for 8.8.8.8/24 , read from Terminal\n./cli --ip 8.8.8.8/24\n# or more then one ip/mask\n./cli --ip 8.8.8.8/24 1.1.1.1/24\n\n# request , read from a file\n./cli --ip ips-sample\n\n# request, enable txt log\n./cli --ip ips-sample --log txt\n\n# request, enable Terminal log\n./cli --ip ips-sample --log term\n\n# request, enable Terminal log and txt\n./cli --ip ips-sample --log term txt\n\n# note that HTML log is enable by default\n```\n\n## a shot\n\n![log term png file](log_term.png)\n\n## automation\nIt will be useful if we automate requests and later check the log.\n\n### crontab\n```bash\n# every hour at minute 0\n# 12:00\n# 13:00\n# 14:00\n# etc\n\nWD='/add/your/working/directory'\n0 */1 * * * cd $WD \u0026\u0026 ./cli.sh --ip ips-file --log txt\n\n# or if you renamed the \"cli.sh\" to \"helg\"\nWD='/add/your/working/directory'\n0 */1 * * * cd $WD \u0026\u0026 helg --ip ips-file --log txt\n```\n\n\n## NOTE\nHurricane Electric website : https://lg.he.net/  \nRouter (as default): Hurricane Electric Fremont 1  \nAddress of this router: core3.fmt1.he.net  \nCommands: BGP Route  \n\n## developers\nContribution and feature request are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakibamoshiri%2Fhelg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshakibamoshiri%2Fhelg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshakibamoshiri%2Fhelg/lists"}