Update README.md

This commit is contained in:
David J. Allen 2023-08-29 14:46:11 -06:00
parent c202469c50
commit 488e6f8131
2 changed files with 16 additions and 10 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
magellan magellan
**/*.db

View file

@ -15,8 +15,8 @@ go mod tidy && go build
## Usage ## Usage
Magellan can be used to load inventory components using redfish or IMPI interfaces. Magellan's main goal is to load inventory components into `hms-smd` using redfish
It can scan subnets or specific hosts to find... or IMPI interfaces. It can scan subnets or specific hosts to find interfaces to query and stores into a local database.
```bash ```bash
./magellan --help ./magellan --help
@ -33,14 +33,18 @@ Usage of ./magellan:
--user string set the BMC user (default "root") --user string set the BMC user (default "root")
# example usage # example usage
magellan \ ./magellan scan \
--subnet 127.0.0.0 \ --subnet 127.0.0.0 \ # add a subnet of hosts
--host 127.0.0.1 \ --host 127.0.0.1 \ # add an additional host
--port 5000 \ --port 5000 \ # port to scan for
--timeout 10 \ --timeout 10 \ # timeout for response
--user root \ --threads 255 \ # number of simutaneoulsy jobs
--pass root_password \ --dbpath data/assets.db # path to store scan results
--threads 255 \
./magellan collect \
--host 127.0.0.1 \ # host of hms-smd API
--port 27777 \ # port of hms-smd API
--dbpath data/assets.db # path of stored scan results
``` ```
## TODO ## TODO
@ -50,3 +54,4 @@ List of things left to fix or do...
* [ ] Switch to internal scanner if `dora` fails * [ ] Switch to internal scanner if `dora` fails
* [ ] Test using different `bmclib` supported drivers (mainly 'redfish') * [ ] Test using different `bmclib` supported drivers (mainly 'redfish')
* [ ] Confirm loading different components into `hms-smd` * [ ] Confirm loading different components into `hms-smd`
* [ ] Add unit tests