Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Getting the Status of an SLP on NB 7.1

    I am trying to see if there is a way to get the status of an SLP (active/inactive) when there are no images to process?

    nbstlutil report only seems to give you information if images are in a not started state or in process state.



    nbstlutil report -lifecycle Duplicate1

    No images to process

    Trying to script something and this would be very helpful.

  2. #2
    Member etchingsj's Avatar
    Join Date
    Feb 2008
    Location
    Lost Wages NV
    Posts
    243
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    There is this for simply checking incomplete images.

    nbstlutil list -l -image_incomplete

    Or if you wanted a scripted version with more complete results try this:

    Code:
    !/usr/bin/ksh
    #
    #
    #    Script to check for non-duplicated images in SLP
    #
    
    
    # Begin
    
    
    BPimage='/usr/openv/netbackup/bin/admincmd/bpimagelist'
    
    
    # Check for -h or -? to print command syntax and exit
    if [[ $1 = "-h" ]] || [[ $1 = "-?" ]]
    then
      print "\nslp_check used to check status of non-duplicated backup images."
      print " Usage: "
      print " slp_check <hoursago> - use this to insert any hours ago prior to 24 hours"
      print " By default this script checks back 24 hours"
      exit
    fi
    
    
    # Get Hours ago info
    # Check for hoursago override; default is 24 hours
    if [[ $1 = @([0-9]*) ]]
    then Hours=$1
    else Hours=24
    fi
    
    
    # Script begin
    
    
    $BPimage -stl_incomplete -U -hoursago $Hours
    
    
    
    
    exit
    Save it and make it executable and run like as is or add the days you want to check for:

    slp_check (days)
    # slp_check 999

    Thanks and Good Luck!

Similar Threads

  1. Tapes has two different status
    By fbettenw in forum Tape / Media Library
    Replies: 2
    Last Post: 03-29-2011, 03:55 AM
  2. Tape status
    By totalstu in forum TSM Operation
    Replies: 11
    Last Post: 01-31-2011, 08:25 AM
  3. backup status
    By tsmlover in forum TSM Reporting & Monitoring
    Replies: 2
    Last Post: 05-15-2009, 02:17 PM
  4. Tape Status
    By OKTSMGURU21 in forum Tape / Media Library
    Replies: 2
    Last Post: 03-13-2008, 07:02 PM
  5. Status of tapes
    By kiwi_tech in forum Tape / Media Library
    Replies: 0
    Last Post: 01-03-2007, 05:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •