2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-14 10:20:31 +00:00

16 Commits

Author SHA1 Message Date
787ea2191e bmcsetup: enhance BMC port configuration for Dell systems
Add optional values to ipmi.bmcport to support more fine-grained
configuration for Dell servers, and mirror the `ipmitool delloem`
capabilities:

   lan set <Mode>
    sets the NIC Selection Mode :
        dedicated, shared with lom<idx>

   lan set <Shared Failover Mode>
    sets the shared Failover Mode :
        shared with failover lom<idx>
        shared with failover all loms,
        shared with failover none.

This patch introduces the possibility to provide 3 (space-separated)
values for ipmi.bmcport:
  1st value:  0 = shared / 1 = dedicated
  2nd value   shared LOM (1-4)   (0 or no value means first available LOM)
  3rd value:  failover LOM (1-4) (0 means no failover, no value means all LOMs)

To ensure maximum compatibility with the default 0/1 shared/dedicated
scheme, the 2nd and 3rd values are optional, and will retain the
previous behavior when not specified.

Examples:

ipmi.bmcport value      BMC interface configuration
0                       Shared with first available interface, failover with
                        all LOMs (catch-all mode)
0 1                     Shared with LOM1, failover all LOMs
0 1 2                   Shared with LOM1, failover LOM2
0 2 0                   Shared with LOM2, no failover
1                       Dedicated
2024-08-12 13:20:16 -07:00
7ef19295f1 bmcsetup: add support for setting bmcport on Supermicro servers (#7318)
* bmcsetup: add support for setting bmcport on Supermicro servers

* bmcsetup: set real shared mode for Supermicro BMC interface, and add web reference
2024-07-12 16:15:52 +02:00
255ff27d8f bmcsetup: revert previous meaning of bmcport for Dell servers (#7317)
* bmcsetup: revert previous meaning of bmcport for Dell servers, to
conform with other server types: 0=shared, 1=dedicated

* bmcsetup: remove dependency on `ipmitool delloem` and use raw cmds instead

ipmitool delloem may not work on all Dell server generations,
functionnality depends on ipmitool versions (see
https://github.com/ipmitool/ipmitool/issues/18).

So removing thatdependency and using raw IPMI commands seems more robust.
2024-07-12 16:05:54 +02:00
8bad3917fb Added missing shebang to postscripts 2023-02-28 15:43:03 -05:00
108943ee74 Load ipmi_powernv for ppc64 arch 2022-12-09 17:59:34 +01:00
4c3404619f Add ipmi_si module to be able to run bmcsetup manually 2022-09-30 15:04:29 +02:00
996b05ce6a Update bmcsetup
Don't check $LOCKEDUSERS at all, instead fall back to userslot 2 as a last resort if the user doesn't already exist, and the automatic slot detection doesn't find an unlocked slot.  This is essentially what was happening in the older version of the script before #6380 as $LOCKEDUSERS was only ever referenced here.

Also move setting the username before setting privileges and access levels, as those steps fail if done before username is set for the slot.
2020-04-08 11:07:25 -04:00
e5c6039855 Update bmcsetup 2020-04-07 12:45:51 -04:00
d60d63ff09 Do not use Mihawk codename 2020-02-19 14:50:05 -05:00
88ee3f1d67 Mihawk support for bmcdiscover and bmcsetup 2020-02-19 14:23:43 -05:00
0de926b4ab Merge pull request #6380 from adorsey-NOAA/patch-1
Automatically find first unlocked user slot
2019-12-05 12:48:36 -05:00
2d706b9c75 bmcsetup Other LAN and 802.3 LAN for Channel Medium Type 2019-10-22 11:51:23 -04:00
b23d6d6615 Automatically find first unlocked user slot
Instead of relying on hard coded offsets, query each slot's status with ```ipmitool channel getaccess``` and use the first slot that is unlocked.

This fixes an issue on certain Cray x86 nodes that have arbitrary locked IPMI user slots.
2019-07-18 17:56:05 -04:00
d53e54081c Remove trailing spaces in file xCAT-genesis-scripts/usr/bin/bmcsetup 2017-12-31 23:59:59 +00:00
e32d37e625 bmcsetup: add missing / in /dev/null 2018-01-24 11:20:23 -08:00
63a3efe8bb move /*bin to /usr/ to fix path conflict of genesis base and scripts
RH7/Centos7 and recent versions of fedora relocate `/*bin/*` into `/usr/*bin/`. This causes
conflicts for upgrades against xCAT-genesis-scripts-* packages which expect the `/bin` a to be
a directory while `xCAT-genesis-base-*` packages provide a link. Relocating all files into `/usr`
fixes that conflict and allows a clean upgrade from all old versions.
2018-01-12 06:06:25 +00:00