Hi!
I'm trying to automate our physical servers installation process. I'm playing around with the ilorest tool and managed to get my machine's network interface status:
# /usr/sbin/ilorest list Name "PhysicalPorts/MacAddress" --selector=NetworkAdapter iLOrest : RESTful Interface Tool version 2.4 Copyright (c) 2014, 2019 Hewlett Packard Enterprise Development LP ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Name=HPE Ethernet 1Gb 4-port 331i Adapter - NIC PhysicalPorts= Status= State=Enabled PhysicalPorts= MacAddress=C4:34:AA:AA:AA:00 MacAddress=C4:34:AA:AA:AA:01 MacAddress=C4:34:AA:AA:AA:02 MacAddress=C4:34:AA:AA:AA:03
How can I enable/disable a network card or network interface using ilorest? I've seen some examples using the APIrest (coding in Python, for example) but I would like to avoid to code something from scratch when we already have a tool available.