X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2Fhoneycomb%2FHoneycombUtil.py;fp=resources%2Flibraries%2Fpython%2Fhoneycomb%2FHoneycombUtil.py;h=f607c2439ac39eb4a9410ea151e240f191684b43;hp=22a7e7ef1e791049fb18b1e5d12afd149f4e7390;hb=677ae40a2be6db9f49b19ada3c4299a8904f7784;hpb=eafa40a443655df6d286fdabca830ca356ce51af diff --git a/resources/libraries/python/honeycomb/HoneycombUtil.py b/resources/libraries/python/honeycomb/HoneycombUtil.py index 22a7e7ef1e..f607c2439a 100644 --- a/resources/libraries/python/honeycomb/HoneycombUtil.py +++ b/resources/libraries/python/honeycomb/HoneycombUtil.py @@ -437,3 +437,18 @@ class HoneycombUtil(object): (_, stdout, _) = ssh.exec_command(cmd, timeout=30) return stdout + + @staticmethod + def archive_honeycomb_log(node): + """Copy honeycomb log file from DUT node to VIRL for archiving. + + :param node: Honeycomb node. + :type node: dict + """ + + ssh = SSH() + ssh.connect(node) + + cmd = "cp /var/log/honeycomb/honeycomb.log /scratch/" + + ssh.exec_command_sudo(cmd)