Re: new swa 2.90 env "failed to parse" inventory (253 Views)
Reply
Honored Contributor
Doug O'Leary
Posts: 815
Registered: ‎05-25-2005
Message 1 of 3 (259 Views)

new swa 2.90 env "failed to parse" inventory

[ Edited ]

Hi;

 

Now that I got the certificate issue (thank you, Patrick!), I'm having an issue on one host of the set.  SWA ver 2.90 and JRE 6.0 were installed on the systems over the weekend seemingly without issue - at least nothing showing up in /var/adm/swagent.log 

 

The command: 

 

swa report -x hp_id="${hp_id}" -x hp_pw="${hp_pw}"

 

runs locally just fine; however, from my management server, running: 

 

swa report -s ssh://root@${tgt} -x hp_id="${hp_id}" -x hp_pw="${hp_pw}" \
-x ssh_options='-o batchmode=yes'

 

results in: 

 

ERROR: Failed to parse: /.root/.swa/cache/swa_inventory_2419367604.xml
Message: File is invalid. line 8:col 1 XML document structures must
start and end within the same entity.

 

The file looks right to me and that line looks the same compared to other functioning hosts:

 

# sed -ne '8,8p' /.root/.swa/cache/swa_inventory_2419367604.xml
<attribute name="machine_model" value="ia64 hp server rx3600" />

// different host:

# sed -ne '8,8p' /.root/.swa/cache/swa_inventory_1551664811.xml
<attribute name="machine_model" value="ia64 hp server rx3600" />

 

All filesets - for everything, not just swa - are configured; nothing showing up as corrupted.  I'm contemplating a reinstallation; however, I'm hoping someone will know what's broke as I don't have a lot of confidence in the reinstall...  ssh is working both directions... and, once again, nothing in any logs that I can find.

 

Any hints/tips/suggestions gratefully accepted!

 

Doug O'Leary

 

 

 

P.S.This thread has been moved from HP-UX>System Administration to HP-UX >  patches-HP Forums Moderator


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Acclaimed Contributor
Dennis Handly
Posts: 25,277
Registered: ‎03-06-2006
Message 2 of 3 (257 Views)

Re: new swa 2.90 env "failed to parse" inventory

>The file looks right to me and that line looks the same compared to other functioning hosts:

 

Have you diffed the two files?  Perhaps the bad line is somewhere else?

Honored Contributor
Doug O'Leary
Posts: 815
Registered: ‎05-25-2005
Message 3 of 3 (253 Views)

Re: new swa 2.90 env "failed to parse" inventory

Hey;

 

Thanks for the reply.  Even very similar systems are going to differ in slight ways so that the inventory report shows up dramatically different.  That said, your suggestion lead me to the solution. 

 

I copied the inventory from the tgt system and the latest one from the management server to a working directory as was parsing my way through them ensuring they were structurally the same.  About half way through this exercise, I realized the one that supposedly came from the management server was saying 

 

swlist .[=snip ]] @ ${some_other_host}.

 

I was under the impression that these inventory files were on the remote sytsems - not generated on  the management node.  Looking in the cache on the management node, sure enough, the offending system's inventory was truncated.  Removed that, reran the script and everything checks out.

 

Thanks alot for your help.  Appreciate it no end.

 

Doug O'Leary


------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.