{"id":13604987,"url":"https://github.com/Rayregula/csv-network-status","last_synced_at":"2025-04-12T02:32:28.167Z","repository":{"id":155679663,"uuid":"280499799","full_name":"Rayregula/csv-network-status","owner":"Rayregula","description":"Ping network hosts from a CSV file and list status.","archived":false,"fork":false,"pushed_at":"2022-06-15T23:43:48.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-07T09:44:12.649Z","etag":null,"topics":["bash","csv","ping"],"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/Rayregula.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}},"created_at":"2020-07-17T18:39:27.000Z","updated_at":"2023-02-10T20:53:56.000Z","dependencies_parsed_at":"2024-01-16T23:45:29.824Z","dependency_job_id":"5753b3bf-fd8b-41a8-8914-610fc5fe151a","html_url":"https://github.com/Rayregula/csv-network-status","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayregula%2Fcsv-network-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayregula%2Fcsv-network-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayregula%2Fcsv-network-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rayregula%2Fcsv-network-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rayregula","download_url":"https://codeload.github.com/Rayregula/csv-network-status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248506924,"owners_count":21115509,"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":["bash","csv","ping"],"created_at":"2024-08-01T19:00:53.386Z","updated_at":"2025-04-12T02:32:27.932Z","avatar_url":"https://github.com/Rayregula.png","language":"Shell","funding_links":[],"categories":["bash"],"sub_categories":[],"readme":"# List CSV Network Status\n###### v0.0.5 by Jason Regula \u003cbr/\u003e\n\n![](https://s3-us-west-2.amazonaws.com/cdn.rayregula.com/CDN/csv-network-status.png)\n\n## Description:\n Will read a CSV file, pinging all listed devices, outputs a formatted list showing network device hierarchy and ping status for each. Helps detiertmain which upstream device issues start with \u003cbr/\u003e\n### \n\n\n## Usage:\n`./get-csv-status.sh [-ctfh]` \u003cbr/\u003e\n\n * get-csv-status.sh -c \\\u003cvalue\u003e #set how many packets to ping with, (defualt = 1) \u003cbr/\u003e\n * get-csv-status.sh -t \\\u003cvalue\u003e #set timeout for ping response, (defualt = 2) \u003cbr/\u003e\n * get-csv-status.sh -f \\\u003cfile_path\u003e #read from the specified CSV file, expects ip's in column \"B\" (ignores row 1) \u003cbr/\u003e\n * get-csv-status.sh -h #will print help \u003cbr/\u003e\n\n###### Basic Usage:\n`./get-csv-status.sh` will create (if it does not already exist) a subfolder in the script's location called \"resourses\". It checks this folder for a file called \"ip-list.csv\". \u003cbr/\u003e\n`./get-csv-status.sh -f \u003cfilepath\u003e` will only read the CSV file given. \u003cbr/\u003e\n\n## CSV FILE:\n File should Ideally contain four columns: \u003cbr/\u003e\n A=Name, B=IP, C=Group, D=Layer \u003cbr/\u003e\n \u003cbr/\u003e\nHeader (first row) is ignored so you can name your columns whatever you want, just make sure to add something. \u003cbr/\u003e\nDue to how current version handles malformed CSV files to minimize issues when given blank values `Group` and `Layer` should not be equal to `0`. For core devices use `00` or `000` (as I've used in the sample below). \u003cbr/\u003e\n\nsample.csv: \u003cbr/\u003e\n\n| Name:                 | IP:       | Group: | Layer: |\n|-----------------------|-----------|--------|--------|\n| Core Server           | 10.5.0.1  | 000    | 000    |\n| DHCP Server           | 10.5.0.36 | 000    |      1 |\n| Server1               | 10.5.0.53 |      1 |      1 |\n| Switch_1              | 10.5.0.48 |      2 |      2 |\n| Wireless Access Point | 10.5.0.34 |      1 |      2 |\n| Minecraft Server #1   | 10.5.0.37 |      1 |      2 |\n| Minecraft Server #2   | 10.5.0.41 |      1 |      2 |\n| Switch_2              | 10.5.0.60 |      2 |      3 |\n| Wireless Access Point | 10.5.0.66 |      2 |      3 |\n| Xerox Copier          | 10.5.0.35 |      2 |      3 |\n| HP Printer            | 10.5.0.49 |      2 |      3 |\n| Server2               | 10.5.0.46 |      3 |      1 |\n| Switch 4              | 10.5.0.65 |      3 |      2 |\n| Minecraft Server #3   | 10.5.0.43 |      3 |      3 |\n| Minecraft Server #4   | 10.5.0.58 |      3 |      3 |\n| File Server           | 10.5.0.67 |      3 |      3 |\n\n###### Note: Randomly created the above CSV file for testing purposes before deciding to use it as an example file, so it's not setup like a typical network would be. Though it works until I come up with something better. \u003cbr/\u003e\n`Groups` tell the script what network branch each device is connected too. \u003cbr/\u003e\n`Layers` tell it how far it should be on the branch, currently up to 5 branches are supported (not counting 00/000). I plan to get the script to auto detect how many branches it should show in the output but that may be a ways off. \u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRayregula%2Fcsv-network-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRayregula%2Fcsv-network-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRayregula%2Fcsv-network-status/lists"}