cancel
Showing results for 
Search instead for 
Did you mean: 

How to export Backup Jobslogs via PowerShell in excel file in BE2012

nfougeroux
Level 4

Hello,

I would like to export all the view joblog in a excel file with some fields , name of te job, type , success or not sucess, with all the field by default. 

I have installed Backup Exec Management Command Line Interface on the sever  but i don't how to answer sql database to get this informations.

I tried get-jobs > c:\joblist.xls but with a file 0 Ko.

 

When i open Backup Exec Management Command Line Interface, it display this message in red ? did you know why ?

 

Bienvenue sur l'interface de gestion par ligne de commande Backup Exec

Pour obtenir la liste des commandes Backup Exec, saisissez :

    Get-BECommand

Pour lancer l'interface de gestion par ligne de commande Backup Exec, saisissez
:

    Show-BEHelp


Copyright (c) 2012 Symantec Corporation. All rights reserved.

Import-Module : Impossible de charger le fichier D:\Program Files\Symantec\Back
up Exec\Modules\BEMCLI\BEMCLI.Scripts.psm1. Le contenu du fichier D:\Program Fi
les\Symantec\Backup Exec\Modules\BEMCLI\BEMCLI.Scripts.psm1 peut avoir été fals
ifié, car le hachage du fichier ne correspond pas à celui qui figure dans la si
gnature numérique. Le script ne sera pas exécuté sur le système. Pour plus d'in
formations, consultez « get-help about_signing »..
Au niveau de ligne : 1 Caractère : 17
+ & {import-module <<<<  'd:\Program Files\Symantec\Backup Exec\Modules\BEMCLI\
BEMCLI.psd1'; function global:prompt{ 'BEMCLI> ' }}
    + CategoryInfo          : NotSpecified: (:) [Import-Module], PSSecurityExc
   eption
    + FullyQualifiedErrorId : RuntimeException,Microsoft.PowerShell.Commands.I
   mportModuleCommand

 

5 REPLIES 5

pkh
Moderator
Moderator
   VIP    Certified

Did you install BE onto the D: drive?  It appears that the BEMCLI module is either damaged or not meant to be installed on the D: drive.

nfougeroux
Level 4

Yes it is.

I would like to export all the view joblog in a excel file with some fields , name of the job, type, success or not sucess, with all the field by default.

What is the request ? and how i can do this ?

 

 

pkh
Moderator
Moderator
   VIP    Certified

Before you can even talk about what cmdlet to use, you got to get BEMCLI working. 

Start up a command prompt and key in

1) Powershell

2) set-executionpolicy remotesigned

3) import-module "d:\program files\symantec\backup exec\modules\bemcli\bemcli"

Let me know whether you get any error messages

nfougeroux
Level 4

Hello, 

I did, Nothjing more, and no messages displayed ... 

After what we do ?

 

Voulez-vous modifier la stratégie d'exécution ?
[O] Oui  [N] Non  [S] Suspendre  [?] Aide (la valeur par défaut est « O ») : O
PS C:\Documents and Settings\Administrator> import-module "d:\program files\s
ymantec\backup exec\modules\bemcli\bemcli"
PS C:\Documents and Settings\Administrator>

 

pkh
Moderator
Moderator
   VIP    Certified
See this document http://www.symantec.com/docs/TECH203455 You may want to read the BEMCLI manual http://www.symantec.com/docs/DOC5438