#!/pkg/bin/ksh
#
# Collect information needed to debug FIB EOI issues.
#
# 03/2011, Bharat Bhojwani
# 
#  Copyright (c) 2011 by cisco Systems, Inc.
#  All rights reserved.

echo "------------------fib_eoi_script output begin------------------"

# show proc fib_mgr
echo ""
echo "==== show proc fib_mgr (start) ===="
echo ""
sysmgr_show -o -p fib_mgr
echo ""
echo "==== show proc fib_mgr (start) ===="
echo ""

# show proc cpu
echo ""
echo "==== show proc cpu (start) ===="
echo ""
show_proc_cpu -c 
echo ""
echo "==== show proc cpu (end) ===="
echo ""

# PI FIB traces
echo ""
echo "==== show cef ipv4 trace (start) ===="
echo ""
show_fib_trace -P 0x0
echo ""
echo "==== show cef ipv4 trace (end) ===="
echo ""
echo "==== show cef ipv6 trace (start) ===="
echo ""
show_fib_trace -P 0x1
echo ""
echo "==== show cef ipv6 trace (end) ===="
echo ""
echo "==== show cef mpls trace (start) ===="
echo ""
show_fib_trace -P 0x2
echo ""
echo "==== show cef mpls trace (end) ===="

# PD FIB info

echo ""
echo "==== Platform info (start) ===="
echo ""

fib_platform_eoi_script

echo ""
echo "==== Platform info (end) ===="
echo ""

echo "------------------fib_eoi_script output complete------------------"

exit 0
