#!/bin/ksh
# ---------------------------------------------------------------------
# debug_lpts_bind - Runs to check whether lpts PI binding given 
#                   to lpts PD or not-
#
# Sep 2017, Vivek Banger
# Copyright (c) 2003-2015, 2017 by cisco Systems, Inc.
# All rights reserved.
#----------------------------------------------------------------------
# This script will dump the show command show_lpts_pa and try to 
# confirm if lpts binding are available in PI or not
#
# PROGRAMMING NOTES :
#                    None  
#----------------------------------------------------------------------

var=1
while [ $var -eq 1 ]; do
      show_lpts_pa -a -B | grep 179 | grep RSP1
      if [ $? == 0 ]; then
         echo "matched"
         var=0
      fi
      show_lpts_pa -a -B | grep 179
      sleep 5
      echo "NO match grep 179 | grep RSP1"
done
