Improve crawl instruction and log Redfish Version

This commit is contained in:
Alex Lovell-Troy 2024-07-02 16:25:28 -04:00
parent fdc574f5f2
commit eccd9adb41
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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