[pve-devel] [PATCH pve-manager 2/2] pvenode: Print MAC address used for WOL packet on success
Christian Ebner
c.ebner at proxmox.com
Fri Jan 18 11:13:09 CET 2019
Show the MAC address used in the wake on LAN packet if it was send successfully
via 'pvenode wakeonlan <node>'.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
PVE/CLI/pvenode.pm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index b698d2a5..6fa0870c 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@ -207,7 +207,11 @@ our $cmddef = {
},
},
- wakeonlan => [ 'PVE::API2::Nodes::Nodeinfo', 'wakeonlan', [ 'node' ], { } ],
+ wakeonlan => [ 'PVE::API2::Nodes::Nodeinfo', 'wakeonlan', [ 'node' ], {}, sub {
+ my ($mac_addr) = @_;
+
+ print "Wake on LAN packet send for '$mac_addr'\n";
+ }],
};
--
2.11.0
More information about the pve-devel
mailing list