Jean-Baptiste Denis
2014-12-10 09:27:17 UTC
Hi,
Imagine I've got a file like that I want to remotely execute via ipmitool -H ...
exec :
lan set 1 ipaddr 192.168.1.10
lan set 1 vlan id 42
change the IP address like in this example.
Is there some kind of mode that allow to push a set of parameters to set in one
shot ?
It seems to be working with bmc-config from the freeipmi project and multiple -e
options :
$ bmc-config --commit -h 10.1.1.1 -u ADMIN -p PASSWORD -e
Lan_Conf:IP_Address=192.168.1.10 -e Lan_Conf:Vlan_id=42
If I go on the server after this bmc-config command and I locally execute
bmc-config --checkout, or ipmitool lan print, both the IP Address and the Vlan
id changed.
Jean-Baptiste
Imagine I've got a file like that I want to remotely execute via ipmitool -H ...
exec :
lan set 1 ipaddr 192.168.1.10
lan set 1 vlan id 42
From what I can understand, each line is treated as a separated command, so,
when running ipmitool remotly, I can lose connection between two lines if Ichange the IP address like in this example.
Is there some kind of mode that allow to push a set of parameters to set in one
shot ?
It seems to be working with bmc-config from the freeipmi project and multiple -e
options :
$ bmc-config --commit -h 10.1.1.1 -u ADMIN -p PASSWORD -e
Lan_Conf:IP_Address=192.168.1.10 -e Lan_Conf:Vlan_id=42
If I go on the server after this bmc-config command and I locally execute
bmc-config --checkout, or ipmitool lan print, both the IP Address and the Vlan
id changed.
Jean-Baptiste