# NetBackup bppllist array

**URL:** <https://forums.powershell.org/t/netbackup-bppllist-array/6321>\
**Category:** PowerShell Help\
**Created:** [April 28, 2016, 10:14am UTC](https://forums.powershell.org/t/netbackup-bppllist-array/6321 "2016-04-28T10:14:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick-britton](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@nick-britton](https://forums.powershell.org/u/nick-britton)\
**Post date:** [April 28, 2016, 10:14am UTC](https://forums.powershell.org/t/netbackup-bppllist-array/6321/1 "2016-04-28T10:14:09Z")

</div>

I am starting to create a script to create an array or multiple arrays that i can create reports from. I am not sure of the best way to approach this. In the example below there are many lines that contain multiple fields all separated by spaces. I am thinking of a single array where i would name each field and store the data for the field in the array. But two of the problems i see with that are there can be an undermined number of clients listed and in most cases will be more than one schedule.

The way the output works is the first word is a keyword for the type of data, each space separated value after that is a field.

One thought i had was to set everything to a var for its use and create a new entry in the array for the client / schedule …Thoughts?

Example data?

CLASS oma11\_ew\_01\_fr\_2300\_30\_s _NULL_ 0 760000 187200 _NULL_  
NAMES  
INFO 13 0 0 0 _NULL_ 0 0 2147483647 0 0 0 0 0 0 0 0 0 0 1411059246 2863920C5DEC11E492FD73411F055F87 1 0 0 0 0 0 0 0 -1 0 1 0 0 0 0 3 0 6 0 0 1 0 0 0 1  
KEY _NULL_  
BCMD _NULL_  
RCMD _NULL_  
RES oma00\_ar\_den06\_dp30w\_sp _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_  
POOL NetBackup NetBackup NetBackup NetBackup NetBackup NetBackup NetBackup NetBackup NetBackup NetBackup  
FOE 0 0 0 0 0 0 0 0 0 0  
SHAREGROUP _ANY_  
DATACLASSIFICATION _NULL_  
CLIENT oma11cfswww02 Windows-x64 Windows2008 0 0 0 0 _NULL_  
CLIENT oma11cfswww01 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsts02 Windows-x64 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsts05 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsts04 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsts03 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsdoc01 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11ccfsftp01 Windows-x64 Windows2008 0 0 0 0 _NULL_  
CLIENT oma11ccfs01 Windows-x64 Windows2008 0 0 0 0 _NULL_  
CLIENT oma11cfsctx01 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsctx02 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsctx03 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsctx04 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma11cfsctx05 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma00cfsctx02 Windows-x86 Windows2003 0 0 0 0 _NULL_  
CLIENT oma00cfsctx01 Windows-x86 Windows2003 0 0 0 0 _NULL_  
INCLUDE ALL\_LOCAL\_DRIVES  
SCHED Full 0 1 604800 0 0 0 0 _NULL_ 0 0 0 0 0 0 -1 0 0 0  
SCHEDWIN 0 0 0 0 0 0 0 0 0 0 82800 25200 0 0  
SCHEDRES _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_  
SCHEDPOOL _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_  
SCHEDRL 0 1 1 1 1 1 1 1 1 1  
SCHEDFOE 0 0 0 0 0 0 0 0 0 0  
SCHEDSG _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_  
SCHED Diff 1 1 86400 0 0 0 0 _NULL_ 0 0 0 0 0 0 -1 0 0 0  
SCHEDWIN 82800 25200 82800 25200 82800 25200 82800 25200 82800 25200 0 0 82800 25200  
SCHEDRES _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_  
SCHEDPOOL _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_  
SCHEDRL 0 1 1 1 1 1 1 1 1 1  
SCHEDFOE 0 0 0 0 0 0 0 0 0 0  
SCHEDSG _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_ _NULL_

---

<div class="post-metadata">

**Author:** ![nick-britton](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@nick-britton](https://forums.powershell.org/u/nick-britton)\
**Post date:** [April 29, 2016, 3:34am UTC](https://forums.powershell.org/t/netbackup-bppllist-array/6321/2 "2016-04-29T03:34:43Z")

</div>

Here is what i have so far. The problem i have is the $schedwins gets processed twice as it should, but i need it to only run the one instance. Meaning $scheds[0] matches $schedwins[0] and so on down the iterations. What would be the bset way to handle that?

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:42pm UTC](https://forums.powershell.org/t/netbackup-bppllist-array/6321/3 "2024-05-16T20:42:35Z")

</div>

Closed on May 16, 2024, 8:42pm UTC


