Wednesday, February 28, 2007

RSS Reader - Revisited

I did some changes in RSS Reader code which I previously posted, now I have added hyperlink to the title of the link, in case I like it, I will click the link to get the page.

$z=@()
$f=”
$j=”

$para=”


$hrline=”



$HTMLfile=new-item -type file “rssstuff.html” -force
Import-Csv rsslinks.csv | %{
$a=([xml](new-object net.webclient).downloadstring($_.links)).rss.channel.item | sort -desc | select -first 5
add-content $HTMLfile $_.topic
$A | %{

$z=$para+$f+$_.link+$g+$_.title+$J+$para
add-content $HTMLfile $z
}
add-content $HTMLfile $hrline
}

I have used CSV file, for playing around with title and topics of RSS’s xml file.

topic,links
India,http://www.rediff.com/rss/inrss.xml
US,http://www.rediff.com/rss/usrss.xml
NEWS,http://www.rediff.com/rss/newsrss.xml
International,http://www.rediff.com/rss/intnewsrss.xml
Get-Ahead,http://www.rediff.com/rss/getaheadrss.xml
Information You Can Use,http://www.rediff.com/rss/iycurss.xml
Business,http://www.rediff.com/rss/moneyrss.xml
Cricket,http://www.rediff.com/rss/cricketrss.xml
Sports,http://www.rediff.com/rss/sportsrss.xml
Movies,http://www.rediff.com/rss/moviesrss.xml
Interviews,http://www.rediff.com/rss/interviewsrss.xml

Now the output you get it here

Sunday, February 18, 2007

Storage KB Articles for MSCluster

 

174617

Chkdsk runs while running Microsoft Cluster Server Setup

176970

Run the CHKDSK /F Command on a Shared Cluster Disk

250355

Antivirus Software May Cause Problems with Cluster Services

280353

How to Change Quorum Disk Designation

237853

Dynamic Disk Configuration Unavailable for Server Cluster Disks

259237

Troubleshooting Event ID 9, 11, and 15 on Cluster Servers

223023

Enhanced Disk Resource Private Properties Using Cluster Server

263590

How to Extend the Space of Existing Shared Disks with Windows Clustering

224508

How to Migrate Dfs Root Configuration to a Windows 2000 Cluster

224969

How to: Configure Event Log Replication in Windows 2000 Cluster Servers

226108

Cannot Place Swap File on a Windows NT Cluster Shared Disk

238137

Considerations when you create clustered file shares on a Windows 2000 or Windows Server 2003 server cluster

249194

MSCS/Cluster Does Not Form with Error Messages 170 and 5086

248998

How to Properly Restore Cluster Information

254219

Security Considerations When Implementing Clustered File Shares

256926

Implementing Home Folders on a Server Cluster

257897

MSCS printer shares may not come online if quorum log is too small

259243

How to set the startup value for a resource on a clustered server

262797

Reparse Point Support in Windows 2000-Based Clusters

269137

Some Cluster Server File Share Resources Are Not Available

280125

Cluster Administrator Switches for Connecting to a Cluster

278365

How to Configure Disk Quotas for a Shared Disk in a Cluster

280743

Windows Clustering and Geographically Separate Sites

278710

No Global Groups Are Available Creating File-Share Resource Permissions in Cluster Administrator

278951

The Cluster Internet Protocol Address May Not Come Online After the Quorum Disk Is Corrupted

284838

How to Create a Server Cluster File Share with Cluster.exe

293778

Multiple-Path Software May Cause Disk Signature to Change

245762

Recovering from a Lost or Corrupted Quorum Log

257389

Microsoft Cluster Server May Not Share Folders Automatically

223023

Enhanced Disk Resource Private Properties Using Cluster Server

259267

Microsoft Cluster Service Installation Resources

WINDOWS 2003

283715

The Features of the Local Quorum Resource on Windows Server 2003 Cluster

284134

Server Clusters Do Not Support GPT Shared Disks

245762

Recovering from a Lost or Corrupted Quorum Log

175761

Dynamic vs. Basic Storage in Windows 2000

198513

Clustering Cannot Determine If a Shared Disk Is Working Properly

251186

Best Practices for NTFS Compression

290987

Error 3 When Creating a File Share on a Cluster with the Application Wizard

302539

How to Troubleshoot Printing Issues on a Windows Server 2003 Cluster

301647

Cluster Service improvements for Storage Area Networks (SANs)

304415

Support for Multiple Clusters Attached to the Same SAN Device

306640

A Removed Disk Can Have Its Corresponding Cluster Resource Started

312090

Cannot Use 32-Bit Resources on a 64-Bit Server Cluster

318534

Best Practices for Drive-Letter Assignments on a Server Cluster

280297

How to Configure Volume Mount Points on a Clustered Server

296799

How to Configure Windows Clustering Groups for Hot Spare Support

301588

How to Use DFS on Server Cluster to Maintain a Single Namespace

302829

Cluster Service Does Not Remove File Share Entries from LANMANSRVR

304736

How to Extend the Partition of a Cluster Shared Disk

310072

Adding support for more than eight LUNs in Windows Server 2003 and Windows 2000

305547

Support for Booting from a Storage Area Network (SAN)

1LooksAlive is a cursory status check that runs every 5 seconds (default). This routine simply checks that the disk status is not marked failed. LooksAlive is a cursory status check that runs every 5 seconds (default). This routine simply checks that the disk status is not marked failed. IsAlive is a more thorough check and occurs every 60 seconds (default). This routine checks that the disk status is not marked failed. If status is not failed, then FindFirstFile runs on the root of the disk to make sure the file system is still mounted and the disk is accessible

 

Saturday, January 20, 2007

Cluster file Share permission

X:
MD ClusterFS
cluster. res "ClusterFS" /create /group:"Disk Group 1" /type:"File Share"
cluster . res "ClusterFS" /priv path="X:\ClusterFS"
cluster . res "ClusterFS" /priv Sharename=ClusFileShare
cluster . res "ClusterFS" /priv Remark="This is a File Share"
cluster . res "ClusterFS" /prop Description="This is a Clustered Share"
cluster . res "ClusterFS" /priv security=Domain\User,grant,c:security
cluster . res "ClusterFS" /priv ShareSubDirs=1
cluster . res "ClusterFS" /AddDep:"Disk X:"
cluster . res "ClusterFS" /AddDep:"Network Name"
cluster . res "ClusterFS" /On

CLUSTER.EXE . (DOT MEANS CURRENT NODE) "CLUSTERFS" CLUSTERNAME / AND SWITCHES


cluster . res "ClusterFS" /Create /Group:"Disk Group 1" /Type:"File Share"
This creates the File Share resource in the cluster group named "Disk Group 1". Note: You do not want to put anything into, or out of the default Cluster Group.


cluster . res "ClusterFS" /priv Path="X:\ClusterFS"
This sets the local path to the file share to X:\ClusterFS. Verify that the path exists, and that it is accessible.


cluster . res "ClusterFS" /priv ShareName=ClusFileShare
This sets the share name for the resource, and is the name that clients will use to connect to.


cluster . res "ClusterFS" /priv Remark="This is a File Share"
This sets the remarks for the file share. The remark is what the client will see when browsing the virtual server.


cluster . res "ClusterFS" /prop Description="This is a Clustered Share"
This gives the resource a description in Cluster Administrator. This name is only for identification in CluAdmin.


cluster . res "ClusterFS" /priv security=Domain\User,grant,c:security
This gives the user account "User" from domain "Domain" change share level rights to the File Share resource.
Access types are grant, deny, set, or revoke. An access mask is required for the types grant, deny, or set. Access masks are "R" for read, "C" for change, and "F" for full.
This can also be used to grant multiple users rights at the same time, here is the syntax for the security switch:

Security=Domain\User1,grant,C,Domain\User2,revoke,everyone,set,F:security


cluster . res "ClusterFS" /priv ShareSubDirs=1
This sets the file share to dynamic (which translates to "share all subdirectories"). You will need to omit this line if you are creating a standard file share.


cluster . res "ClusterFS" /AddDep:"Disk X:"
This makes the File Share resource dependent on the Physical Disk resource for disk X:\, on which the file share resides.


cluster . res "ClusterFS" /AddDep:"Network Name"
This makes the File Share resource dependent on a Network Name resource. This needs to be an already existing Network Name resource.


cluster . res "ClusterFS" /On
This brings the newly created File Share resource online.

More information or I would say reference this KB article http://support.microsoft.com/?kbid=284838

Have a Look at below mentioned cluster KB, worth Reading

Recovering from a lost or corrupted quorum log

Thursday, January 18, 2007

Cluadmin tips

You know you can open cluadmin without knowing the clustername Here is how

Start > Run > cluadmin IPADDRESS  or

Start > Run > cluadmin Hostname(NodeName)

Also you know if cluadmin hangs it doesn;t mean that anything is wrong with the cluster but something is stopping it from loading it. I will let you know how to find out how to find out the stuff. Whatsoever you confirm if cluster is fine

open cmd prompt and type in following:

cluster /cluster:Clustername res will give all  information about resources.

Friday, January 12, 2007

SNTP

As and When I know

A list of the Simple Network Time Protocol (SNTP) time servers that are available on the Internet could be found at MS . And do you know every country has NTP Server, you wanna know what you country is, in.pool.ntp.org for India and for Singapore SG.pool.ntp.org

You performance counters are corrupt, unload them. It should be evident by eventid:2003

1. Open a your powershell window.

2. Type unlodctr <ServiceShortName> and press Enter, where <ServiceShortName> is the service name, like W3SVC.

Technorati tags: , ,