SLES is using boot.lldpad and boot.fcoe for their service scripts. This script has fcoedump.sh check for the 'boot.*' service scripts as well as for the 'lldpad' and 'fcoe' non-boot-prefixed service scripts.
Note that this patch intentionally allows both to be printed if both scripts exist. This would indicate to someone debugging that there are duplicate scripts and there is a problem. Signed-off-by: Robert Love <[email protected]> Tested-by: Ross Brattain <[email protected]> --- debug/fcoedump.sh | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/debug/fcoedump.sh b/debug/fcoedump.sh index 0b408ac..1213312 100755 --- a/debug/fcoedump.sh +++ b/debug/fcoedump.sh @@ -103,8 +103,17 @@ dcb_info() echo -e "#tc config" tc qdisc tc filter show dev $PHYSDEV | grep -v filter - echo -e "#service lldpad status:" + + ## Intentionally allow both services status to show + ## even though they should be mutually exclusive. If + ## you see both in a dump you know there's a problem. + [ -f /etc/init.d/boot.lldpad ] && + echo -e "#service boot.lldpad status:" && + service boot.lldpad status + [ -f /etc/init.d/lldpad ] && + echo -e "#service lldpad status:" && service lldpad status + echo -e "\n########## Showing dcb for $PHYSDEV" dcbtool -v dcbtool gc $PHYSDEV dcb @@ -137,8 +146,17 @@ dcb_info() fcoe_info() { echo -e "\n###FCOE Info" - echo -e "#service fcoe status" + + ## Intentionally allow both services status to show + ## even though they should be mutually exclusive. If + ## you see both in a dump you know there's a problem. + [ -f /etc/init.d/boot.fcoe ] && + echo -e "#service boot.fcoe status" && + service boot.fcoe status + [ -f /etc/init.d/fcoe ] && + echo -e "#service fcoe status" && service fcoe status + echo -e "#fcoeadm output " fcoeadm -v echo -e "#fcoeadm -i " _______________________________________________ devel mailing list [email protected] https://lists.open-fcoe.org/mailman/listinfo/devel
