#! /pkg/bin/ksh
# ----------------------------------------------------------------------
# show_tech_grid_util -- DPA show tech-support script utilities
#
# Copyright (c) 2017 by cisco Systems, Inc.
# All rights reserved.
#-----------------------------------------------------------------------

display_grid_lc() {
    cmd_index=1
    grid_lc_exec[$cmd_index]='show grid trace all location $location'
    grid_lc__ksh[$cmd_index]='rid_show_ltrace -EV'

    ((cmd_index++))
    grid_lc_exec[$cmd_index]=''
    grid_lc__ksh[$cmd_index]=''

    exec_commands grid_lc
}

display_grid_rp() {
    cmd_index=1
    grid_rp_exec[$cmd_index]='show grid trace all location $location'
    grid_rp__ksh[$cmd_index]='rid_show_ltrace -EV'

    ((cmd_index++))
    grid_rp_exec[$cmd_index]='show grid stats location $location'
    grid_rp__ksh[$cmd_index]='grid_show -c'

    ((cmd_index++))
    grid_rp_exec[$cmd_index]='show grid pool all location $location'
    grid_rp__ksh[$cmd_index]='grid_show -P -1'

    ((cmd_index++))
    grid_rp_exec[$cmd_index]=''
    grid_rp__ksh[$cmd_index]=''

    exec_commands grid_rp
}

