Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Archiving and Purging Jobs

    As Junos Space Network Management Platform runs, over time, the number of job entries in the database increases, affecting system performance. In most cases, job results are no longer useful after a few hours. Such jobs can be archived as a CSV file to either the local server or a remote server, and then purged to improve system performance.

    You can archive jobs (successful or not) completed before any date and time. up to the time you initiate archiving. You must be assigned the Super Administrator or Job Administrator role to perform this task.

    Jobs can be archived locally or to a remote server. When you archive jobs locally, the archive files are stored in the default /var/lib/mysql/archive directory on the active Junos Space node. When you archive jobs to a remote server, the archive files are stored in the directory that you specify.

    The default filename for an archive is JunosSpaceJobArchive_date_time.zip, where date specifies the year, month, and day, in the yyyy-mm-dd format; and time specifies hours, minutes, and seconds, in the hh-mm-ss format.

    This topic includes the following tasks:

    Archiving Jobs to a Local Server and Purging the Jobs from the Database

    You can archive jobs to the local server. The local server is the server that functions as the active node in the Junos Space fabric.

    To archive Junos Space Platform jobs to the local server and then purge them from the database:

    1. On the Junos Space Platform UI, select Jobs > Job Management.

      The Job Management page appears.

    2. Click the Archive/Purge Jobs icon.

      The Archive/Purge Jobs dialog box appears.

    3. For the Archive Jobs Before field, select a date and time to specify the date up to which all jobs are to be archived and then purged from the Junos Space Platform database. You can specify only a date and time in the past.

      Note: If you do not specify a date and time in the Archive Jobs Before field, Junos Space Platform archives and then purges from the database all jobs up to the time that you initiated the archive and purge operation.

    4. For the Archive Mode field, select local from the list.
    5. Select the job type from the Job Type list. You can select any job type from the list to archive jobs of that job type, or select the All option to archive all jobs and then purge them from the database.

      Job types of jobs that are already initiated or completed in Junos Space appear on the Job Type list. In-progress and scheduled jobs are not archived.

    6. To schedule the archive-and-purge operation, perform one of the following actions:

      • Clear the Schedule at a later time check box (the default) to initiate the archive-and-purge operation when you complete this procedure.
      • Select the Schedule at a later time check box and specify a later start date and time for the archive-and-purge operation.

      Note: The date and time that you specify in the Archive/Purge Jobs dialog box is the date and time on the client computer. Junos Space Platform maps the specified date and time to the Junos Space server time and schedules the archive-and-purge task.

    7. Click Submit.

      The Jobs Archive and Purge Job Information page appears.

      Note: If sufficient space is not available in the default directory, Junos Space displays an error message and the archive-and-purge task fails.

    8. Perform one of the following actions:
      • To view job details for the archive-and-purge operation, click the Job ID link in the Jobs Archive and Purge Job Information dialog box.
      • Click OK to close the Jobs Archive and Purge Job Information dialog box.

    Archiving Jobs to a Remote Server and Purging the Jobs from the Database

    You can also choose to archive jobs to remote servers before purging them from the Junos Space Platform database. Junos Space Platform uses Secure Copy Protocol (SCP) to copy the files in this case.

    To archive jobs to a remote server and then purge them from the Junos Space Platform database:

    1. On the Junos Space Platform UI, select Jobs > Job Management.

      The Job Management page appears.

    2. Click the Archive/Purge Jobs icon. The Archive/Purge Jobs dialog box appears.
    3. For the Archive Jobs Before field, select a date and time to specify the date up to which all jobs are to be archived and then purged from the Junos Space Platform database. You can specify only a date and time in the past.

      Note: If you do not specify a date and time in the Archive Jobs Before field, Junos Space Platform archives and then purges from the database all jobs up to the time that you initiated the operation.

    4. For the Archive Mode field, select remote from the list (the default).
    5. Select the job type from the Job Type list. You can select any job type from the list to archive jobs of that job type, or select the All option to archive all jobs, and then purge them from the database.

      Job types of jobs that are already initiated or completed in Junos Space appear in the Job Type list. In-progress and scheduled jobs are not archived.

    6. In the User field, enter a valid username to access the remote host server.
    7. In the Password field, enter a valid password to access the remote host server.
    8. In the Confirm Password field, reenter the password you entered in the previous step.
    9. In the Machine IP field, enter the IP address of the remote host server.
    10. In the Directory field, enter a directory path on the remote host server for the archived files.

      Note: The directory path must already exist on the remote host server. If sufficient space is not available in the specified directory, Junos Space displays an error message and the archive-and-purge task fails.

    11. Schedule the archive-and-purge task by performing one of the following actions:
      • Clear the Schedule at a later time check box (the default) to initiate the archive-and-purge operation when you complete this procedure.
      • Select the Schedule at a later time check box and specify a later start date and time for the archive-and-purge operation.

      Note: The date and time that you specify in the Archive/Purge Jobs dialog box is the date and time on the client computer. Junos Space Platform maps the specified date and time to the Junos Space server time and schedules the archive-and-purge task.

    12. Click Submit.

      The Jobs Archive and Purge dialog box displays the file location and the name of the remote server.

    13. Click Continue in the Jobs Archive and Purge dialog box to archive and purge the jobs.

      Junos Space Platform displays the Jobs Archive and Purge Job Information dialog box.

    14. Perform one of the following actions:
      • To view job details for the archive-and-purge operation, click the Job ID link in the Jobs Archive and Purge Job Information dialog box.
      • Click OK to close the Jobs Archive and Purge Job Information dialog box.

    Modified: 2015-07-30