mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Add some initial files
This commit is contained in:
parent
04e1fb26c9
commit
7aeb3aa6c5
5 changed files with 141 additions and 0 deletions
1
pkg/pdu/README.md
Normal file
1
pkg/pdu/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
./magellan pdu collect x3000m0 --username admn --password admn
|
||||
15
pkg/pdu/pdu-inventory.go
Normal file
15
pkg/pdu/pdu-inventory.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package pdu
|
||||
|
||||
type PDUOutlet struct {
|
||||
ID string `json:"id"` // e.g., "35" or "BA35"
|
||||
Name string `json:"name"` // e.g., "Link1_Outlet_35"
|
||||
PowerState string `json:"power_state"` // e.g., "ON" or "OFF"
|
||||
}
|
||||
|
||||
type PDUInventory struct {
|
||||
Hostname string `json:"hostname"`
|
||||
Model string `json:"model,omitempty"`
|
||||
SerialNumber string `json:"serial_number,omitempty"`
|
||||
FirmwareVersion string `json:"firmware_version,omitempty"`
|
||||
Outlets []PDUOutlet `json:"outlets"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue