From bab32b9ee911e5ca638439fc8d6fa4d9066500bc Mon Sep 17 00:00:00 2001 From: gblow Date: Wed, 12 Jun 2024 15:23:45 +0100 Subject: [PATCH 1/6] removed references to ceph and made some variable names generic --- apply-hostnames.py | 12 ++++++------ apply-licenses.py | 8 ++++---- get-MACs.py | 12 ++++++------ get-serials.py | 12 ++++++------ hosts-in.csv | 0 set-ipmi-enabled.py | 10 +++++----- 6 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 hosts-in.csv diff --git a/apply-hostnames.py b/apply-hostnames.py index 8b76996..c6ea3a9 100644 --- a/apply-hostnames.py +++ b/apply-hostnames.py @@ -5,7 +5,7 @@ import logging logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') -with open('ceph-license-keys.csv',encoding='utf8') as csvfile: +with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) PASSWORD=getpass.getpass() @@ -13,16 +13,16 @@ with open('ceph-license-keys.csv',encoding='utf8') as csvfile: for row in csvreader: print(i) i += 1 - HOST_NAME = ("ceph01-block02-"+row[0]+"-bmc") - SYSTEM_NAME = ("ceph01-block02-"+row[0]) + BMC_NAME = (row[0]+"-bmc") + HOST_NAME = (row[0]) + print(BMC_NAME) print(HOST_NAME) - print(SYSTEM_NAME) USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - client.connect(hostname=HOST_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) - command = ("set system1 oemHPE_server_name="+SYSTEM_NAME) + client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) + command = ("set system1 oemHPE_server_name="+HOST_NAME) #command = ("show /system1/") stdin, stdout, stderr = client.exec_command(command) print(stdout.read()) diff --git a/apply-licenses.py b/apply-licenses.py index 7f1ad83..85edde6 100644 --- a/apply-licenses.py +++ b/apply-licenses.py @@ -5,7 +5,7 @@ import logging logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') -with open('ceph-license-keys.csv',encoding='utf8') as csvfile: +with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) PASSWORD=getpass.getpass() @@ -13,15 +13,15 @@ with open('ceph-license-keys.csv',encoding='utf8') as csvfile: for row in csvreader: print(i) i += 1 - HOST_NAME = ("ceph01-block01-"+row[0]+"-bmc") + BMC_NAME = (row[0]+"-bmc") LICENSE_KEY = (row[7]) - print(HOST_NAME) + print(BMC_NAME) #print(LICENSE_KEY) USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - client.connect(hostname=HOST_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) + client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) #command = ("OemHPE_licenseinstall /map1/oemHPE_license1 "+LICENSE_KEY) command = ("show /map1/oemHPE_license1") stdin, stdout, stderr = client.exec_command(command) diff --git a/get-MACs.py b/get-MACs.py index 3780915..c675492 100644 --- a/get-MACs.py +++ b/get-MACs.py @@ -6,7 +6,7 @@ import re logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') -with open('ceph-license-keys.csv',encoding='utf8') as csvfile,open('MACs.csv','w') as csvfile_out: +with open('hosts-in.csv',encoding='utf8') as csvfile,open('MACs.csv','w') as csvfile_out: csvreader = csv.reader(csvfile, delimiter=',') csvwriter = csv.writer(csvfile_out) next(csvreader) @@ -17,14 +17,14 @@ with open('ceph-license-keys.csv',encoding='utf8') as csvfile,open('MACs.csv','w P3_PATTERN=re.compile('Port3NIC_MACAddress=\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}') for row in csvreader: print(i) - HOST_NAME = ("ceph01-block02-"+row[0]+"-bmc") - SYSTEM_HOST_NAME = ("ceph01-block02-"+row[0]) - print(HOST_NAME) + BMC_NAME = (row[0]+"-bmc") + SYSTEM_NAME = ("ceph01-block02-"+row[0]) + print(BMC_NAME) USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - client.connect(hostname=HOST_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) + client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) #command = ("OemHPE_licenseinstall /map1/oemHPE_license1 "+LICENSE_KEY) command = ("show /system1/network1/Integrated_NICs") stdin, stdout, stderr = client.exec_command(command) @@ -32,6 +32,6 @@ with open('ceph-license-keys.csv',encoding='utf8') as csvfile,open('MACs.csv','w P1_MAC=(str(P1_PATTERN.findall(str(NET_INFO)))[-19:-2]) P2_MAC=(str(P2_PATTERN.findall(str(NET_INFO)))[-19:-2]) P3_MAC=(str(P3_PATTERN.findall(str(NET_INFO)))[-19:-2]) - csvwriter.writerow([SYSTEM_HOST_NAME,P1_MAC,P2_MAC,P3_MAC]) + csvwriter.writerow([SYSTEM_NAME,P1_MAC,P2_MAC,P3_MAC]) i += 1 diff --git a/get-serials.py b/get-serials.py index b7fb10a..492ea98 100644 --- a/get-serials.py +++ b/get-serials.py @@ -6,7 +6,7 @@ import re logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') -with open('ceph-license-keys.csv',encoding='utf8') as csvfile,open('serials.csv','w') as csvfile_out: +with open('hosts-in.csv',encoding='utf8') as csvfile,open('serials.csv','w') as csvfile_out: csvreader = csv.reader(csvfile, delimiter=',') csvwriter = csv.writer(csvfile_out) next(csvreader) @@ -15,21 +15,21 @@ with open('ceph-license-keys.csv',encoding='utf8') as csvfile,open('serials.csv' SN_PATTERN=re.compile('number=\w{10}') for row in csvreader: print(i) - HOST_NAME = ("ceph01-block02-"+row[0]+"-bmc") + BMC_NAME = (row[0]+"-bmc") LICENSE_KEY = (row[7]) - SYSTEM_HOST_NAME = ("ceph01-block02-"+row[0]) - print(HOST_NAME) + SYSTEM_NAME = (row[0]) + print(BMC_NAME) #print(LICENSE_KEY) USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - client.connect(hostname=HOST_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) + client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) #command = ("OemHPE_licenseinstall /map1/oemHPE_license1 "+LICENSE_KEY) command = ("show /system1 number") stdin, stdout, stderr = client.exec_command(command) SERIAL_NUMBER_OUT=stdout.read() SERIAL_NUMBER=(str(SN_PATTERN.findall(str(SERIAL_NUMBER_OUT)))[-12:-2]) - csvwriter.writerow([SYSTEM_HOST_NAME,SERIAL_NUMBER]) + csvwriter.writerow([SYSTEM_NAME,SERIAL_NUMBER]) i += 1 diff --git a/hosts-in.csv b/hosts-in.csv new file mode 100644 index 0000000..e69de29 diff --git a/set-ipmi-enabled.py b/set-ipmi-enabled.py index c628dd1..300dcd3 100644 --- a/set-ipmi-enabled.py +++ b/set-ipmi-enabled.py @@ -5,7 +5,7 @@ import logging logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') -with open('ceph-license-keys.csv',encoding='utf8') as csvfile: +with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) PASSWORD=getpass.getpass() @@ -13,15 +13,15 @@ with open('ceph-license-keys.csv',encoding='utf8') as csvfile: for row in csvreader: print(i) i += 1 - HOST_NAME = ("ceph01-block02-"+row[0]+"-bmc") - SYSTEM_NAME = ("ceph01-block02-"+row[0]) + BMC_NAME = (row[0]+"-bmc") + HOST_NAME = (row[0]) + print(BMC_NAME) print(HOST_NAME) - print(SYSTEM_NAME) USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - client.connect(hostname=HOST_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) + client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) command = ("set map1/config1 oemHPE_ipmi_dcmi_overlan_enable=yes") #command = ("show map1/config1 oemHPE_ipmi_dcmi_overlan_enable") stdin, stdout, stderr = client.exec_command(command) From d43ef9b093d0e1a90a47ab6d9ca2dd40a53091c7 Mon Sep 17 00:00:00 2001 From: gblow Date: Wed, 12 Jun 2024 15:33:53 +0100 Subject: [PATCH 2/6] import argparse, arrange input csv, other tidying --- apply-hostnames.py | 7 +++---- apply-licenses.py | 10 +++++----- get-MACs.py | 7 ++++--- get-serials.py | 7 +++---- hosts-in.csv | 1 + set-ipmi-enabled.py | 8 +++----- 6 files changed, 19 insertions(+), 21 deletions(-) diff --git a/apply-hostnames.py b/apply-hostnames.py index c6ea3a9..4a94237 100644 --- a/apply-hostnames.py +++ b/apply-hostnames.py @@ -1,4 +1,5 @@ import csv +import argparse import paramiko import getpass import logging @@ -8,22 +9,20 @@ logger.debug('logging start') with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) + USER_NAME = input("Please enter BMC username:") PASSWORD=getpass.getpass() i = 1 for row in csvreader: print(i) i += 1 - BMC_NAME = (row[0]+"-bmc") + BMC_NAME = (row[1]) HOST_NAME = (row[0]) print(BMC_NAME) - print(HOST_NAME) - USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) command = ("set system1 oemHPE_server_name="+HOST_NAME) - #command = ("show /system1/") stdin, stdout, stderr = client.exec_command(command) print(stdout.read()) diff --git a/apply-licenses.py b/apply-licenses.py index 85edde6..ee48c58 100644 --- a/apply-licenses.py +++ b/apply-licenses.py @@ -1,4 +1,5 @@ import csv +import argparse import paramiko import getpass import logging @@ -8,21 +9,20 @@ logger.debug('logging start') with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) + USER_NAME = input("Please enter BMC username:") PASSWORD=getpass.getpass() i = 1 for row in csvreader: print(i) i += 1 - BMC_NAME = (row[0]+"-bmc") - LICENSE_KEY = (row[7]) + BMC_NAME = (row[1]) + #This is legacy and needs a new column setting, depending on how implemented in future case. Should be quick to determine so leaving to do until relevant. + #LICENSE_KEY = (row[7]) print(BMC_NAME) - #print(LICENSE_KEY) - USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) - #command = ("OemHPE_licenseinstall /map1/oemHPE_license1 "+LICENSE_KEY) command = ("show /map1/oemHPE_license1") stdin, stdout, stderr = client.exec_command(command) print(stdout.read()) diff --git a/get-MACs.py b/get-MACs.py index c675492..e7b49f9 100644 --- a/get-MACs.py +++ b/get-MACs.py @@ -1,4 +1,5 @@ import csv +import argparse import paramiko import getpass import logging @@ -10,6 +11,7 @@ with open('hosts-in.csv',encoding='utf8') as csvfile,open('MACs.csv','w') as csv csvreader = csv.reader(csvfile, delimiter=',') csvwriter = csv.writer(csvfile_out) next(csvreader) + USER_NAME = input("Please enter BMC username:") PASSWORD=getpass.getpass() i = 1 P1_PATTERN=re.compile('Port1NIC_MACAddress=\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}') @@ -17,10 +19,9 @@ with open('hosts-in.csv',encoding='utf8') as csvfile,open('MACs.csv','w') as csv P3_PATTERN=re.compile('Port3NIC_MACAddress=\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}') for row in csvreader: print(i) - BMC_NAME = (row[0]+"-bmc") - SYSTEM_NAME = ("ceph01-block02-"+row[0]) + BMC_NAME = (row[1]) + SYSTEM_NAME = (row[0]) print(BMC_NAME) - USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) diff --git a/get-serials.py b/get-serials.py index 492ea98..daf717f 100644 --- a/get-serials.py +++ b/get-serials.py @@ -1,4 +1,5 @@ import csv +import argparse import paramiko import getpass import logging @@ -10,17 +11,15 @@ with open('hosts-in.csv',encoding='utf8') as csvfile,open('serials.csv','w') as csvreader = csv.reader(csvfile, delimiter=',') csvwriter = csv.writer(csvfile_out) next(csvreader) + USER_NAME = input("Please enter BMC username:") PASSWORD=getpass.getpass() i = 1 SN_PATTERN=re.compile('number=\w{10}') for row in csvreader: print(i) - BMC_NAME = (row[0]+"-bmc") - LICENSE_KEY = (row[7]) + BMC_NAME = (row[1]) SYSTEM_NAME = (row[0]) print(BMC_NAME) - #print(LICENSE_KEY) - USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) diff --git a/hosts-in.csv b/hosts-in.csv index e69de29..a8d9b52 100644 --- a/hosts-in.csv +++ b/hosts-in.csv @@ -0,0 +1 @@ +hostname,bmc_name \ No newline at end of file diff --git a/set-ipmi-enabled.py b/set-ipmi-enabled.py index 300dcd3..b166a2e 100644 --- a/set-ipmi-enabled.py +++ b/set-ipmi-enabled.py @@ -1,4 +1,5 @@ import csv +import argparse import paramiko import getpass import logging @@ -8,22 +9,19 @@ logger.debug('logging start') with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) + USER_NAME = input("Please enter BMC username:") PASSWORD=getpass.getpass() i = 1 for row in csvreader: print(i) i += 1 - BMC_NAME = (row[0]+"-bmc") - HOST_NAME = (row[0]) + BMC_NAME = (row[1]) print(BMC_NAME) - print(HOST_NAME) - USER_NAME = "admin" if i > 0: client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(hostname=BMC_NAME, look_for_keys=False, port=22, username=USER_NAME, password=PASSWORD, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}) command = ("set map1/config1 oemHPE_ipmi_dcmi_overlan_enable=yes") - #command = ("show map1/config1 oemHPE_ipmi_dcmi_overlan_enable") stdin, stdout, stderr = client.exec_command(command) print(stdout.read()) From 333c4b17686758f4c26caa6af2dc7874d63cdea8 Mon Sep 17 00:00:00 2001 From: gblow Date: Wed, 12 Jun 2024 15:43:42 +0100 Subject: [PATCH 3/6] write basic --- README.md | 1 + apply-hostnames.py | 6 ++++++ apply-licenses.py | 4 ++++ get-MACs.py | 4 ++++ get-serials.py | 9 +++++++++ set-ipmi-enabled.py | 9 +++++++++ 6 files changed, 33 insertions(+) diff --git a/README.md b/README.md index e69de29..cd7d302 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +This repository contains a number of scripts that are designed to interact with HPE iLO BMCs (Hewlett Packard Enterprises, integrated Lights Out, Baseboard Management Controllers ) to access information and provide limited actuation. If usage information is not provided through the help text for each script, care should be taken when determining what the script will do before running. \ No newline at end of file diff --git a/apply-hostnames.py b/apply-hostnames.py index 4a94237..519be6b 100644 --- a/apply-hostnames.py +++ b/apply-hostnames.py @@ -3,9 +3,15 @@ import argparse import paramiko import getpass import logging + +#Configure and commence logging + logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') + + + with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) diff --git a/apply-licenses.py b/apply-licenses.py index ee48c58..b73971c 100644 --- a/apply-licenses.py +++ b/apply-licenses.py @@ -3,9 +3,13 @@ import argparse import paramiko import getpass import logging + +#Configure and commence logging + logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') + with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) diff --git a/get-MACs.py b/get-MACs.py index e7b49f9..ede00b8 100644 --- a/get-MACs.py +++ b/get-MACs.py @@ -4,9 +4,13 @@ import paramiko import getpass import logging import re + +#Configure and commence logging + logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') + with open('hosts-in.csv',encoding='utf8') as csvfile,open('MACs.csv','w') as csvfile_out: csvreader = csv.reader(csvfile, delimiter=',') csvwriter = csv.writer(csvfile_out) diff --git a/get-serials.py b/get-serials.py index daf717f..83b32e0 100644 --- a/get-serials.py +++ b/get-serials.py @@ -4,9 +4,18 @@ import paramiko import getpass import logging import re + +#Configure and commence logging + logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') + +#Set up argument parsing + +parser = argparse.ArgumentParser("get-serials.py") +parser.add_argument(help="This script will access every host BMC in the hosts-in.csv list and retrieve the serial number for them, writing them out to a csv file, along with the system host name for identification.") + with open('hosts-in.csv',encoding='utf8') as csvfile,open('serials.csv','w') as csvfile_out: csvreader = csv.reader(csvfile, delimiter=',') csvwriter = csv.writer(csvfile_out) diff --git a/set-ipmi-enabled.py b/set-ipmi-enabled.py index b166a2e..cbdb04b 100644 --- a/set-ipmi-enabled.py +++ b/set-ipmi-enabled.py @@ -3,9 +3,18 @@ import argparse import paramiko import getpass import logging + +#Configure and commence logging + logger = logging.getLogger(__name__) logging.basicConfig(filename='python.log', level=logging.DEBUG) logger.debug('logging start') + +#Set up argument parsing + +parser = argparse.ArgumentParser("set-ipmi-enabled.py") +parser.add_argument(help="This script will take every host BMC in the hosts-in.csv list and set map1/config1 oemHPE_ipmi_dcmi_overlan_enable=yes on it.") + with open('hosts-in.csv',encoding='utf8') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) From 2ed7551e2591c8157b90ed9452e0acf7e8a01f0b Mon Sep 17 00:00:00 2001 From: gblow Date: Wed, 12 Jun 2024 16:03:46 +0100 Subject: [PATCH 4/6] changed hosts in templating schema --- .gitignore | 2 ++ hosts-in-example.csv | 2 ++ hosts-in.csv | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 hosts-in-example.csv delete mode 100644 hosts-in.csv diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd81377 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +hosts-in.csv + diff --git a/hosts-in-example.csv b/hosts-in-example.csv new file mode 100644 index 0000000..60a4789 --- /dev/null +++ b/hosts-in-example.csv @@ -0,0 +1,2 @@ +hostname,bmc_name +perfsonar01,172.24.13.29 diff --git a/hosts-in.csv b/hosts-in.csv deleted file mode 100644 index a8d9b52..0000000 --- a/hosts-in.csv +++ /dev/null @@ -1 +0,0 @@ -hostname,bmc_name \ No newline at end of file From a2c7d67b60ba4dd8a9f61387d772c919eaa77b61 Mon Sep 17 00:00:00 2001 From: gblow Date: Wed, 12 Jun 2024 16:19:14 +0100 Subject: [PATCH 5/6] template tidy-up --- hosts-in-example.csv | 1 - 1 file changed, 1 deletion(-) diff --git a/hosts-in-example.csv b/hosts-in-example.csv index 60a4789..fca2e45 100644 --- a/hosts-in-example.csv +++ b/hosts-in-example.csv @@ -1,2 +1 @@ hostname,bmc_name -perfsonar01,172.24.13.29 From 0947796491de85923f1e70ae48a81bcecacec2de Mon Sep 17 00:00:00 2001 From: gblow Date: Wed, 12 Jun 2024 16:22:03 +0100 Subject: [PATCH 6/6] readme amendment re: venvs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd7d302..9ff13e5 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -This repository contains a number of scripts that are designed to interact with HPE iLO BMCs (Hewlett Packard Enterprises, integrated Lights Out, Baseboard Management Controllers ) to access information and provide limited actuation. If usage information is not provided through the help text for each script, care should be taken when determining what the script will do before running. \ No newline at end of file +This repository contains a number of scripts that are designed to interact with HPE iLO BMCs (Hewlett Packard Enterprises, integrated Lights Out, Baseboard Management Controllers ) to access information and provide limited actuation. If usage information is not provided through the help text for each script, care should be taken when determining what the script will do before running. + +Recommend to set up a virtual env for python to load appropriate modules (with e.g. python3 -m venv) \ No newline at end of file