API Guide

Description: The idrac.config_mgr.configure_dns allows you to congure the DNS server.
Table 70. Parameters for idrac.cong_mgr.congure_dns
Parameter Name Type Allowed Values
register_idrac_on_dns
Enum
DNSRegister_NICTypes.Enabled
DNSRegister_NICTypes.Disabled
Description Allows you to register the iDRAC on DNS.
Table 71. Parameters for idrac.cong_mgr.congure_dns
Parameter Name Type Allowed Values
dns_idrac_name
String None
Description Allows you to congure the DNS iDRAC name.
Table 72. Parameters for idrac.cong_mgr.congure_dns
Parameter Name Type Allowed Values
auto_config
Enum
DNSDomainNameFromDHCP_NICTypes.Enabled
DNSDomainNameFromDHCP_NICTypes.Disabled
Description Alows you to disable the DNS name from the DHCP.
Table 73. Parameters for idrac.cong_mgr.congure_dns
Parameter Name Type Allowed Values
statis_dns
String User dened values
Description Congure the DNS server.
Example:
#Set liason share
myshare = FileOnShare(remote="<IP OR HOSTNAME>:/<NFS-SHARE-PATH>/<FILE-NAME>",
mount_point='Z:\', isFolder=False,
creds=UserCredentials(<USERNAME>, <PASSWORD>))
liason_share_status = idrac.config_mgr.set_liason_share(myshare)
#Configure iDRAC DNS COnfiguration
msg = idrac.config_mgr.configure_dns(register_idrac_on_dns = DNSRegister_NICTypes.Enabled,
dns_idrac_name = None,
auto_config = DNSDomainNameFromDHCP_NICTypes.Disabled, static_dns = None)
print(Prettifyer().prettify_json(msg))
apply_status = idrac.config_mgr.apply_changes(reboot=False)
Returns: JSON Returns a json indicating whether the user was created successfully or not.
Return Type: JSON.
idrac.cong_mgr.congure_ipv4
API string/Method: idrac.config_mgr.configure_ipv4.
Protocol Support: Redfish.
30
OpenManage Python SDK API introduction