Add some examples

This commit is contained in:
Ben McDonald 2025-06-17 11:10:52 -07:00
parent c379d248ff
commit 5960c987d4
No known key found for this signature in database

View file

@ -61,6 +61,12 @@ var pduCmd = &cobra.Command{
Use: "pdu [hosts...]", Use: "pdu [hosts...]",
Short: "Collect inventory from JAWS-based PDUs", Short: "Collect inventory from JAWS-based PDUs",
Long: `Connects to one or more PDUs with a JAWS interface to collect hardware inventory.`, 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 <smd-endpoint>`,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
if len(args) == 0 { if len(args) == 0 {
log.Error().Msg("no PDU hosts provided") log.Error().Msg("no PDU hosts provided")