<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OneView configure second interface in DHCP. in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7207391#M9017</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to configure a second network interface in the oneview appliance. I read this can be achieved only via the rest api, is it true?&lt;/P&gt;&lt;P&gt;I am trying to run the following python code but I receive an error : "hpeOneView.exceptions.HPEOneViewTaskError: A appliance-2 IPv4 host name is required for DHCP configuration."&lt;/P&gt;&lt;P&gt;#!/usr/bin/python3&lt;/P&gt;&lt;P&gt;import logging&lt;BR /&gt;import sys&lt;BR /&gt;import getpass&lt;/P&gt;&lt;P&gt;from pprint import pprint&lt;BR /&gt;from hpeOneView.oneview_client import OneViewClient&lt;BR /&gt;from hpeOneView.exceptions import HPEOneViewException&lt;/P&gt;&lt;P&gt;# Default credentials to login to oneview&lt;BR /&gt;if sys.stdin.isatty():&lt;BR /&gt;print("Enter credentials")&lt;BR /&gt;USERNAME = input("Username: ")&lt;BR /&gt;PASSWORD = getpass.getpass("Password: ")&lt;BR /&gt;else:&lt;BR /&gt;USERNAME = sys.stdin.readline().rstrip()&lt;BR /&gt;PASSWORD = sys.stdin.readline().rstrip()&lt;/P&gt;&lt;P&gt;CONFIG = {&lt;BR /&gt;"api_version": 6000,&lt;BR /&gt;"ip": "&amp;lt;OneViewIP&amp;gt;",&lt;BR /&gt;"credentials": {&lt;BR /&gt;"userName": USERNAME,&lt;BR /&gt;"password": PASSWORD&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# Initiate a connection to the appliance and instanciate a new OneViewClient class object&lt;BR /&gt;ONEVIEW_CLIENT = OneViewClient(CONFIG)&lt;BR /&gt;network_interface = ONEVIEW_CLIENT.appliance_network_interfaces&lt;/P&gt;&lt;P&gt;updated_details = {"applianceNetworks": [{&lt;BR /&gt;"hostname": "&amp;lt;oneviewHostname&amp;gt;",&lt;BR /&gt;"networkLabel":"ILOnetwork",&lt;BR /&gt;"interfaceName": "ILOnetwork",&lt;BR /&gt;"device": "eth1",&lt;BR /&gt;"macAddress": "&amp;lt;MACaddress&amp;gt;",&lt;BR /&gt;"ipv4Type": "DHCP"&lt;BR /&gt;}]}&lt;BR /&gt;updated_network_interface = network_interface.create(updated_details)&lt;BR /&gt;pprint(updated_network_interface.data)&lt;BR /&gt;print("\nNetwork Interface updated successfully")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help finding what is going wrong?&lt;/P&gt;&lt;P&gt;Thank you in advance...&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 10:43:47 GMT</pubDate>
    <dc:creator>linuxteam-belgi</dc:creator>
    <dc:date>2024-03-06T10:43:47Z</dc:date>
    <item>
      <title>OneView configure second interface in DHCP.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7207391#M9017</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to configure a second network interface in the oneview appliance. I read this can be achieved only via the rest api, is it true?&lt;/P&gt;&lt;P&gt;I am trying to run the following python code but I receive an error : "hpeOneView.exceptions.HPEOneViewTaskError: A appliance-2 IPv4 host name is required for DHCP configuration."&lt;/P&gt;&lt;P&gt;#!/usr/bin/python3&lt;/P&gt;&lt;P&gt;import logging&lt;BR /&gt;import sys&lt;BR /&gt;import getpass&lt;/P&gt;&lt;P&gt;from pprint import pprint&lt;BR /&gt;from hpeOneView.oneview_client import OneViewClient&lt;BR /&gt;from hpeOneView.exceptions import HPEOneViewException&lt;/P&gt;&lt;P&gt;# Default credentials to login to oneview&lt;BR /&gt;if sys.stdin.isatty():&lt;BR /&gt;print("Enter credentials")&lt;BR /&gt;USERNAME = input("Username: ")&lt;BR /&gt;PASSWORD = getpass.getpass("Password: ")&lt;BR /&gt;else:&lt;BR /&gt;USERNAME = sys.stdin.readline().rstrip()&lt;BR /&gt;PASSWORD = sys.stdin.readline().rstrip()&lt;/P&gt;&lt;P&gt;CONFIG = {&lt;BR /&gt;"api_version": 6000,&lt;BR /&gt;"ip": "&amp;lt;OneViewIP&amp;gt;",&lt;BR /&gt;"credentials": {&lt;BR /&gt;"userName": USERNAME,&lt;BR /&gt;"password": PASSWORD&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# Initiate a connection to the appliance and instanciate a new OneViewClient class object&lt;BR /&gt;ONEVIEW_CLIENT = OneViewClient(CONFIG)&lt;BR /&gt;network_interface = ONEVIEW_CLIENT.appliance_network_interfaces&lt;/P&gt;&lt;P&gt;updated_details = {"applianceNetworks": [{&lt;BR /&gt;"hostname": "&amp;lt;oneviewHostname&amp;gt;",&lt;BR /&gt;"networkLabel":"ILOnetwork",&lt;BR /&gt;"interfaceName": "ILOnetwork",&lt;BR /&gt;"device": "eth1",&lt;BR /&gt;"macAddress": "&amp;lt;MACaddress&amp;gt;",&lt;BR /&gt;"ipv4Type": "DHCP"&lt;BR /&gt;}]}&lt;BR /&gt;updated_network_interface = network_interface.create(updated_details)&lt;BR /&gt;pprint(updated_network_interface.data)&lt;BR /&gt;print("\nNetwork Interface updated successfully")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help finding what is going wrong?&lt;/P&gt;&lt;P&gt;Thank you in advance...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:43:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7207391#M9017</guid>
      <dc:creator>linuxteam-belgi</dc:creator>
      <dc:date>2024-03-06T10:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: OneView configure second interface in DHCP.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7207796#M9032</link>
      <description>&lt;P&gt;Hi linuxteam-belgi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Yes, you heard right.&amp;nbsp;&lt;SPAN&gt;Configuration of the secondary NIC is supported only through the REST API.&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; For 2nd NIC configuration, you need to retrieve the network settings first, then configure the secondary NIC using the following NIC REST API.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Please refer the &lt;A href="https://support.hpe.com/hpesc/public/docDisplay?docId=sd00003498en_us&amp;amp;page=GUID-29568F8E-6A92-48E8-B801-D62D47CEB183.html" target="_blank" rel="noopener"&gt;link&lt;/A&gt; for more information on configuration. Hope it gives solution for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Shiva_JR&lt;BR /&gt;&lt;FONT size="2"&gt;Please mark as '&lt;STRONG&gt;Accepted solution&lt;/STRONG&gt;'&amp;nbsp;and thumbs up with &lt;STRONG&gt;Kudos&lt;/STRONG&gt; if my post worked&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 04:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7207796#M9032</guid>
      <dc:creator>shiva_jr</dc:creator>
      <dc:date>2024-03-02T04:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: OneView configure second interface in DHCP.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7207952#M9038</link>
      <description>&lt;P dir="auto" style="margin: 0;"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I agree with the above information.&lt;BR /&gt;Please do let us know if a case is logged.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 12:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7207952#M9038</guid>
      <dc:creator>ManBha</dc:creator>
      <dc:date>2024-03-04T12:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: OneView configure second interface in DHCP.</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7208234#M9046</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2005182"&gt;@linuxteam-belgi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Is this issue resolved? Any help required ?&lt;BR /&gt;Regards,&lt;BR /&gt;Shiva_JR&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 05:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-configure-second-interface-in-dhcp/m-p/7208234#M9046</guid>
      <dc:creator>shiva_jr</dc:creator>
      <dc:date>2024-03-07T05:10:12Z</dc:date>
    </item>
  </channel>
</rss>

