mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Improve crawl instruction and log Redfish Version
This commit is contained in:
parent
fdc574f5f2
commit
eccd9adb41
2 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var crawlCmd = &cobra.Command{
|
var crawlCmd = &cobra.Command{
|
||||||
Use: "crawl [uri]",
|
Use: "crawl [uri] e.g. magellan crawl https://bmc.example.com",
|
||||||
Short: "Crawl a single BMC for inventory information",
|
Short: "Crawl a single BMC for inventory information",
|
||||||
Args: func(cmd *cobra.Command, args []string) error {
|
Args: func(cmd *cobra.Command, args []string) error {
|
||||||
// Validate that the only argument is a valid URI
|
// Validate that the only argument is a valid URI
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ func CrawlBMC(config CrawlerConfig) ([]InventoryDetail, error) {
|
||||||
|
|
||||||
// Obtain the ServiceRoot
|
// Obtain the ServiceRoot
|
||||||
rf_service := client.GetService()
|
rf_service := client.GetService()
|
||||||
|
log.Info().Msgf("found ServiceRoot %s. Redfish Version %s", rf_service.ID, rf_service.RedfishVersion)
|
||||||
|
|
||||||
var rf_systems []*redfish.ComputerSystem
|
var rf_systems []*redfish.ComputerSystem
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue