cancel
Showing results for 
Search instead for 
Did you mean: 

nbdiscover returns error when using -noxmloutput

Remco_Etten
Level 4
Partner

Goodday,

We're backing up  a large VM environment and I need to run a query from commandline the return the machine elligable to be backed up. However my command returns an error when using the -noxmloutput option (that I need to receive readable information. I searched everywhere but cannot seem to find an answer. Could anyone assist me?

Environment is windows2008 r2, nbu version is 7.1.04.

Command given :

D:\nbuscripts>nbdiscover -noxmloutput "vmware:/?filter=VMFolder Contains 'NBU 0400 Full Start 1900 Quiesce' AND VMFolder Contains 'Session 01' AND NOT Displayname Contains 'MIGRATED'"

could not parse iteration -noxmloutput

D:\nbuscripts>

 

If I omit the "-noxmloutput" option, the command runs but gives me output like this :

 

  <StatusMsg NBUStatus="114" Severity="1" VXULoid="386" VXULtid="6"><P pos="0">N
LCZDBS0200</P><P pos="1">app0540.infra.local</P><MsgString>VM&#32;has&#32;been&#32;excluded&#32;by&#32;the&#32;discovery&#32;filter,&#32;display&#32;name&#32;=&
#32;[NLCZDBS0200],&#32;server&#32;=&#32;[app0540.infra.local].</MsgString></StatusMsg>
  <NBU>
   <NAME>ALL_LOCAL_DRIVES</NAME>
   <PLUGIN>vmware</PLUGIN>
  </NBU>
  <PROCESSING>
   <DATA_GROUP>NLCZDBS0200</DATA_GROUP>
   <DATA_HOST>NLCZDBS0200</DATA_HOST>
   <CATALOG_HOST>NLCZDBS0200</CATALOG_HOST>
   <SNAPSHOT_GROUP>NLCZDBS0200</SNAPSHOT_GROUP>
   <SNAPSHOT_HOST>NLCZDBS0200</SNAPSHOT_HOST>
   <VALID_FOR>10</VALID_FOR>
  </PROCESSING>
 </Discovered>
 <Discovered>

Which obviously is hardly readable...

Any thoughts on this?

Many thanks in advance

Remco

1 ACCEPTED SOLUTION

Accepted Solutions

CRZ
Level 6
Employee Accredited Certified

Sorry, the -noxmloutput command line switch was added in 7.5, so it won't work as you want on your 7.1.0.4 system.

nbdiscover IS documented in the 7.5 Commands Guide on pages 504-506:

Symantec NetBackup 7.5 Commands Reference Guide
 http://symantec.com/docs/DOC5182

here's the TechNote version:

nbdiscover
 http://symantec.com/docs/HOWTO73029

As I see it, you have two options:

1. Use the 7.1.0.x version of the command to generate the XML output and script a solution to parse it
2. Upgrade to 7.5.0.5: http://symantec.com/docs/DOC5198

Hope this helps - good luck!

 

View solution in original post

2 REPLIES 2

trs06
Level 5

Can no one help with this?  I get the error "could not parse iteration" no matter what I put in after ./nbdiscover

If I just put in ./nbdiscover for simple help I get the following:

[tshipman@utlp1227 bin]$ ./nbdiscover

nbdiscover [-lastdiscover time]
[-sched type]
<path> [...]

So I tried using -sched FlashBackup-Windows and that also returned the same error.

In addition, I searched all the Symantec 7.x CLI manuals and could not even find the nbdiscover command.

Master is RHEL 6.2 Netbackup v7.1.0.4, Media Servers are Windows 2008 R2 Standard NBU v7.1.0.4, ESXi is 5.0U1,

CRZ
Level 6
Employee Accredited Certified

Sorry, the -noxmloutput command line switch was added in 7.5, so it won't work as you want on your 7.1.0.4 system.

nbdiscover IS documented in the 7.5 Commands Guide on pages 504-506:

Symantec NetBackup 7.5 Commands Reference Guide
 http://symantec.com/docs/DOC5182

here's the TechNote version:

nbdiscover
 http://symantec.com/docs/HOWTO73029

As I see it, you have two options:

1. Use the 7.1.0.x version of the command to generate the XML output and script a solution to parse it
2. Upgrade to 7.5.0.5: http://symantec.com/docs/DOC5198

Hope this helps - good luck!