![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | powergadget : detect service is down I know how to write a script that detects whether service is up or down. What gadget shld i use to display service is up or down ? i just want to detect one single service .... |
My System Specs![]() |
| | #2 (permalink) |
| | Re: powergadget : detect service is down IT Staff wrote: Quote: > I know how to write a script that detects whether service is up or down. > > What gadget shld i use to display service is up or down ? > > i just want to detect one single service .... > > > http://powergadgets.com/csPg/forums/...hread.aspx#604 If you check the PG built-in samples, there's also a demo using computers to indicate their status by either red or green (or similar). Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #3 (permalink) |
| | Re: powergadget : detect service is down traffic_light gadget not working. does not display any color ...is there anything i did wrong ? "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message news:uWPANipVIHA.2000@xxxxxx Quote: > IT Staff wrote: Quote: >> I know how to write a script that detects whether service is up or down. >> >> What gadget shld i use to display service is up or down ? >> >> i just want to detect one single service .... >> >> >> > Good question. One possibility is a "traffic light" gadget I developed: > http://powergadgets.com/csPg/forums/...hread.aspx#604 > > If you check the PG built-in samples, there's also a demo using computers > to indicate their status by either red or green (or similar). > > Marco > > -- > Microsoft MVP - Windows PowerShell > http://www.microsoft.com/mvp > > PowerGadgets MVP > http://www.powergadgets.com/mvp > > Blog: > http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #4 (permalink) |
| | Re: powergadget : detect service is down actually traffic light may not be necessary, how about using digital panel to state "1" as service is uo, "0" means service down ? "IT Staff" <jkklim@xxxxxx> wrote in message news:eXzv0rxVIHA.5132@xxxxxx Quote: > traffic_light gadget not working. > > does not display any color ...is there anything i did wrong ? > > > "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message > news:uWPANipVIHA.2000@xxxxxx Quote: >> IT Staff wrote: Quote: >>> I know how to write a script that detects whether service is up or down. >>> >>> What gadget shld i use to display service is up or down ? >>> >>> i just want to detect one single service .... >>> >>> >>> >> Good question. One possibility is a "traffic light" gadget I developed: >> http://powergadgets.com/csPg/forums/...hread.aspx#604 >> >> If you check the PG built-in samples, there's also a demo using computers >> to indicate their status by either red or green (or similar). >> >> Marco >> >> -- >> Microsoft MVP - Windows PowerShell >> http://www.microsoft.com/mvp >> >> PowerGadgets MVP >> http://www.powergadgets.com/mvp >> >> Blog: >> http://marcoshaw.blogspot.com > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: powergadget : detect service is down IT Staff wrote: Quote: > traffic_light gadget not working. > > does not display any color ...is there anything i did wrong ? Marco |
My System Specs![]() |
| | #6 (permalink) |
| | Re: powergadget : detect service is down no ... there is no cmdlet get-random ... "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message news:%23d9jKFyVIHA.4712@xxxxxx Quote: > IT Staff wrote: Quote: >> traffic_light gadget not working. >> >> does not display any color ...is there anything i did wrong ? > You tried to change anything at all in the zip file to get it to run? > > Marco |
My System Specs![]() |
| | #7 (permalink) |
| | Re: powergadget : detect service is down IT Staff wrote: Quote: > no ... > > there is no cmdlet get-random ... > I can either: 1. Provide you .NET code to call from PowerShell to do the same thing. or 2. Help you do that digital gauge that might just say "UP" or "DOWN". Pick #1 or #2 or both! |
My System Specs![]() |
| | #8 (permalink) |
| | Re: powergadget : detect service is down both. i would like to learn from you, mr MVP :-) "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message news:eG5CjPyVIHA.4448@xxxxxx Quote: > IT Staff wrote: Quote: >> no ... >> >> there is no cmdlet get-random ... >> > Oops! That comes from www.codeplex.com/powershellcx. > > I can either: > 1. Provide you .NET code to call from PowerShell to do the same thing. > or > 2. Help you do that digital gauge that might just say "UP" or "DOWN". > > Pick #1 or #2 or both! |
My System Specs![]() |
| | #9 (permalink) |
| | Re: powergadget : detect service is down 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". 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 Specs![]() |
| | #10 (permalink) |
| | Re: powergadget : detect service is down 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 ? "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 Specs![]() |
![]() |
| 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 | |||