Junos OS

Expand all | Collapse all

Thousands of files in /var/log

Jump to Best Answer
  • 1.  Thousands of files in /var/log

    Posted 03-22-2018 12:15

    Model: ex3400-48p
    Junos: 15.1X53-D57.3

     

    Had problems making change to the config, so i dig a bit an notice the filesystem was full and i had 175K+ files in /var/log on each of the five members of a virtual chassis. 

     

    Turns out a log file named "jvcsp10_20180322_150930_auto_image_upgrade_commit_log" is created every minute on each member (timestamp changes of course) and I had to delete them manually with a 'find' command because a request storage cleanup just didn't do it.  The log files dated back from about 6 months ago.

     

    The virtual chassis works again correctly but these files keeps pilling in /var/log.  Any idea what's wrong ?   here is the content of one of these log files :

     

    root@jvcsp10> op url /var/db/scripts/op/commit-config.slax config_file /config/auto_image_upgrade.conf action override
    
    warning: Error while setting loading configuration
    
    error: syntax error
    

    Thanks



  • 2.  RE: Thousands of files in /var/log

     
    Posted 03-24-2018 04:33

    Looks like the ZTP setting might be accidently still on for the switch. Can you look for auto-image-upgrade and delete if it is still there.

     

    show configuration chassis

     

    if this shows

    auto-image-upgrade

     

    enter configuration mode and

     

    delete chassis auto-image-upgrade

     



  • 3.  RE: Thousands of files in /var/log
    Best Answer

    Posted 03-24-2018 11:32

    Hi,

     

    Also, check if any configuration under event-options.

     

    //Regards

    AD



  • 4.  RE: Thousands of files in /var/log

    Posted 03-26-2018 07:54

    Thanks, i don't know how it got there in the first place, but I had this in the config 

     

    event-options {
        generate-event {
            events auto_image_upgrade_commit_config;
    

    deleting it solve the problem. 

     

     



  • 5.  RE: Thousands of files in /var/log

    Posted 03-26-2018 09:52

    Hi saturnin55,

     

    Good to know it worked..

     

    //Regards

    AD