11-07-2012 02:36 AM
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 has been excluded by the discovery filter, display name =&
#32;[NLCZDBS0200], server = [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
Solved! Go to Solution.
03-13-2013 09:49 AM
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:
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 7.5.0.5: http://symantec.com/docs/DOC5198
Hope this helps - good luck!
03-13-2013 08:53 AM
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,
03-13-2013 09:49 AM
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:
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 7.5.0.5: http://symantec.com/docs/DOC5198
Hope this helps - good luck!