Closed khouloudfr closed 4 months ago
@khouloudfr, modules prefixed with ome_
are specific to OpenManage Enterprise (OME). For iDRAC configuration, you should use modules prefixed with idrac_
or redfish_
.
So, to configure the iDRAC DNS settings, you will have to use the dellemc.openmanage.idrac_attributes
module to configure the iDRAC attributes:
- name: configure iDRAC DNS settings
dellemc.openmanage.idrac_attributes:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
validate_certs: False
idrac_attributes:
NIC.1.Enable: "Enabled"
NIC.1.DNSRegister: "Enabled"
NIC.1.DNSRacName: "MX-SVCTAG"
NIC.1.DNSDomainName: "dnslocaldomain"
NIC.1.DNSDomainNameFromDHCP: "Disabled"
IPv4.1.Enable: "Enabled"
IPv4.1.DHCPEnable: "Disabled"
IPv4.1.DNSFromDHCP: "Disabled"
IPv4.1.DNS1: "8.8.8.8"
IPv4.1.DNS2: "9.9.9.9"
Hope that helps.
@khouloudfr, modules prefixed with
ome_
are specific to OpenManage Enterprise (OME). For iDRAC configuration, you should use modules prefixed withidrac_
orredfish_
.So, to configure the iDRAC DNS settings, you will have to use the
dellemc.openmanage.idrac_attributes
module to configure the iDRAC attributes:- name: configure iDRAC DNS settings dellemc.openmanage.idrac_attributes: idrac_ip: "{{ idrac_ip }}" idrac_user: "{{ idrac_user }}" idrac_password: "{{ idrac_password }}" validate_certs: False idrac_attributes: NIC.1.Enable: "Enabled" NIC.1.DNSRegister: "Enabled" NIC.1.DNSRacName: "MX-SVCTAG" NIC.1.DNSDomainName: "dnslocaldomain" NIC.1.DNSDomainNameFromDHCP: "Disabled" IPv4.1.Enable: "Enabled" IPv4.1.DHCPEnable: "Disabled" IPv4.1.DNSFromDHCP: "Disabled" IPv4.1.DNS1: "8.8.8.8" IPv4.1.DNS2: "9.9.9.9"
Hope that helps.
Hello,
This is worked correctly thank you very much. I also tried with attributes but I was putting the wrong attributes for example "NIC.1.DNSDomainNameFromDHCP" Could you please tell me where we can find those attribute names? In the ansible documentation is not specified. Thank you again for your help
@khouloudfr, modules prefixed with
ome_
are specific to OpenManage Enterprise (OME). For iDRAC configuration, you should use modules prefixed withidrac_
orredfish_
. So, to configure the iDRAC DNS settings, you will have to use thedellemc.openmanage.idrac_attributes
module to configure the iDRAC attributes:- name: configure iDRAC DNS settings dellemc.openmanage.idrac_attributes: idrac_ip: "{{ idrac_ip }}" idrac_user: "{{ idrac_user }}" idrac_password: "{{ idrac_password }}" validate_certs: False idrac_attributes: NIC.1.Enable: "Enabled" NIC.1.DNSRegister: "Enabled" NIC.1.DNSRacName: "MX-SVCTAG" NIC.1.DNSDomainName: "dnslocaldomain" NIC.1.DNSDomainNameFromDHCP: "Disabled" IPv4.1.Enable: "Enabled" IPv4.1.DHCPEnable: "Disabled" IPv4.1.DNSFromDHCP: "Disabled" IPv4.1.DNS1: "8.8.8.8" IPv4.1.DNS2: "9.9.9.9"
Hope that helps.
Hello,
This is worked correctly thank you very much. I also tried with attributes but I putted the wrong attributes for example "NIC.1.DNSDomainNameFromDHCP" This is the source from where you get the names ?. https://dl.dell.com/topicspdf/attribute_registry_en-us.pdf
Thank you again for your help
@khouloudfr, that's right. You should be able to get the attribute names, description, display value and a bunch of other details from Manager Attribute Registry.
curl -k -s -u 'root:calvin' https://<iDRAC IP Address>/redfish/v1/Registries/ManagerAttributeRegistry.v1_0_0.json | python3 -m json.tool > ManagerAttributeRegistry.v1_0_0.json
@khouloudfr, I will be closing this issue. Please feel free to raise another GitHub issue if you are running into any error or have questions.
@khouloudfr, I will be closing this issue. Please feel free to raise another GitHub issue if you are running into any error or have questions.
@anupamaloke Thank you very much :)
Hello everyone,
I am encountering an issue while trying to configure DNS settings on iDRAC using Ansible. My playbook uses the dellemc.openmanage.idrac_attributes module to set DNS attributes. However, I'm receiving an error related to the /api/SessionService/Sessions resource not being found.
Here is the relevant part of my playbook:
When running the playbook, I receive the following error:
error": {"@Message.ExtendedInfo": [{"Message": "Unable to complete the operation because the resource /api/SessionService/Sessions entered is not found.", "MessageArgs": ["/api/SessionService/Sessions"], "MessageId": "IDRAC.2.2.SYS403", "RelatedProperties": [], "Resolution": "Enter the correct resource and retry the operation. For resources with numeric ID in the URI, enable the \"Redfish.1#NumericDynamicSegmentsEnable\" attribute and retry the operation. For information about valid resource, see the Redfish Users Guide available on the support site.", "Severity": "Critical"}, {"Message": "The resource at the URI '/api/SessionService/Sessions' was not found.", "MessageArgs": ["/api/SessionService/Sessions"], "MessageId": "Base.1.12.1.ResourceMissingAtURI", "RelatedProperties": [], "Resolution": "Place a valid resource at the URI or correct the URI and resubmit the request.", "Severity": "Critical"}], "code": "Base.1.7.GeneralError", "message": "A general error has occurred. See ExtendedInfo for more information"}}, "msg": "HTTP Error 404: Not Found"}
I have verified the IP address and credentials and can log into the iDRAC web interface without any issues. Also, the deprecated module is working correctly "dellemc.openmanage.idrac_network"
Has anyone else encountered a similar issue or had any suggestions on resolving this? Any guidance would be greatly appreciated.
Thank you!