API Guide

Table Of Contents
Table 78. Parameters for idrac.config_mgr.configure_ipv4 (continued)
Parameter Name Type Allowed Values
Description Indicates whether DHCP is used to obtain primary and secondary DNS server addresses
from
Table 79. Parameters for idrac.config_mgr.configure_ipv4
Parameter Name Type Allowed Values
enable_ipv4
Enum
Enable_IPv4Types.Enabled
Enable_IPv4Types.Disabled
Description Indicates whether the IPv4 protocol is Enabled or Disabled.
Table 80. Parameters for idrac.config_mgr.configure_ipv4
Parameter Name Type Allowed Values
gateway
String User defined values
Description Configure the Default Gateway IP address.
Table 81. Parameters for idrac.config_mgr.configure_ipv4
Parameter Name Type Allowed Values
net_mask
String User defined values
Description Configure the iDRAC subnet mask.
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)
idrac.config_mgr.configure_ipv4
(
ip_address = "1.1.1.1", enable_dhcp = DHCPEnable_IPv4Types.Enabled,
dns_1 = None, dns_2 = None, dns_from_dhcp = DNSFromDHCP_IPv4Types.Enabled,
enable_ipv4 = Enable_IPv4Types.Enabled, gateway = None, net_mask = None
)
apply_status = idrac.config_mgr.apply_changes(reboot=False)
Returns: Success or Failure.
Return Type: JSON.
idrac.config_mgr.configure_static_ipv4
API string/Method: idrac.config_mgr.configure_static_ipv4.
Protocol Support: Redfish.
Description: The idrac.config_mgr.configure_static_ipv4() allows you to configure the Static IPv4 Settings.
Table 82. Parameters for idrac.config_mgr.configure_static_ipv4
Parameter Name Type Allowed Values
ip_address
String IP Address
Description Displays the iDRAC NIC IPv4 address.
OpenManage Python SDK API introduction 27