Re: [wpkg-users] createReport.js - example please

2009-09-03 Thread Pendl Stefan
>
> Pendl Stefan wrote:
> >> Can somebody give a little example for the createReport.xml file?
> >>
> >> I always get a "invalid procedure call argument" at line 435
> >> (no, sorry I cannot debug this in reasonable time :-((
> >>
> >> I use \\server\xmlocation to save all wpkg.xml files into
> (works) and
> >> therefore I have just adapted the first 2 entries "BaseDir"
> >> (server) and
> >> "StateStorePath" (xmlocation)
> >> But it does not work.
> >
> > You will have to use the following:
> >
> > \\server\xmlocation
> >
> > If your WPKG root folder is something like
> \\server\wpkgroot then you need the following:
> >
> > \\server\wpkgroot
> >
> That was easy! And kind of obvious ...
> I just did not thought that the wpkg base was needed. Works well now!

I have spent some time to figure this out too, but it did not take long.
Including an example in the manual would have cleared things up, descriptions 
do not work properly some times ;-)

> I will have a look at the script automation. Thanks Stefan
> for answering ahead ;-)
>

I use this script for manual generation of two reports, but I will create a 
scheduled task to create a report each day.
I think about including a simple JavaScript in the HTML template to hide 
certain rows or show only specific rows as is possible with the Excel report.
This way I can omit creating the stripped down version.

---
Stefan
-
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] createReport.js - example please

2009-09-03 Thread Radim

Pendl Stefan wrote:

Can somebody give a little example for the createReport.xml file?

I always get a "invalid procedure call argument" at line 435
(no, sorry I cannot debug this in reasonable time :-((

I use \\server\xmlocation to save all wpkg.xml files into (works) and
therefore I have just adapted the first 2 entries "BaseDir"
(server) and
"StateStorePath" (xmlocation)
But it does not work.

part of my createReport.xml:


   
  server
  xmlocation
  true




You will have to use the following:

\\server\xmlocation

If your WPKG root folder is something like \\server\wpkgroot then you need the 
following:

\\server\wpkgroot
  

That was easy! And kind of obvious ...
I just did not thought that the wpkg base was needed. Works well now!

---

I have the wpkg-create-report folder located under tools\3rd-party and since I 
have a testing and a production installation, I use the following batch script 
to call createreport.js:

Rem---code start (watch for line wraps)
@rem
@echo off

set BaseDir=%~dp0..\..\..

echo.
echo Deleting Setup Hosts ...
echo.
for %%F in ( "%BaseDir%\status\*_setup.xml" ) do del /f /q "%%~F" && echo Deleted 
"%%~F" ...

echo.
echo Creating Full Report ...
title Creating Full Report ...
echo.
cscript.exe -Nologo createReport.js -wpkgBaseDir:"%BaseDir%" 
-clientStateStorePath:"%BaseDir%\status"

echo.
echo.
echo Creating Report of Hosts needing Changes ...
title Creating Report of Hosts needing Changes ...
echo.
cscript.exe -Nologo createReport.js -wpkgBaseDir:"%BaseDir%" 
-clientStateStorePath:"%BaseDir%\status" -outputFile:"Client Status Report.[ext]" 
-packageStateFilter:"install;upgrade;downgrade;remove"

echo.
pause
Rem--code end

---
Stefan
  
I will have a look at the script automation. Thanks Stefan for answering 
ahead ;-)


Radim


-
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] createReport.js - example please

2009-09-03 Thread Pendl Stefan
>
> Can somebody give a little example for the createReport.xml file?
>
> I always get a "invalid procedure call argument" at line 435
> (no, sorry I cannot debug this in reasonable time :-((
>
> I use \\server\xmlocation to save all wpkg.xml files into (works) and
> therefore I have just adapted the first 2 entries "BaseDir"
> (server) and
> "StateStorePath" (xmlocation)
> But it does not work.
>
> part of my createReport.xml:
>
> 
>
>   server
>   xmlocation
>   true
>

You will have to use the following:

\\server\xmlocation

If your WPKG root folder is something like \\server\wpkgroot then you need the 
following:

\\server\wpkgroot

---

I have the wpkg-create-report folder located under tools\3rd-party and since I 
have a testing and a production installation, I use the following batch script 
to call createreport.js:

Rem---code start (watch for line wraps)
@rem
@echo off

set BaseDir=%~dp0..\..\..

echo.
echo Deleting Setup Hosts ...
echo.
for %%F in ( "%BaseDir%\status\*_setup.xml" ) do del /f /q "%%~F" && echo 
Deleted "%%~F" ...

echo.
echo Creating Full Report ...
title Creating Full Report ...
echo.
cscript.exe -Nologo createReport.js -wpkgBaseDir:"%BaseDir%" 
-clientStateStorePath:"%BaseDir%\status"

echo.
echo.
echo Creating Report of Hosts needing Changes ...
title Creating Report of Hosts needing Changes ...
echo.
cscript.exe -Nologo createReport.js -wpkgBaseDir:"%BaseDir%" 
-clientStateStorePath:"%BaseDir%\status" -outputFile:"Client Status 
Report.[ext]" -packageStateFilter:"install;upgrade;downgrade;remove"

echo.
pause
Rem--code end

---
Stefan
-
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users