Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1587056.1
Update Date:2018-03-06
Keywords:

Solution Type  Problem Resolution Sure

Solution  1587056.1 :   ilomconfig modify in OHMP 2.2.7 is not working in XML files when comments present  


Related Items
  • SPARC T4-2
  •  
Related Categories
  • PLA-Support>Sun Systems>SPARC>CMT>SN-SPARC: T4
  •  




In this Document
Symptoms
Changes
Cause
Solution
References


Created from <SR 3-7825770221>

Applies to:

SPARC T4-2 - Version All Versions to All Versions [Release All Releases]
Information in this document applies to any platform.

Symptoms

ilomconfig modify in  OHMP 2.2.7 is not working in  XML files when comments present

 

Example with network :

 

(1) You list the contents of configfile.xml

root@dev3-t4-2:/export# ilomconfig list network --xmlfile=/export/configfile.xml
Network - IPv4
==============
Pending IP Address: 10.30.139.120
Pending IP Discovery: static
Pending IP Netmask: 255.255.255.0
Pending IP Gateway: 10.30.139.1
Management Port: MGMT
Interface State: enabled

(2) You modify the content of configfile.xml (network)

root@dev3-t4-2:/export# ilomconfig modify network --xmlfile=/export/configfile.xml
--ipaddress=10.30.139.99 --state=disabled
Set 'pendingipaddress' to '10.30.139.99'
Set 'state' to 'disabled'
Set 'commitpending' to 'true'

(3) You list again  configfile.xml  but the content not change

root@dev3-t4-2:/export# ilomconfig list network --xmlfile=/export/configfile.xml
Network - IPv4
==============
Pending IP Address: 10.30.139.120<-- does not change
Pending IP Discovery: static
Pending IP Netmask: 255.255.255.0
Pending IP Gateway: 10.30.139.1
Management Port: MGMT
Interface State: enabled

root@dev3-t4-2:/export# less configfile.xml
:
  <property>/SP/network/pendingipaddress</property>
  <!--- Description: Pending IP address -->
  <value>10.30.139.120</value>  

 

Changes

 Issue in OHMP 2.2.7

Cause

ilomconfig is not making the modifications to the XML file due to the presence of comments within the file in OHMP 2.2.7
 

 

Solution

Work around :

remove the comments from the XML file and use that to make the modifications,

i.e.:

grep -v "<\!--" configfile.xml > new.xml

References

<BUG:17476442> - MODIFY COMMANDS DO NOT WORK WHEN COMMENTS PRESENT IN XML FILE

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback