ProLiant Servers (ML,DL,SL)
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable network card using ilorest

 
Batnana
Occasional Visitor

Disable network card using ilorest

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.

 

1 REPLY 1
NareshISS
Advisor

Re: Disable network card using ilorest

Hello,

please check the user guide :-https://support.hpe.com/hpsc/doc/public/display?docId=c04423965

there is no custom tool you have to write the python script.

I am an HPE Employee.