Comware

 View Only
  • 1.  Syslog on 5130 switches

    Posted Oct 04, 2021 02:53 PM

    Hi, we are actually deploying ElasticSearch in our company.

    I configured all my switches to send logs to ElasticSearch, but now I don't have log anymore locally on the switch.

    Is there a way to send log to syslog, but to keep a copy on the switches?

    Thanks for kind help.


    #Aruba
    #Switch_Router_Interconnect


  • 2.  RE: Syslog on 5130 switches

    Posted Oct 04, 2021 03:23 PM

    Hello @hemh ,

    Logs remains in the switch and stored in logfile.log & Diagfile.log under 'Dir'.

    You can check by using below command:

     

     

    <HPE> dir /all-filesystems   -->Can view log files under directory  logfile 
    <HPE>dir /all-filesystems
    Directory of flash:
       0 -rw-    91373568 Jan 13 2013 00:16:32   5130HI-CMW710-R3507.ipe
       1 -rw-    10720256 Aug 08 2008 20:00:00   5130hi-cmw710-boot-r1122p02.bin
       2 -rw-     7177216 Jan 13 2013 00:19:14   5130hi-cmw710-boot-r3507.bin
       3 -rw-    61771776 Aug 08 2008 20:00:00   5130hi-cmw710-system-r1122p02.bin
       4 -rw-    84189184 Jan 13 2013 00:19:54   5130hi-cmw710-system-r3507.bin
       5 drw-           - Feb 11 2013 00:23:16   diagfile
      |
      10 drw-           - Jan 09 2014 01:09:35   logfile
    
    <hpe>logfile save                -->It will save file into logfile/diagfile directory 
    <HPE>diagnostic-logfile save 

     

     

    I hope this will help you.

    Thanks!