Save Time by using CLI to Copy Command Output from HP switches to a TFTP Server
So I was lately performing some troubleshooting and wanted to do a “present tech all” on a couple of our Switches to do some additional evaluation. My traditional method was to hearth up PuTTY (or KiTTY which is an improved “fork” of Putty) and do a “present tech all” then manually copy and paste into a ready notepad window to save the textual content file.
I lately came upon there’s a copy command that permits an administrator to copy a giant variety of configuration and logs information from a change in addition to a command-output choice which permits an administrator to specify a CLI command to copy output of. All you want to benefit from this function is an TFTP or SFTP server to copy the output to. So a pattern output to a TFTP server can be (the place the IP tackle is your TFTP server and what ever filename you need to save the output as)
copy command-output "present tech all" tftp 172.sixteen.20.fifty seven show_tech_all.txt
After getting into that in, you will notice the change carry out the TFTP obtain with the output of the required CLI command. Once finished, navigate to your TFTP (or SFTP) server Root Directory and also you’ll have a show_tech_all.txt file prepared to open in Notepad. You also can do operating config (swName# present run) and crash logs using the tactic above, simply to TAB completion on the copy command to see what is accessible in your specific change.