mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Add some examples
This commit is contained in:
parent
c379d248ff
commit
5960c987d4
1 changed files with 6 additions and 0 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue