[msmom] Help with PS [jf0-ds]
-----Original Message-----
From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf
Of Nepal, Santosh
Sent: Friday, July 31, 2009 3:19 PM
To: msmom@lists.myitforum.com
Subject: RE: [msmom] Help with PS
I am trying to reformat the snmp trap to a log file. Here is output written
by the perl module which I can't seem to get to work from powershell.
SY2|CICS|ENDED|CICCPT01|02:15:39|CICCPT01 HAS ENDED
Regards,
Santosh Nepal
-----Original Message-----
From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf
Of Marco Shaw
Sent: Friday, July 31, 2009 2:02 PM
To: msmom@lists.myitforum.com
Subject: Re: [msmom] Help with PS
I'm in a hurry right now, so I can't help much.
With #2... What exactly are you trying to accomplish?
Marco
On Fri, Jul 31, 2009 at 3:54 PM, Nepal,
Santosh wrote:
> I am trying couple different things using powershell and getting stuck.
>
>
>
> 1. I want to extract all group members from a group. For example I
> have a group with different operating systems as member on them. When I
> extract the member I can the operating system version like Windows 2008
but
> unable to extract the server name within that group. Anyone done this
> before?
>
> 2. I am trying to get the following script to work but unable to do
> so. Please help.
>
> Param($mainframe,$message)
>
> $date = Get-Date
>
> $weekday = $date.DayOfWeek
>
> $file = "C:\csg\var\TestAlerts." + $weekday + ".log"
>
> $outstring = "$mainframe" + "|" + "$message"
>
> write-host $mainframe
>
> write-host $message
>
> write-host $file
>
>
>
> Regards,
>
> Santosh
>
>
>
> ==============
> Missed an email? Check out the list archive:
>
http://myitforum.com/cs2/blogs/momlist/--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director -
http://www.powershellcommunity.org*Blog -
http://marcoshaw.blogspot.com==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/
Trackbacks
No Trackbacks
Comments
No Comments