Video Screencast Help

nbdiscover returns error when using -noxmloutput

Created: 07 Nov 2012 • Updated: 15 Apr 2014 | 2 comments
Remco Etten's picture
This issue has been solved. See solution.


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


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;=&

Which obviously is hardly readable...

Any thoughts on this?

Many thanks in advance


Comments 2 CommentsJump to latest comment

trs06's picture

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's picture

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

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

Symantec NetBackup 7.5 Commands Reference Guide

here's the TechNote version:


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

Hope this helps - good luck! | APPLBN | 761LBN