#!/pkg/bin/ksh
# ---------------------------------------------------------------------
# show_tech_ether_only - Private show tech-support script for ethernet
#
# July 2006, Ross Denham
#
# Copyright (c) 2006 by cisco Systems, Inc.
# All rights reserved.
#--------------------------------------------------------------------


# This script fragment contains the code for the following functions
# - print_main_heading
# - print_command_heading
# - run_single_command
# - run_commands
# - run_single_command_on_all_nodes
# - run_commands_on_all_nodes
# - default_parser_function
. /pkg/bin/show_tech_main_fragment

# List each set of show commands to be run. Each set must finish with an empty
# string. Note that it is important to use single quotes rather than double 
# quotes for the strings containing your commands. 

# Command 1 - Global show commands 
#             (supporting location all or running globally)              
command1[0]='show hsrp'
command1[1]='show hsrp detail' 
command1[2]='show vrrp'
command1[3]='show vrrp detail'
command1[4]='show vrrp statistics all'
command1[5]='show rib tables'
command1[6]='show processes hsrp location all'
command1[7]='show processes vrrp location all'
command1[8]=''

# A function called display() must be provided that calls the functions to
# run the required show commands. The display() function will be called in
# the /pkg/bin/show_tech_comp_file_frag

display() {

     # Print the output heading 
     print_main_heading "show tech-support ethernet only"
     
     run_commands 1
     
     # Print the closing heading. 
     print_main_heading "show tech-support ethernet only complete"
}

display


