Commit graph

622 commits

Author SHA1 Message Date
cb1d90b840
refactor: added tags to power struct 2025-06-19 16:53:43 -06:00
f12a6c6713
refactor: power struct and actions 2025-06-19 16:51:55 -06:00
448c5fb1ca
refactor: changed links to store ODataID instead of ID 2025-06-19 16:13:41 -06:00
c6b80c8ddc
refactor: updated crawler to add relevant power output 2025-06-18 16:10:16 -06:00
David Allen
c9d5825114
Merge pull request #103 from OpenCHAMI/100-pdu-inventorydiscovery-in-openchami
Add PDU collect command to gather PDU inventory
2025-06-17 20:45:01 +02:00
Ben McDonald
068478d9bc
Run gofmt 2025-06-17 11:21:42 -07:00
Ben McDonald
7d7ccf33b9
Update README 2025-06-17 11:18:51 -07:00
Ben McDonald
5960c987d4
Add some examples 2025-06-17 11:10:52 -07:00
Ben McDonald
c379d248ff
Remove unused PDU command 2025-06-17 11:06:54 -07:00
Ben McDonald
4971f62dba
Switch to magellan collect pdu 2025-06-13 11:27:44 -07:00
Ben McDonald
ad500d086d
Fix xname numbering 2025-06-13 10:05:48 -07:00
Ben McDonald
940e7fee2a
Add socket type and construct correct xname 2025-06-13 09:26:10 -07:00
Ben McDonald
dc09b7051d
Switch to standard xname 2025-06-13 08:56:40 -07:00
Ben McDonald
6b3d317086
Remove system info 2025-06-12 15:25:48 -07:00
Ben McDonald
20492fe03e
Remove mock functionality 2025-06-12 15:11:19 -07:00
Ben McDonald
1b80bef5fa
Fix socket type 2025-06-12 15:04:20 -07:00
Ben McDonald
67f9d3e2b3
Change format 2025-06-12 14:54:23 -07:00
Ben McDonald
4e4d00803d
Update info to reflect real PDU 2025-06-12 14:02:45 -07:00
Ben McDonald
a074a8aa6b
Switch back to pdu xname 2025-06-11 14:04:05 -07:00
Ben McDonald
b256011e8a
Change ID 2025-06-10 16:48:53 -07:00
Ben McDonald
8891041e50
Switch to old xname 2025-06-10 16:42:03 -07:00
Ben McDonald
c5ba98eacd
Switch to node 2025-06-10 15:13:05 -07:00
Ben McDonald
3dad7e517b
Switch xname 2025-06-10 14:15:49 -07:00
Ben McDonald
fb5bb1ef07
Update some var names 2025-06-10 14:08:28 -07:00
Ben McDonald
2692913f91
Update some var names 2025-06-10 13:51:08 -07:00
Ben McDonald
7e50184d7a
Update some var names 2025-06-10 13:48:21 -07:00
Ben McDonald
ddf2b3deb4
Update some var names 2025-06-10 13:45:48 -07:00
Ben McDonald
58af92d297
Change xname 2025-06-09 15:29:29 -07:00
Ben McDonald
5e28654375
Cleanup data 2025-06-09 15:06:02 -07:00
Ben McDonald
5d24cbffec
Remove port numbers 2025-06-09 15:04:43 -07:00
Ben McDonald
c47addedc5
Turn into an array to match expected format 2025-06-09 14:55:07 -07:00
Ben McDonald
28231c6912
add a mock flag for running on system without a PDU 2025-06-09 14:49:42 -07:00
Ben McDonald
ae26dac328
Fix typo 2025-06-06 13:59:27 -07:00
Ben McDonald
266b3df0b7
Print data in SMD format 2025-06-06 13:53:53 -07:00
Ben McDonald
a9d16f50cf
Querying PDU working 2025-06-06 13:41:21 -07:00
Ben McDonald
56522a3f29
Add some code to query PDUs 2025-06-06 13:25:19 -07:00
Ben McDonald
7aeb3aa6c5
Add some initial files 2025-06-05 15:33:03 -07:00
David Allen
04e1fb26c9
Split the collect Command For Customization (#93)
* feat: initial implementation of command split

* feat: update collect and new send cmd

* chore: cleanup unused code

* chore: refactored getting username

* chore: more refactoring and cleanup

* feat: update send cmd implementation

* chore: changed/updated example config

* chore: made cmd more consistent and added formatting

* refactor: removed --host flag from scan

* chore: cleaned up and fixed issue with client

* chore: cleaned up CLI flags in collect cmd

* feat: updated crawl to include managers and output YAML optionally

* refactor: updated and improved send implementation

* refactor: minor improvements

* refactor: added util func to check for empty slices

* fix: issue with reading from stdin

* refactor: added scheme trimming function for URIs

* refactor: changed host arg back to positional

* refactor: removed unused vars and added --output-dir flag

* fix: make -f for secrets persistent

* refactor: removed --host flag and request in collect

* refactor: changed --output flag to --output-file

* fix: updated flags for collect

* fix: typo in crawler error

* fix: dir being created when outputDir not set

* fix: reading stdin and data args

* fix: made output using -v and -o consistent

* readme: added info about command split

* updated changelog adding missing version entries

* chore: updated example to use host as positional arg

* fix: issue with reading --data arg

* fix: remove unused import from collect pkg

Signed-off-by: Devon Bautista <devonb@lanl.gov>

---------

Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
Signed-off-by: Devon Bautista <devonb@lanl.gov>
Co-authored-by: Devon Bautista <devonb@lanl.gov>
2025-05-29 15:15:46 -04:00
David Allen
fba4a89a0e
Merge pull request #98 from bmcdonald3/remove-https
Remove https from RedfishEndpoints post
2025-05-28 10:58:11 -06:00
Ben McDonald
bff549bcfa
Remove https from RedfishEndpoints post 2025-05-28 09:57:20 -07:00
David Allen
de102ecc97
Merge pull request #95 from SiPearl/92-fix-failed-to-find-MAC-address-with-IP
#92 FindMACAddressWithIP expects Host IP without prefix, but is always true
2025-05-26 23:14:56 -06:00
jose-angel gomez-lopez
17ec8b07a7
#92 making sure that the argument of net.ParseIP is a pure IP address (x.x.x.x), without any prefix 2025-05-26 10:15:00 +02:00
David Allen
fcfe76295e
Merge pull request #87 from OpenCHAMI/default-secrets
Add "default" secret lookup in `LocalStore` for `crawl` and `collect` commands
2025-04-21 16:07:43 -06:00
cc6ab50ee4
readme: updated information about default secrets 2025-04-21 15:57:19 -06:00
David Allen
726eed016a
Merge pull request #90 from OpenCHAMI/final-default-secrets
Final default secrets
2025-04-21 15:42:06 -06:00
cf1fcc7646
fix: added check to stop collect on error 2025-04-21 15:37:15 -06:00
233be46bee
fix: changed persistent flags in collect to fix binding 2025-04-21 12:17:28 -06:00
Devon Bautista
a6bf6cc1b6
fix: clarify that override is temporary 2025-04-17 09:47:29 -06:00
Devon Bautista
9b887e4bdc
fix: only do it once 2025-04-17 09:43:03 -06:00
Devon Bautista
f6864bd3f5
fix: log override for local store too 2025-04-17 09:39:52 -06:00