Microsoft Office SharePoint Server 2007 includes the Stsadm tool for command-line administration of Office SharePoint Server 2007 servers and sites. Stsadm is located at the following path on the drive where SharePoint Products and Technologies is installed: %COMMONPROGRAMFILES%\microsoft shared\web server extensions\12\bin. You must be an administrator on the local computer to use Stsadm.Stsadm provides a method for performing the Office SharePoint Server 2007 administration tasks at the command line or by using batch files or scripts. Content database Operations: Add content db: stsadm.exe -o addcontentdb -url -databasename [-databaseserver ] [-databaseuser ] [-databasepassword ] [-sitewarning ] [-sitemax ]
Merge content dbs: stsadm.exe -o mergecontentdbs -url -sourcedatabase destinationdatabasename [-operation <1,>] [-filename ] Where operation is: 1. Analyze (default) 2. Full database merge 3. Read from file Trim audit log:stsadm -o trimauditlog -url -enddate -databasename [-databaseserver]
Stsadm operations for Webparts: We creat customized web parts in .NET (sharepoint) for our pecific needs where out of box web parts do not meet our requirements. Microsoft Office SharePoint Server 2007 includes the Stsadm tool for command-line administration of Office SharePoint Server 2007 servers and sites. Once the web part is ready, we need to add and deploy this before use, here are the stsadm command line operations for Web Parts. Add Web part : addwppack stsadm.exe -o addwppack -filename [-lcid ] [-url ] [-globalinstall] [-force] [-nodeploy] stsadm.exe -o addwppack -name [-lcid ] [-url ] [-globalinstall] [-force]
Delete Web part : deletewppack stsadm.exe -o deletewppack -name [-lcid ] [-url ]
Deploy Web part : deploywppack: stsadm.exe -o deploywppack -name [-url ] [-time
No comments:
Post a Comment