cancel
Showing results for 
Search instead for 
Did you mean: 

opscenter views via view_exportimport.bat

nbritton
Level 4

I have built a script that parses data from bppllist and bpimagelist to build a list of clients that can be filtered and put into views for opscenter.

From that i create a csv file that looks like this:

client,CORP-all,linux6160,MS-Exchange-Server,dag01
client,CORP-all,linux6160,Flash-Backup-Windows,oma00cfs01

and when i run this through the import tool : view_exportimport.bat in the opscenter\server\bin directory i get the following:

Importing views ....
================================================================================

Exception in thread "main" java.lang.NullPointerException
at com.symantec.nbu.nom.goodies.exim.DelimitedFileImportExport.processCh
ildNodes(DelimitedFileImportExport.java:418)
at com.symantec.nbu.nom.goodies.exim.DelimitedFileImportExport.importVie
w(DelimitedFileImportExport.java:264)
at com.symantec.nbu.nom.goodies.exim.comm.EximConnectionManager.main(Exi
mConnectionManager.java:737)

C:\Program Files\Symantec\OpsCenter\server\bin>view_exportimport.bat -i -f e:\Da
ta\Scripts\output\view_create\test.csv --type csv -l e:\Data\Scripts\output\view
_create\importlog\log.txt -v 8

 

and from the log file:

Dec 9, 2016 11:06:03 AM| Ignoring line [2]: Expecting tree type display name but found a comma
Dec 9, 2016 11:06:03 AM| Beginning Import of View: C O R P a l l
Dec 9, 2016 11:06:03 AM| Fetching tree: C O R P a l l
Dec 9, 2016 11:06:03 AM| Creating new tree: C O R P a l l
Dec 9, 2016 11:06:03 AM| ViewException: Given tree type is invalid. Tree name : C O R P a l l (Given tree type is invalid. Tree name : C O R P a l l) Throwable: 'Given tree type is invalid. Tree name : C O R P a l l' (Stack trace on following lines)
com.symantec.nbu.paf.agent.view.ViewAgent.createTree(ViewAgent.java:195)
com.symantec.nbu.paf.portal.view.ViewPortal.createTree(ViewPortal.java:78)
com.symantec.nbu.nom.goodies.exim.comm.EximCommunicationManager.createTree(EximCommunicationManager.java:1958)
com.symantec.nbu.nom.goodies.exim.DelimitedFileImportExport.importView(DelimitedFileImportExport.java:237)
com.symantec.nbu.nom.goodies.exim.comm.EximConnectionManager.main(EximConnectionManager.java:737)
Dec 9, 2016 11:06:03 AM| Getting all trees from server

 

 

From what i have read in the opscenter appendix D and the technote, i think this should work.

https://www.veritas.com/support/en_US/article.000050213 

 

Thoughts?

 

2 REPLIES 2

richard_w2
Level 3
Partner

From Forsythe:  Try capitalizing the "C" in "client".

The capitalization on the word client did not matter.  

 

I got past the first problem.   The input file was in unicode, and needed to be ascii.

 

Now i am getting mulitple lines of:

Dec 12, 2016 11:19:46 AM| Host "wcw00051" at line [0] was not found

But the host does exist as that name, in that case.   I can search opscenter jobs for that client and find it.