From 4d8d5539b4844d6f2e5a082e2c1159b5cd2bc8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Thu, 23 Jul 2026 01:39:35 -0300 Subject: [PATCH] fix(pasu): filter more OneCLI status banner lines from command output pasu strips OneCLI's banner and status lines so only the requested settings are shown, but OneCLI has grown several status lines over the years that were not filtered and leaked into the output. Add the missing patterns. Recovered from the unmerged lenovobuild branch (229533cb, a6932bb4), which added "Connected to BMC at IP address" (master only matched "by"), "Succeed in running the command:" and "start to convert cmd.". Extended after testing a current OneCLI 5.3.0 on a Lenovo ThinkSystem SR635, which also emits "Start to connect ...", "Connected to the node(N) by KCS" and a trailing "Succeed." -- now filtered too. Validated by running a real OneCLI 5.3.0 "config show" through the filter: every banner/footer line is removed and all 756 setting lines pass unchanged. Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com> --- xCAT-client/bin/pasu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/pasu b/xCAT-client/bin/pasu index 08b77e746..87348762b 100755 --- a/xCAT-client/bin/pasu +++ b/xCAT-client/bin/pasu @@ -219,7 +219,13 @@ sub processoutput { #This way, one arbiter handles output, no interrupting $line !~ /Connected to BMC by IP address/i && $line !~ /Succeeded running the command /i && $line !~ /Based on module version /i && - $line !~ /Succeed running command /i)) { + $line !~ /Succeed running command /i && + $line !~ /Connected to BMC at IP address/i && + $line !~ /Succeed in running the command:/i && + $line !~ /start to convert cmd./i && + $line !~ /Start to connect /i && + $line !~ /Connected to the node/i && + $line !~ /^Succeed\.\s*$/i)) { print $nodehdl{$readyh} . ": " . $line . "\n"; } }