From eccd9adb41bd853c2c348b9e365e599c28af8122 Mon Sep 17 00:00:00 2001 From: Alex Lovell-Troy Date: Tue, 2 Jul 2024 16:25:28 -0400 Subject: [PATCH] Improve crawl instruction and log Redfish Version --- cmd/crawl.go | 2 +- pkg/crawler/main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/crawl.go b/cmd/crawl.go index f61ae4d..87f093b 100644 --- a/cmd/crawl.go +++ b/cmd/crawl.go @@ -11,7 +11,7 @@ import ( ) 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", Args: func(cmd *cobra.Command, args []string) error { // Validate that the only argument is a valid URI diff --git a/pkg/crawler/main.go b/pkg/crawler/main.go index d7869ed..00ee07f 100644 --- a/pkg/crawler/main.go +++ b/pkg/crawler/main.go @@ -72,6 +72,7 @@ func CrawlBMC(config CrawlerConfig) ([]InventoryDetail, error) { // Obtain the ServiceRoot rf_service := client.GetService() + log.Info().Msgf("found ServiceRoot %s. Redfish Version %s", rf_service.ID, rf_service.RedfishVersion) var rf_systems []*redfish.ComputerSystem