alces-software / metalware

Tools and conventions for improving bare metal machine management
Other
2 stars 0 forks source link

[Asset Tool] Hunt Mac Addresses for Assets #423

Open ColonelPanicks opened 6 years ago

ColonelPanicks commented 6 years ago

This issue is not a modification to hunter but instead to implement a hunter-style tool which can be used to update asset details with MAC addresses.

The Idea

Ideally a command that can run like hunter (given a starting point which auto-increments as more data comes in). A preliminary idea of the data we'd like to put into the command is below:

metal asset tool hunter --servers 'c6420*'  --network_adapter 'onboard' --interface 'em1'

Where:

This would then function in a similar way to hunter with prompts

Waiting for new nodes to appear on the network, please network boot them now...
(Ctrl-C to terminate)
Detected a machine on the network (52:54:00:78:02:01). Please enter the destination attribute:  |[c6420a-server1.network_adapters.onboard.ports.em1.mac]|

Detected a machine on the network (52:54:00:78:02:02). Please enter the destination attribute:  |[c6420a-server2.network_adapters.onboard.ports.em1.mac]|

The outcome would be that the ports.em1.mac for the network adapter onboard for the server c6420a-server1

Changes to Metalware

Changes to Repo