On Sat, 2023-12-16 at 08:32 +0100, Jörg Frings-Fürst wrote:
> Hi Andrew,
> 
> Am Samstag, dem 16.12.2023 um 08:12 +0100 schrieb Jörg Frings-Fürst:
> > Hello Andrew,
> > 
> > 
> > the ipmitool code in this area has not changed for years. If I
> > remember
> > correctly, there was a change in the shell where a parameter was
> > activated by
> > default.
> > 
> > 
> > Can you escape the outer "? Like this
> > 
> > ipmitool sel time set \"$(date "+%m/%d/%Y %T")\"
> 
> the % must be escaped to 
> 
> ipmitool sel time set \"$(date "+\%m/\%d/\%Y \%T")\"

hello -

this still fails:
# ipmitool sel time set \"$(date "+\%m/\%d/\%Y \%T")\"
Specified time could not be parsed

i don't think that shell escapes are the issue.  the same command on
the same system will succeed or fail depending on the installed version
of the ipmitool package.  here is a transcript of a test without the
added complexity of the `date` call.  it still shows the version-
specific behavior:
# ipmitool -V
ipmitool version 1.8.18
# ipmitool sel time set "12/14/2023 11:40:47" 
12/14/2023 11:40:47
# apt -y install ipmitool=1.8.19-4
[...]
# ipmitool -V                                
ipmitool version 1.8.19
# ipmitool sel time set "12/14/2023 11:40:47"
IANA PEN registry open failed: No such file or directory
Specified time could not be parsed
# dpkg -i /tmp/ipmitool_1.8.18-10.1_amd64.deb
[...]
# ipmitool -V                                 
ipmitool version 1.8.18
# ipmitool sel time set "12/14/2023 11:40:47" 
12/14/2023 11:40:47


as far as i can tell 1.8.18 works as expected and 1.8.19 does not.  for
what it's worth the "IANA PEN registry" message does not appear when
testing with 1.8.19-6 but the "Specified time could not be parsed"
error remains.

i also tried escaping quotes without effect:
# ipmitool sel time set \"12/14/2023 11:40:47\"
# ipmitool sel time set \""12/14/2023 11:40:47\""

thank you.

        andy

-- 
andrew bezella <abeze...@archive.org>
internet archive

Reply via email to