Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

H3C log transfer to the mailbox

ferdo
Advisor

H3C log transfer to the mailbox

Hi,

 

I want to know if it is possible to transfer the log displayed by #display log command to an email address ?

 

Thank you for your help.

 

Regards

Ferdo

2 REPLIES
Vince-Whirlwind
Honored Contributor

Re: H3C log transfer to the mailbox

Comware supports Python, https://github.com/networkingdvi/HPN-Scripting

 

Python can do smtp, smtplib.SMTP([host[, port[, local_hostname[, timeout]]]]

 

So, yes, you can probably write a script to accept as input the result of a show log and send it to email.

ferdo
Advisor

Re: H3C log transfer to the mailbox

Hi

 

Thank you for help.

Il will try.

 

Regards

Ferdo