Skip to content

Commit

Permalink
show_platfom_info not run for simx (sonic-net#2042)
Browse files Browse the repository at this point in the history
What I did
'show techsupport' on simx devices is generating errors when running "show_platform_info".
Added a check to not run show_platform_info for simx devices.

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
  • Loading branch information
vivekrnv authored Feb 20, 2022
1 parent 1723206 commit d14b323
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -705,11 +705,14 @@ save_saidump() {
###############################################################################
save_platform_info() {
trap 'handle_error $? $LINENO' ERR
save_cmd "show platform syseeprom" "syseeprom"
save_cmd "show platform psustatus" "psustatus"
save_cmd "show platform ssdhealth" "ssdhealth"
save_cmd "show platform temperature" "temperature"
save_cmd "show platform fan" "fan"
PLATFORM=${PLATFORM:-`sonic-cfggen -H -v DEVICE_METADATA.localhost.platform`}
if [[ ! $PLATFORM =~ .*(mlnx|nvidia).*simx.* ]]; then
save_cmd "show platform syseeprom" "syseeprom"
save_cmd "show platform psustatus" "psustatus"
save_cmd "show platform ssdhealth" "ssdhealth"
save_cmd "show platform temperature" "temperature"
save_cmd "show platform fan" "fan"
fi
}

###############################################################################
Expand Down

0 comments on commit d14b323

Please sign in to comment.