#!/pkg/bin/ksh
# ---------------------------------------------------------------------
# show_tech_xos - Runs show commands for show tech-support xos
#
# November 2010, Sash Nagarkar
#
# Copyright (c) 2010-2013 by cisco Systems, Inc.
# All rights reserved.
#--------------------------------------------------------------------

. /pkg/bin/show_tech_main_fragment

system_exec[1]='show xos errors'
system__ksh[1]='show_xos_command gen_error_traces'

system_exec[2]='show xos info xdm'
system__ksh[2]='show_xos_command xdm_info'

system_exec[3]='show xos traces address'
system__ksh[3]='show_xos_command addr_event_traces'

system_exec[4]='show xos traces interface'
system__ksh[4]='show_xos_command if_event_traces'

system_exec[5]='show xos traces ipc'
system__ksh[5]='show_xos_command ipc_event_traces'

system_exec[6]='show xos traces mgd'
system__ksh[6]='show_xos_command mgd_event_traces'

system_exec[7]='show xos traces packet'
system__ksh[7]='show_xos_command packet_event_traces'

system_exec[8]='show xos traces time'
system__ksh[8]='show_xos_command time_event_traces'

system_exec[9]='show xos traces utils'
system__ksh[9]='show_xos_command gen_event_traces'

system_exec[10]='show xos traces xdm'
system__ksh[10]='show_xos_command xdm_event_traces'

system_exec[11]='show xos traces routing'
system__ksh[11]='show_xos_command routing_event_traces'

system_exec[12]=''
system__ksh[12]=''

procname="unspecified"
ins_id=0
__cardtype="unspecified"

while [ "$#" -gt "0" ]; do
    case "$1" in
        -P) procname="$2"; shift 2;;
        -I) ins_id=$2; shift 2;;
        -t) __cardtype="$2";            shift 2;;
        *)  default_parser_function $@; shift $#;;
    esac
done

display() {
     # Print the output heading
     print_main_heading "show tech-support xos"

     exec_commands system

     # Print the closing heading.
     print_main_heading "show tech-support xos complete"
}

. /pkg/bin/show_tech_file_fragment

