Comware Based
1820069 Members
2378 Online
109608 Solutions
New Discussion юеВ

Redirect display output to TFTP Server

 
davidraendyka
Occasional Contributor

Redirect display output to TFTP Server

Please help me,

i want to redirect 'display diagnostic-information' output to a TFTP Server. The Device is HPE switch 5130 EI JG933A.

what command to execute this?

2 REPLIES 2
drk787
HPE Pro

Re: Redirect display output to TFTP Server

Hi,

 

You may follow any of the following procedure.

 

OPTION 1:  Saving the output to a text file on the desktop using Putty.


Using PUTTY:
1. Run Putty software.
On the left side of the pop up you will find an option LOGGING, Click that and on the right side, choose тАЬALL SESSIONS OUTPUTSтАЭ.
2. Click on Browse and select the destination as Desktop, also give a name to the file(EX: switchlog.txt).
 
3. Now, Click on Session on the left hand side and on right side type in the IP Address of the switch and click on telnet/SSH and then OK.
 
4. Now you will get the SwitchтАЩs prompt and type in the command, and select 'N' so that the output is displayed on the terminal and saved to the file (switchlog.txt) on desktop.

Example:
<SW-A>disp diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:N
Please input the file name(*.tar.gz)[flash:/diag_SW-A_20190327-055701.tar.gz]:
Diagnostic information is outputting to flash:/diag_SW-A_20190327-055701.tar.gz.
Please wait...
Save successfully.

<SW-A>dir
Directory of flash:
   0 -rw-       40238 Mar 27 2019 05:57:01   diag_SW-A_20190327-055701.tar.gz

 

 

OPTION 2: Saving the output to flash, and exporting to TFTP server

 

Example:


<SW-A>display diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:Y
Please input the file name(*.tar.gz)[flash:/diag_SW-A_20190327-055701.tar.gz]:
Diagnostic information is outputting to flash:/diag_SW-A_20190327-055701.tar.gz.
Please wait...
Save successfully.

 


<SW-A>dir
Directory of flash:
   0 -rw-       40238 Mar 27 2019 05:57:01   diag_SW-A_20190327-055701.tar.gz

 


<SW-A>tftp 10.1.1.100 put flash:/diag_SW-A_20190327-055701.tar.gz

 

 

Thank You!
I am an HPE Employee

Accept or Kudo

VoIP-Buddy
HPE Pro

Re: Redirect display output to TFTP Server

Option #2 is the preferred approach.  Doing it with Putty is slower and you run the risk of not getting the entire display diag which can be quite long.

Options #2 is much faster and you will get the entire diag.  Then you can FTP or TFTP it off of the switch.

Regards,

David

I work for HPE in Aruba Technical Support