{"action":"opened","issue":{"url":"https://api.github.com/repos/alces-software/metalware/issues/423","repository_url":"https://api.github.com/repos/alces-software/metalware","labels_url":"https://api.github.com/repos/alces-software/metalware/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/alces-software/metalware/issues/423/comments","events_url":"https://api.github.com/repos/alces-software/metalware/issues/423/events","html_url":"https://github.com/alces-software/metalware/issues/423","id":320332638,"number":423,"title":"[Asset Tool] Hunt Mac Addresses for Assets","user":{"login":"ColonelPanicks","id":27725639,"avatar_url":"https://avatars2.githubusercontent.com/u/27725639?v=4","gravatar_id":"","url":"https://api.github.com/users/ColonelPanicks","html_url":"https://github.com/ColonelPanicks","followers_url":"https://api.github.com/users/ColonelPanicks/followers","following_url":"https://api.github.com/users/ColonelPanicks/following{/other_user}","gists_url":"https://api.github.com/users/ColonelPanicks/gists{/gist_id}","starred_url":"https://api.github.com/users/ColonelPanicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColonelPanicks/subscriptions","organizations_url":"https://api.github.com/users/ColonelPanicks/orgs","repos_url":"https://api.github.com/users/ColonelPanicks/repos","events_url":"https://api.github.com/users/ColonelPanicks/events{/privacy}","received_events_url":"https://api.github.com/users/ColonelPanicks/received_events","type":"User","site_admin":false},"labels":[{"id":264180817,"url":"https://api.github.com/repos/alces-software/metalware/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"WilliamMcCumstie","id":16605145,"avatar_url":"https://avatars1.githubusercontent.com/u/16605145?v=4","gravatar_id":"","url":"https://api.github.com/users/WilliamMcCumstie","html_url":"https://github.com/WilliamMcCumstie","followers_url":"https://api.github.com/users/WilliamMcCumstie/followers","following_url":"https://api.github.com/users/WilliamMcCumstie/following{/other_user}","gists_url":"https://api.github.com/users/WilliamMcCumstie/gists{/gist_id}","starred_url":"https://api.github.com/users/WilliamMcCumstie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilliamMcCumstie/subscriptions","organizations_url":"https://api.github.com/users/WilliamMcCumstie/orgs","repos_url":"https://api.github.com/users/WilliamMcCumstie/repos","events_url":"https://api.github.com/users/WilliamMcCumstie/events{/privacy}","received_events_url":"https://api.github.com/users/WilliamMcCumstie/received_events","type":"User","site_admin":false},"assignees":[{"login":"WilliamMcCumstie","id":16605145,"avatar_url":"https://avatars1.githubusercontent.com/u/16605145?v=4","gravatar_id":"","url":"https://api.github.com/users/WilliamMcCumstie","html_url":"https://github.com/WilliamMcCumstie","followers_url":"https://api.github.com/users/WilliamMcCumstie/followers","following_url":"https://api.github.com/users/WilliamMcCumstie/following{/other_user}","gists_url":"https://api.github.com/users/WilliamMcCumstie/gists{/gist_id}","starred_url":"https://api.github.com/users/WilliamMcCumstie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilliamMcCumstie/subscriptions","organizations_url":"https://api.github.com/users/WilliamMcCumstie/orgs","repos_url":"https://api.github.com/users/WilliamMcCumstie/repos","events_url":"https://api.github.com/users/WilliamMcCumstie/events{/privacy}","received_events_url":"https://api.github.com/users/WilliamMcCumstie/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-04T16:07:17Z","updated_at":"2018-05-04T16:07:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"_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._\r\n\r\n## The Idea\r\n\r\nIdeally 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:\r\n```\r\nmetal asset tool hunter --servers 'c6420*'  --network_adapter 'onboard' --interface 'em1'\r\n``` \r\nWhere:\r\n- `--servers` is a regex match of server assets to iterate through\r\n- `--network_adapter` is the network adapter within the servers to use\r\n- `--interface` is the the interface name within the network_adapter asset to modify the MAC address for\r\n\r\nThis would then function in a similar way to hunter with prompts\r\n```\r\nWaiting for new nodes to appear on the network, please network boot them now...\r\n(Ctrl-C to terminate)\r\nDetected a machine on the network (52:54:00:78:02:01). Please enter the destination attribute:  |[c6420a-server1.network_adapters.onboard.ports.em1.mac]|\r\n\r\nDetected a machine on the network (52:54:00:78:02:02). Please enter the destination attribute:  |[c6420a-server2.network_adapters.onboard.ports.em1.mac]|\r\n\r\n```\r\nThe outcome would be that the `ports.em1.mac` for the network adapter `onboard` for the server `c6420a-server1` \r\n\r\n## Changes to Metalware\r\n\r\n- Metal asset hunter tool\r\n- Ability to link `network` asset to a network in `config/domain.yaml` (e.g. network asset `private` linked to `config.network.pri`)\r\n\r\n## Changes to Repo\r\n\r\n- Change `dhcp/default` to identify the MAC address from the asset instead of the hunter cache\r\n- Change to `config/domain.yaml` to identify the network interface from the node asset\r\n"}}
{"actor":{"display_login":"ColonelPanicks"}}