Jump to content
Software FX Community

cosmin.onea

Members
  • Posts

    32
  • Joined

  • Last visited

Posts posted by cosmin.onea

  1. This issue was solved for the specific article scenario.

    If I have a property which is a dataset, returned by a web-service invoke, when I set -dataobject to the property I dont get anything displayed. Can you confirm it, please.

     I do something like:

    InvokeService.ps1 | out-chart -dataobject Dataset .......

    In InvokeService.ps1 I prepare the object as stated in the article.

    Thanks,

    Cosmin 

  2. Hi,

     I'm trying to call a webservice over ssl but the certificate is expired and I get:

    Invoke-WebService : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

    How can I go around this? Can we ignore the expired SSL certificate. I can do this in C# so we should have an option on the cmdlet to make this work.

     The web server runs inside the intranet and it requires windows authentication. How do I tell to Invoke-Webservice to use windows authentication?Thanks,Cosmin

  3. Thanks, it works just fine.Are these all effective things documented anywhere?

    Another question: If I have only one row in a dataset I represent on the chart when refreshing the chart, basically it adds the values to the chart generating multiple instances of the bars(in my case).I need only one instance of the bars and when refreshing the bars should be redrawn with the new values.

    Is there a way to disable this behavior also? Currently I generate an dummy row along with the real data row.

    Thanks,Cosmin 

  4. Hi,I need to draw some chart which includes negative and positive values. out-chart though is adding a secondary Y axis to the chart. Is this the out of the box behavior?How can I specify that I dont need the secondary axis and draw everything relative to the initial Y axis regardless of the serie values?Cosmin.

  5. I created another WS method that gets the parameter and it seems to work fine.

    The script looks like this:
    Invoke-Webservice -wsdl http://myserver/LiveMonitoring/MyMonitor.asmx?wsdl -method GetSingleRecordDataSet -parameters $sCode| out-chart  -Label ShortCode -values  Total -refresh 0:0:5 -topmost  -DataGrid_Visible true -Gallery gantt

     Another question though:
    The refresh generates new "Total" bars on the chart due to single line dataset. How can I have the Total bar refresh itself without creating aditional bars.

    Cosmin

  6. Hi

    I have a master script which passes a param to a drilldown script.

    The drilldown script looks like:

    $sCode = $args[0]
    Invoke-Webservice -wsdl http://myserver/LiveMonitoring/MyMonitor.asmx?wsdl -method GetDataSet | where {$_.ShortCode -eq $sCode} | out-chart  -Label ShortCode -values Total -refresh 0:0:5 -topmost  -DataGrid_Visible true -Gallery gantt

    First time it displays data but after 5 seconds it doesnt refresh and the problem is where cmdlet can not execute because the $sCode param is null.
    Is this an out-chart issue? How can I get around it?

    Cosmin.

  7. Hi,

    JuanC blogged about a new feature "Using conditional attributes" which is a great one, however if I use a drill-down script and the same -group option when I navigate between the views I lose the coloring of the bars in the parent.

    http://byfiles.storage.live.com/y1pk5FAYs_Y-GUBsrlbSfJv03vqr_9d5w_i_DMXhuUTvkl0iFkCOfvZvdwzNit9lGQxNaBiKYJ_suA

    When navigating back.....

    http://byfiles.storage.live.com/y1pk5FAYs_Y-GUrcEiCTtSeQpacnuEU29BdG021wShAYJU6J7n-a_sTX8v1APuMooLbSm9kh6xoLXY

    I'm going to have a demonstration to other people in the company. Could you address this as soon as you can, please?

    Thanks,
    Cosmin

  8. Just before invoking any powergadget in powershell you need to register it.

    To do that run the following and then try your command:add-pssnapin powergadgets

    You can have this command in the powershell profile or try to open the power shell console from the powergadgets program group: Start-> All programs-> PowerGadgets -> Powershell with powergadgets

    Hope this helps,Cosmin.

  9. I'm using 1.0.2588.21909 and the refresh works on my xp sp2 but not when using 1.0.2755.24126.

    It seems the behavior is random as on zeppex machine 21909 doesn't work.

    Get-ExecutionPolicyUnrestricted

    Or........Initially I had 21909 installed. Uninstalled and installed 2755.24126. Is there any setting or config file maybe left after uninstallation that affects the other builds?

    Cosmin. 

  10. I have a ps1 script that I run from powershell command prompt.

    in the script I have: get-wmiobject Win32_Processor | out-gauge -value LoadPercentage -refresh 0:0:1

    The gauge or chart(same thing with the chart) doesn't refresh when using PG last version. I rolled back to version 1.0.2588 and it works fine. Somewhere in the middle the refresh feature was lost. I hope it will be fixed quickly; it is something I really need.

     Cosmin. 

  11. I also investigated the distribution thing.
    It seems that I can create shortcuts and put as the command: "c:\......\powershell.exe -command \\server\share\script.ps1
    Basically the same thing as in the article you provided but instead of vbs files I'll have .lnk's.

    I will create a shared folder with all the shortcuts to all the monitoring scripts.

    Cosmin

×
×
  • Create New...