{"id":20324546,"url":"https://github.com/netascode/nac-collector","last_synced_at":"2025-04-11T19:42:06.277Z","repository":{"id":260101019,"uuid":"774805447","full_name":"netascode/nac-collector","owner":"netascode","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T09:27:57.000Z","size":213,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T10:29:19.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netascode.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":"2024-03-20T08:12:59.000Z","updated_at":"2025-04-08T09:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"35ce575e-06eb-4c26-8da1-6d861078cc37","html_url":"https://github.com/netascode/nac-collector","commit_stats":null,"previous_names":["netascode/nac-collector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fnac-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fnac-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fnac-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fnac-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netascode","download_url":"https://codeload.github.com/netascode/nac-collector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248468476,"owners_count":21108824,"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-14T19:34:26.642Z","updated_at":"2025-04-11T19:42:06.269Z","avatar_url":"https://github.com/netascode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# INSTRUCTION\n\n## Installation\n\nThis project uses [Poetry](https://python-poetry.org/) for dependency management.\n\nYou can install the project with the following command:\n\n```bash\npoetry install\n```\n\nOr with pip:\n\n```bash\npip3 install .\n```\n\n## Usage\n\n```cli\nUsage: nac-collector [OPTIONS]\n\n  A CLI tool to collect various network configurations.\n\nOptions:\n  --version                       Show the version and exit.\n  -v, --verbosity LVL             Either CRITICAL, ERROR, WARNING, INFO or\n                                  DEBUG\n  -s, --solution [SDWAN|ISE|NDO|FMC]\n                                  Solutions supported [SDWAN, ISE, NDO, FMC]\n                                  [required]\n  -u, --username TEXT             Username for authentication. Can also be set\n                                  using the NAC_USERNAME environment variable\n                                  [required]\n  -p, --password TEXT             Password for authentication. Can also be set\n                                  using the NAC_PASSWORD environment variable\n                                  [required]\n  -url, --url TEXT                Base URL for the service. Can also be set\n                                  using the NAC_URL environment variable\n                                  [required]\n  -g, --git-provider              Generate endpoint.yaml automatically using\n                                  provider github repo\n  -e, --endpoints-file TEXT       Path to the endpoints YAML file\n  -t, --timeout INTEGER           Request timeout in seconds. Default is 30.\n  -o, --output TEXT               Path to the output json file\n  -h, --help                      Show this message and exit.\n```\n\nSet environment variables pointing to supported solution instance:\n\n```shell\nexport NAC_USERNAME=admin\nexport NAC_PASSWORD=Cisco123\nexport NAC_URL=https://10.1.1.1\n```\n\n## SDWAN\n\nIf you installed with `poetry install` command:\n\n- with env variables\n\n```sh\npoetry run nac-collector -s SDWAN -v DEBUG --git-provider\n```\n\n- without env variables\n\n```sh\npoetry run nac-collector -s SDWAN --username USERNAME --password PASSWORD --url URL -v DEBUG --git-provider\n```\n\nIf you installed the project with pip, you can run the script directly from the command line:\n\n```sh\nnac-collector -s SDWAN -v --git-provider\n```\n\n## ISE\n\nIf you installed with `poetry install` command:\n\n- with env variables\n\n```sh\npoetry run nac-collector -s ISE -v --git-provider\n```\n\n- without env variables\n\n```sh\npoetry run nac-collector -s ISE --username USERNAME --password PASSWORD --url URL -v DEBUG --git-provider\n```\n\nIf you installed the project with pip, you can run the script directly from the command line:\n\n```sh\nnac-collector -s ISE -v DEBUG --git-provider\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fnac-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetascode%2Fnac-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fnac-collector/lists"}