Script file to report last job completed - Veritas Backup Exec

This is a discussion on Script file to report last job completed - Veritas Backup Exec ; I am trying to get a job status dump of a completed job. I can do this using -o16 -j , however I want to be able to somehow get the last job id put in so I don't have ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Script file to report last job completed

  1. Script file to report last job completed


    I am trying to get a job status dump of a completed job. I can do this using
    -o16 -j, however I want to be able to somehow get the last job id
    put in so I don't have to enter it in manually. Is there any other commands
    that can be used to get the last completed job id. I know -o12 will list
    me the completed jobs... has anyone done this to automate reporting on jobs.
    Thanks

  2. Re: Script file to report last job completed

    Not sure how you could do this properly, but a possible work around would be
    to use a util called tail, and a few batch files.

    Tail is a util which comes with linux, but has also been ported to windows,
    and I've used it here on a few scripts with good results. Not sure where you
    can get it from, or where we found it, but if you have problems finding it,
    let me know and I'll e-mail you a copy (it's 35k).

    Basically, you can output a command to a file, in this case becmd -o12, and
    then use tail -n+1 to pull the last line from the text
    file. Output that to a second text file, and you can then pull that info
    into your -o16 command.

    This is all going from memory, so the syntax might not be spot on, but tail
    has quit good help info with it.

    Depending on the output you get from -o12 (haven't used it so don't know),
    you might need to repeat this procedure a couple of times till you end up
    with just the info you need.

    Keith

    "Andrew Ouw" wrote in message
    news:3d992e29$1@hronntp01....
    >
    > I am trying to get a job status dump of a completed job. I can do this

    using
    > -o16 -j, however I want to be able to somehow get the last job id
    > put in so I don't have to enter it in manually. Is there any other

    commands
    > that can be used to get the last completed job id. I know -o12 will list
    > me the completed jobs... has anyone done this to automate reporting on

    jobs.
    > Thanks




+ Reply to Thread