Veritas-bu

Re: [Veritas-bu] printout Vault profile

2009-02-13 13:56:08
Subject: Re: [Veritas-bu] printout Vault profile
From: "Jeff Lightner" <jlightner AT water DOT com>
To: "Rosenkoetter, Gabriel" <Gabriel.Rosenkoetter AT radian DOT biz>, "Stump, Bob A" <Bob.A.Stump AT fnis DOT com>
Date: Fri, 13 Feb 2009 13:39:17 -0500
Thanks.   That looks a lot better.

-----Original Message-----
From: Rosenkoetter, Gabriel [mailto:Gabriel.Rosenkoetter AT radian DOT biz] 
Sent: Friday, February 13, 2009 1:09 PM
To: Jeff Lightner; Stump, Bob A
Cc: 'VERITAS-BU AT mailman.eng.auburn DOT edu'
Subject: RE: [Veritas-bu] printout Vault profile

Er, "oops". It does help to use simplexml_load_file() rather than
simplexml_load_string() when what you're passing to it is a file to be
parsed. But Perl's better suited to this anyway. Quick hack attached
(you may need to perl -MCPAN -e 'install XML::Simple;', then use it as
/path/to/dump_nbu_vault_xml.pl <
/usr/openv/netbackup/db/vault/vault.xml, which you'll probably want to
redirect to a file or a pager).

In case it gets stripped, here's the whole thing:

---8<---

#!/usr/bin/perl -w

use strict;
use XML::Simple;
use Data::Dumper;

my $data = XMLin("-");

$Data::Dumper::Indent = 1;
$Data::Dumper::Maxdepth = 0;

print Dumper($data);

--->8---

A prettier presentation would probably involve doing eval Dumper($data)
and then walking through the tree. That's left as an exercise for the
reader.

--
gabriel rosenkoetter
Radian Group Inc, Senior Systems Engineer
gabriel.rosenkoetter AT radian DOT biz, 215 231 1556


-----Original Message-----
From: Rosenkoetter, Gabriel
Sent: Thursday, February 12, 2009 5:23 PM
To: 'Jeff Lightner'
Cc: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] printout Vault profile

Your comment seemed a bit odd in the back of my mind so I went back and
looked, and both web browsers do exactly what I would expect. That is,
they do complain that they can't format the file, but they do that with
any XML file that lacks formatting direction. You could manually wrap
some CSS and XML style definitions around the Vault content if you want
to specify how those fields should be displayed, but I just said
"parse", I didn't say "format".

That said, there is something hokey about their XML, given that PHP's
simple_xml complains about it too ("Entity: line 1: parser error : Start
tag expected, '<' not found [...]"). If I get bored enough I'll see if I
can sort it out.


--
gabriel rosenkoetter
Radian Group Inc, Senior Systems Engineer
gabriel.rosenkoetter AT radian DOT biz, 215 231 1556


-----Original Message-----
From: Jeff Lightner [mailto:jlightner AT water DOT com]
Sent: Thursday, February 12, 2009 3:31 PM
To: Rosenkoetter, Gabriel; Stump, Bob A
Cc: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] printout Vault profile

That file exists for me as well but neither Firefox 3 nor IE 7 think it
is formatted properly.

That was after I transferred it to my Windows from HP-UX using WinSCP.
Is there something else needed to view it properly?

-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of
Rosenkoetter, Gabriel
Sent: Thursday, February 12, 2009 3:08 PM
To: 'Stump, Bob A'
Cc: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] printout Vault profile

"Works for me." Are you sure that you have the appropriate file
permissions for the user as whom you ran find(1)?

root@pa2ibks2:/usr/openv
[40] find /usr/openv -name vault.xml
/usr/openv/netbackup/db/vault/vault.xml

--
gabriel rosenkoetter
Radian Group Inc, Senior Systems Engineer
gabriel.rosenkoetter AT radian DOT biz, 215 231 1556


-----Original Message-----
From: Stump, Bob A [mailto:Bob.A.Stump AT fnis DOT com]
Sent: Thursday, February 12, 2009 2:40 PM
To: Rosenkoetter, Gabriel; rob.worman AT gmail DOT com
Cc: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] printout Vault profile

#find /usr/openv -name vault.xml

Returns nothing.
Where is this file?



-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of
Rosenkoetter, Gabriel
Sent: Thursday, February 12, 2009 1:24 PM
To: 'rob.worman AT gmail DOT com'
Cc: 'VERITAS-BU AT mailman.eng.auburn DOT edu'
Subject: Re: [Veritas-bu] printout Vault profile

... or any other modern web browser, all of which are capable of parsing
XML. But I'm not generally in the habit of installing IE on Unix
servers, you? In any case, passing it through, for example, PHP's
simple_xml library would be more useful for generating printed reports.


--
gabriel rosenkoetter
Radian Group Inc, Senior Systems Engineer
gabriel.rosenkoetter AT radian DOT biz, 215 231 1556


-----Original Message-----
From: rob [mailto:netbackup-forum AT backupcentral DOT com]
Sent: Wednesday, February 11, 2009 5:24 PM
To: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] printout Vault profile


The vault.xml file is made extremely readable when opened by Internet
Explorer.

+----------------------------------------------------------------------
|This was sent by rob.worman AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------





_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

_____________

The information contained in this message is proprietary and/or
confidential. If you are not the
intended recipient, please: (i) delete the message and all copies; (ii)
do not disclose,
distribute or use the message in any manner; and (iii) notify the sender
immediately. In addition,
please be aware that any message addressed to our domain is subject to
archiving and review by
persons other than the intended recipient. Thank you.
_____________



_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Please consider our environment before printing this e-mail or
attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or
confidential information and is for the sole use of the intended
recipient(s). If you are not the intended recipient, any disclosure,
copying, distribution, or use of the contents of this information is
prohibited and may be unlawful. If you have received this electronic
transmission in error, please reply immediately to the sender that you
have received the message in error, and delete it. Thank you.
----------------------------------



_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

<Prev in Thread] Current Thread [Next in Thread>