fix(scriptc): Capture the BMC USB service log to a file, not the console
journalctl now runs with -o short-iso into log/bmc_usb_net.log and is copied into the job directory with the other monitor logs. rm -f first so the file covers this run only, and the ISO timestamps line up with mgmt_ping.log and nfc_poll.log for cross-referencing. The cost, recorded rather than glossed over: it is no longer echoed to the console, so the USB copy is the only copy. That cp return value is not checked - the same shape as the nfc_polling.log filename bug, which failed silently and was only noticed back at the desk with a job archive missing a file. Folded into V1.1.6 rather than bumping: the tag has not moved on and this is the same delivery. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014RetWKFZFG1ZHcitQAyhwM
This commit is contained in:
@@ -261,9 +261,16 @@
|
||||
; into 32.00 V - a value no all-ones filter catches
|
||||
; docs/ADPM12200..._Datasheet_2025_12_19.pdf The brick datasheet the pages and coefficients above
|
||||
; came from
|
||||
; ScriptC Re-enable the BMC USB journalctl dump - it had
|
||||
; been commented out, so the service log never
|
||||
; reached the master log
|
||||
; ScriptC Re-enable the BMC USB service log, and send it to
|
||||
; a file instead of the console
|
||||
; journalctl ... -o short-iso > log/bmc_usb_net.log
|
||||
; then cp it into the job dir for the USB archive
|
||||
; rm -f first, so the file is this run only
|
||||
; -o short-iso gives it timestamps that line up with
|
||||
; the other monitor logs
|
||||
; !! it no longer appears in the master console log,
|
||||
; so the USB copy is now the ONLY copy - if that
|
||||
; cp fails the service log is gone
|
||||
; LTC2980_Margin_Script/profiles/ Add comboA / comboB per board (CB + SWB CONN13..16)
|
||||
; Checkerboard pair: comboB is comboA with every
|
||||
; direction flipped, so running both covers each rail
|
||||
|
||||
@@ -79,7 +79,9 @@ sendln "cat ./Blanton_Script/log/bmc_poll.log"
|
||||
|
||||
; ========== BMC USB Test result ==========
|
||||
wait prompt_sonic_root
|
||||
sendln "journalctl -u qfx5252-bmc-usb-net-test.service --no-pager"
|
||||
sendln "rm -f ~/Blanton_Script/log/bmc_usb_net.log"
|
||||
wait prompt_sonic_root
|
||||
sendln "journalctl -u qfx5252-bmc-usb-net-test.service --no-pager -o short-iso > ~/Blanton_Script/log/bmc_usb_net.log"
|
||||
|
||||
|
||||
; ========== CHECK Stress results ==========
|
||||
@@ -209,12 +211,16 @@ sendln cmd
|
||||
|
||||
; ========== Copy Stress Log to USB ==========
|
||||
wait prompt_sonic_root
|
||||
sendln "cp ./Blanton_Script/log/bmc_usb_net.log /host/hw-eval/jobs/"
|
||||
wait prompt_sonic_root
|
||||
sendln "cp ./Blanton_Script/log/bmc_poll.log /host/hw-eval/jobs/"
|
||||
wait prompt_sonic_root
|
||||
sendln "cp ./Blanton_Script/log/mgmt_ping.log /host/hw-eval/jobs/"
|
||||
wait prompt_sonic_root
|
||||
sendln "cp ./Blanton_Script/log/nfc_poll.log /host/hw-eval/jobs/"
|
||||
|
||||
|
||||
|
||||
wait prompt_sonic_root
|
||||
getdate ts_date "%Y%m%d"
|
||||
gettime ts_time "%H%M"
|
||||
|
||||
Reference in New Issue
Block a user