Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - powergadget : detect service is down

Reply
 
Old 01-16-2008   #11 (permalink)
Marco Shaw [MVP]
Guest


 
 

Re: powergadget : detect service is down

IT Staff wrote:
Quote:

> yeap i got the concepts.
>
> If i have a list of computers to ping, can i have a *group gadget* or one
> gadget for every single machine ?
out-gauge doesn't seem to support the group parameter like the others
do. Group allows you to put a bunch of gadgets together and just have
to click on a little button to switch between different gauges.

From out-chart help, the group parameter:

"Allows you to create the chart window as a separate process and assigns
an ID that allows multiple charts to share the same window."

I might ask PowerGadgets about adding group support to out-gauge.

Marco

My System SpecsSystem Spec
Old 01-16-2008   #12 (permalink)
IT Staff
Guest


 
 

Re: powergadget : detect service is down

thks


"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:eOdFs2KWIHA.748@xxxxxx
Quote:

> IT Staff wrote:
Quote:

>> yeap i got the concepts.
>>
>> If i have a list of computers to ping, can i have a *group gadget* or one
>> gadget for every single machine ?
>
> out-gauge doesn't seem to support the group parameter like the others do.
> Group allows you to put a bunch of gadgets together and just have to click
> on a little button to switch between different gauges.
>
> From out-chart help, the group parameter:
>
> "Allows you to create the chart window as a separate process and assigns
> an ID that allows multiple charts to share the same window."
>
> I might ask PowerGadgets about adding group support to out-gauge.
>
> Marco

My System SpecsSystem Spec
Old 01-17-2008   #13 (permalink)
Marco Shaw [MVP]
Guest


 
 

Re: powergadget : detect service is down

Marco Shaw [MVP] wrote:
Quote:

> IT Staff wrote:
Quote:

>> yeap i got the concepts.
>>
>> If i have a list of computers to ping, can i have a *group gadget* or
>> one gadget for every single machine ?
>
> out-gauge doesn't seem to support the group parameter like the others
> do. Group allows you to put a bunch of gadgets together and just have
> to click on a little button to switch between different gauges.
>
> From out-chart help, the group parameter:
>
> "Allows you to create the chart window as a separate process and assigns
> an ID that allows multiple charts to share the same window."
>
> I might ask PowerGadgets about adding group support to out-gauge.
>
> Marco
Actually, it isn't documented but works:

PSH>"test"|out-gauge -name test -type digital -group testing
PSH>"123"|out-gauge -name 123 -type digital -group testing

Marco
My System SpecsSystem Spec
Old 01-17-2008   #14 (permalink)
IT Staff
Guest


 
 

Re: powergadget : detect service is down

yes it works ..hahaha ...and probably they need to document more.

BTW, do u foresee when is the next version of powergadget coming ?


"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:%23IMEraQWIHA.2368@xxxxxx
Quote:

> Marco Shaw [MVP] wrote:
Quote:

>> IT Staff wrote:
Quote:

>>> yeap i got the concepts.
>>>
>>> If i have a list of computers to ping, can i have a *group gadget* or
>>> one gadget for every single machine ?
>>
>> out-gauge doesn't seem to support the group parameter like the others do.
>> Group allows you to put a bunch of gadgets together and just have to
>> click on a little button to switch between different gauges.
>>
>> From out-chart help, the group parameter:
>>
>> "Allows you to create the chart window as a separate process and assigns
>> an ID that allows multiple charts to share the same window."
>>
>> I might ask PowerGadgets about adding group support to out-gauge.
>>
>> Marco
>
> Actually, it isn't documented but works:
>
> PSH>"test"|out-gauge -name test -type digital -group testing
> PSH>"123"|out-gauge -name 123 -type digital -group testing
>
> Marco

My System SpecsSystem Spec
Old 01-17-2008   #15 (permalink)
IT Staff
Guest


 
 

Re: powergadget : detect service is down

> $computer+" is up"
Quote:

> }
> else
> {
> $computer+" is down"
Can i put some colors into it ? Otherwise i had to follow the powergadget
default color which is not bold enough to view.





"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:ePaekS3VIHA.5348@xxxxxx
Quote:

>
Quote:

>> I can either:
>> 1. Provide you .NET code to call from PowerShell to do the same thing.
>> 2. Help you do that digital gauge that might just say "UP" or "DOWN".
>
> #1:
> PSH> ./ping|out-gauge -type digital
> PSH> get-content ping.ps1
> $computer="localhost"
>
> $ping= new-object System.Net.NetworkInformation.Ping
> $response=$ping.send($computer)
>
> if ($response.Status -eq "Success")
> {
> $computer+" is up"
> }
> else
> {
> $computer+" is down"
> }
>
> #2:
> Using .NET to get a random number:
> PSH> $rand=new-object System.Random
> PSH> $rand.Next(0,5) <--Gives a random number, only 0,1,2,3 or 4
> 3
> PSH> $rand.Next(0,5)
> 4
> PSH> $rand.Next(0,5)
> 1

My System SpecsSystem Spec
Old 01-18-2008   #16 (permalink)
Marco Shaw [MVP]
Guest


 
 

Re: powergadget : detect service is down

IT Staff wrote:
Quote:
Quote:

>> $computer+" is up"
>> }
>> else
>> {
>> $computer+" is down"
>
> Can i put some colors into it ? Otherwise i had to follow the powergadget
> default color which is not bold enough to view.
Not sure I follow, but 'help out-gauge -full' says this about out-gauge
parameters:

....
-Size [<System.String>]
Sets the gauge's size in pixels.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
....

Also the .chm help file mentions there's a "-appearance_color" parameter
that takes values like "blue", "green", etc.

What exactly are you looking for?
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Powergadget version PowerShell
Powergadget : get-content of directory PowerShell
powergadget administrator scenarios PowerShell
Re: powergadget : how to pass parameters PowerShell
Powergadget - Out-Line PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46