Configuring Video Archival (Optional)

To archive the videos:

  1. Click Reports > Settings on the home page of the console.

  2. Click Audit Settings.

  3. Add the following sample script under Rollover Script:

    \nuse warnings;\nuse File::Copy; \n  $ctx->log_info(\"===================================================================================\");\nif ($DBGRP eq \'cmdctrl\') {\n    my $srcdir = ($^O eq \'MSWin32\') ? \"C:/Program Files/Netiq/npum/service/local/audit/video/capture/\" :  \"/opt/netiq/npum/service/local/audit/video/capture/\"; \n\n    my $dest = ($^O eq \'MSWin32\') ? \"C:/Program Files/Netiq/npum/service/local/audit/videobck/\" : \"/opt/netiq/npum/service/local/audit/videobck/\";\n\n    my $fileage = 1;     #Age in days \n\n    opendir(DIR, $srcdir) or die $ctx->log_error(\"Can\'t open $srcdir: $!\");\n    my @files = grep {!/^\\. $/ } readdir(DIR);\n    foreach my $file (@files) {\n        my $old = \"$srcdir/$file\";\n        if( (-f $old) && ($fileage< -M $old) ) {\n    unlink glob \"\'/opt/netiq/npum/service/local/audit/videobck/*.*\'\";\n    \n            move($old, $dest) or die $ctx->log_error(\"Move $old -> $dest failed: $!\");\n      \n        }\n    }  \n    close(DIR);\n    $ctx->log_info(\"Backup Complete\");\n}
  4. Click Update.