DP11P1 - EndOfSession Notification not working correctly

Hi,

noticed issues with reports / notifications in DP11P1.
Config files of reports / notifications are encrypted in DP11..so I guess that's why they had to mess with a bunch of code there.

Could anyone with DP11(P1) please check if notification 'EndOfSession' will send an email via 'email' and/or 'smtp'?

omnidbutil -get_readable_content -infile /etc/opt/omni/server/Notifications

-snip-

NOTIFICATION "test-backup-end"
{
    -event "EndOfSession"
    -email "myemailaddress@mydomain.com"
    -parameter LEVEL "Normal"
    -parameter DATALIST "*"
    -parameter SESSSTAT "*"
    -parameter SESSIONTYPE "Backup"
}


NOTIFICATION "test-backup-start"
{
    -event "StartOfSession"
    -email "myemailaddress@mydomain.com"
    -parameter LEVEL "Normal"
    -parameter DATALIST "*"
    -parameter SESSIONTYPE "Backup"
}

We have omnirpt HF already in place, without that 'smtp' would not work at all.

omnirpt -version
Micro Focus Data Protector A.11.00: OMNIRPT, internal build OCTCR19Q1440200_HF1, built on Mi 20 Okt 2021 07:08:55 CEST

When looking at debugs from a backup session...there is an omnirpt call in there that is not correct...
There seems to be an issue with omirpt options “-level Normal”. That’s why omnirpt help is displayed...

[ 30] GetEnv(SESSIONLIST)
[ 80] Regular report by omnirpt

[ 99] 2021-12-27 13:44:00.341 ("/lib/cmn/unix_exe.c $Rev: 46200 $ $Date:: 2015-01-14 00:11:16 ":769)
[ 99] ===>> (0) CmnRunScript {
[ 99] e Args: flags:0x0, timeout:0, argc:13, username:<null>, dir:/opt/omni/bin, exe:omnirpt
[ 99]
[ 18] [EnvReadInt] OB2EXECTIMEOUT=n/a (default:0)
[ 30]   arg[0]:omnirpt
[ 30]   arg[1]:-exec
[ 30]   arg[2]:-environment
[ 30]   arg[3]:-email
[ 30]   arg[4]:myemailaddress@mydomain.com
[ 30]   arg[5]:-report
[ 30]   arg[6]:end_of_session
[ 30]   arg[7]:-level
[ 30]   arg[8]:Normal
[ 30]   arg[9]:-debug
[ 30]   arg[10]:1-331,333-500,ID:6740
[ 30]   arg[11]:debugging1.txt
[ 30]   arg[12]:
[ 30] [CmnRunScript] path:/opt/omni/bin/omnirpt
[199] [OS_CreatePipe] control={rd:5, wr:6}
[199] [OS_CreatePipe] output={rd:7, wr:8}
[199] [OS_CreatePipe] procfd={rd:9, wr:10}
[ 30] [OS_Sigaction] signum:17(SIGCHLD), handler:0x51ea2e(OnChildExit), sa_flags:(hex)10000005
[ 30] [OS_Sigaction] old: sa_flags:4000000, handler:0x1
[ 30] [OS_SigBlock] sigprocmask how:0(SIG_BLOCK), signum:17(SIGCHLD)
[ 30] [OS_SigBlock] sigprocmask how:1(SIG_UNBLOCK), signum:17(SIGCHLD)
[ 30] [CmnRunScript] Process PID:14637 started
[199] [OS_CloseHandle] output.wr:8
[199] [OS_CloseHandle] control.wr:6
[199] [OS_CloseHandle] control.rd:5
[199] [CmnPipeRead] pswait:1
[400] [CmnPipeRead] read:3202/4095
Usage synopsis:

omnirpt -version | -help

omnirpt -report ReportName
        ReportOptions
        [FormatOption]

 

tests in command line...
/opt/omni/bin/omnirpt -exec -environment -email myemailaddress@mydomain.com -report end_of_session -level Normal

Usage synopsis:

omnirpt -version | -help

omnirpt -report ReportName

 

compared to... (warning/critical/minor/major all work)

/opt/omni/bin/omnirpt -exec -environment -email myemailaddress@mydomain.com -report end_of_session -level warning

Error creating the report "End Of Session Report":

Required report parameter is missing

Thanks in advance.

BR,

Alex

  • Hello Alex

    I have checked that and doesn't work in my lab so HF that you are using is older than binaries provided from P1 therefor you don't need to use it. Looking that I noted that notifications are not sent since I installed P1 patches therefore issue must be there.

    About your troubleshoot the first that you must to check if BSM looking for omnitrig entry send it notification to omnirpt it works fine..

    [ 99] [2021-12-28 18:19:06.526][CmnRunScript][entry] @1113 flags:0x0, timeout:0, argc:12, dir:C:\Program Files\OmniBack\bin\, exe:omnitrig
    [ 30] omnitrig
    [ 30] -event
    [ 30] EndOfSession
    [ 30] Test
    [ 30] Completed
    [ 30] 0
    [ 30] 0
    [ 30] 0
    [ 30] -debug
    [ 30] 1-500,ID:6220,SESSION:2021-12-28-10
    [ 30] report.txt

    Omnirpt debugs show

    [ 10] 2021-12-28 18:19:07.540 ("/cli/omnirpt.c $Rev$ $Date:: $:":308)
    [ 10] Parser-> Entering

    [ 10] Parser-> param: exec

    [ 10] Parser-> param: environment

    [ 10] Parser-> param: smtp

    [ 10] Parser-> param: report


    [ 10] 2021-12-28 18:19:07.540 ("/cli/omnirpt.c $Rev$ $Date:: $:":531)
    [ 10] Parser-> ReportID: 89

    [ 10] Parser-> param: level

    [ 10] Invalid level parameter!--------------------------->

    Modifying level into notification from normal to major it works fine.

    [ 10] 2021-12-28 18:35:25.655 ("/cli/omnirpt.c $Rev$ $Date:: $:":308)
    [ 10] Parser-> Entering

    [ 10] Parser-> param: exec

    [ 10] Parser-> param: environment

    [ 10] Parser-> param: smtp

    [ 10] Parser-> param: report


    [ 10] 2021-12-28 18:35:25.655 ("/cli/omnirpt.c $Rev$ $Date:: $:":531)
    [ 10] Parser-> ReportID: 89

    [ 10] Parser-> param: level

    [ 10] Parser-> param: debug

    From my point of view we have two different topics here:

    1º You are using wrong omnirpt version for DP 11 P1, HF is not needed

    2º omnirpt for end of session notifications using level "normal" doesn't works fine. 

    Please open support case and  provide to hem analyze done.

    Best Regards

  • Using major level email is received

    End Of Session Report

    Cell Manager: sov02dp34.jmbdp.local
    Creation Date: 12/28/2021 6:48:20 PM

    Session Information

    Specification: Test
    Session ID: 2021/12/28-13
    Type: Backup
    Session Owner: JMBDP\JOSE@sov02dp34.jmbdp.local
    Status: Failed
    Mode: full
    Start Time: 12/28/2021 6:48:13 PM
    Queuing: 0:00
    Duration: 0:00
    GB Written: 0.00
    # Media: 0
    # Errors: 2
    # Warnings: 2
    Success: 0%

  • Hi,

    thanks a lot for your tests and your reply.

    ./omnirpt.build278 -version
    Micro Focus Data Protector A.11.00: OMNIRPT, internal build 278, built on Do 16 Sep 2021 04:49:59 CEST

    ./omnirpt.OCTCR19Q1440200_HF1 -version
    Micro Focus Data Protector A.11.00: OMNIRPT, internal build OCTCR19Q1440200_HF1, built on Mi 20 Okt 2021 07:08:55 CEST

    Are you sure about the omnirpt HF ? Build states, OCTCR19Q1440200_HF1 is newer.

    I logged a case for this issue.
    Looking forward to finding the root cause for this.

    BR,
    Alex

  • thanks!
    that's what I also suspected...since all other levels are accepted with that omnirpt command.
    I would think warning, minor and critical will also work.

  • ok, something is strange...

    there is no omnirpt build 279 on the CM.
    That would be newer...correct.

    ./omnirpt -version
    Micro Focus Data Protector A.11.00: OMNIRPT, internal build 279, built on Sa 20 Nov 2021 15:13:19 CET

    I need to find our what happend here... thanks, very helpful hint...Thumbsup

  • Verified Answer

    There is a fix available for this now - OCTIM19Q1491467_HF4'.
    It fixes DP11(P1) omnitrig - with this HF in place, DP does send emails 'EndOfSession Notification'.

    ./omnitrig -version
    Micro Focus Data Protector A.11.00: OMNITRIG, internal build OCTIM19Q1491467_HF4, built on Fr 11 Feb 2022 17:07:40 CET

    BR,
    Alex