From 5960c987d433016daef649d1812dad13cbe011aa Mon Sep 17 00:00:00 2001 From: Ben McDonald Date: Tue, 17 Jun 2025 11:10:52 -0700 Subject: [PATCH] Add some examples --- cmd/pdu-collect.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/pdu-collect.go b/cmd/pdu-collect.go index 0520c75..ba281ed 100644 --- a/cmd/pdu-collect.go +++ b/cmd/pdu-collect.go @@ -61,6 +61,12 @@ var pduCmd = &cobra.Command{ Use: "pdu [hosts...]", Short: "Collect inventory from JAWS-based PDUs", Long: `Connects to one or more PDUs with a JAWS interface to collect hardware inventory.`, + Example: ` + // Collect inventory from a single PDU using credentials + magellan collect pdu x3000m0 --username admin --password inital0 + + // Collect from multiple PDUs and send to SMD + magellan collect pdu x3000m0 x3000m1 -u admin -p initial0 | ./magellan send `, Run: func(cmd *cobra.Command, args []string) { if len(args) == 0 { log.Error().Msg("no PDU hosts provided")