1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

Getting the Status of an SLP on NB 7.1

Discussion in 'Symantec NetBackup' started by LBH21215, Oct 18, 2012.

  1. LBH21215

    LBH21215 New Member

    Joined:
    Mar 9, 2007
    Messages:
    11
    Likes Received:
    0
    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.  
  3. etchingsj

    etchingsj Member

    Joined:
    Feb 5, 2008
    Messages:
    243
    Likes Received:
    7
    Occupation:
    Sustaining Engineer
    Location:
    Lost Wages NV
    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!
     

Share This Page