API Guide
Table 84. Parameters for idrac.cong_mgr.congure_static_ipv4
Parameter Name Type Allowed Values
dns_2
String User dened values
Description Indicates the static alternate DNS server IPv4 address if DHCP is not used to get the DNS
address.
Table 85. Parameters for idrac.cong_mgr.congure_static_ipv4
Parameter Name Type Allowed Values
dns_from_dhcp
Enum
DNSFromDHCP_IPv4Types.Enabled
DNSFromDHCP_IPv4Types.Disabled
Description Indicates whether DHCP is used to obtain primary and secondary DNS server addresses from
the DHCPv4 server.
Table 86. Parameters for idrac.cong_mgr.congure_static_ipv4
Parameter Name Type Allowed Values
gateway
String User dened values
Description Congure the iDRAC subnet mask.
Table 87. Parameters for idrac.cong_mgr.congure_static_ipv4
Parameter Name Type Allowed Values
net_mask
String User dened values
Description Congure 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)
#Perform iDRAC Static IPv4 configuration
idrac.config_mgr.configure_static_ipv4
(
ip_address = "1.1.1.1", dns_1 = None, dns_2 = None,
dns_from_dhcp = DNSFromDHCP_IPv4StaticTypes.Enabled, gateway=None,
net_mask=None)
apply_status = idrac.config_mgr.apply_changes(reboot=False)
Returns: Success of Failure.
Return Type: JSON.
idrac.cong_mgr.congure_timezone
API string/Method: idrac.config_mgr.configure_timezone.
Protocol Support: Redfish.
OpenManage Python SDK API introduction
33