Search This Blog

Loading...

Tuesday, 15 July 2014

How to delete files from a QNAP NAS using SSH

Sometimes a QNAP NAS can get so full you cannot access it via SMB or delete files via the Web Management. Here is how to remove files via SSH.

Login to the Device via SSH using putty

media_1397129217652.png
Open putty and connect to the NAS via the Management IP address using SSH

Login

media_1397129239523.png
Login to the device with Admin User only

List the Mount Points

media_1397129646501.png
Use the command df to show the mount points on the disks. On a QNAP NAS look for the folders /share/MD0_DATA

Change Folder

media_1397129728042.png
Use the command cd /share/MD0_DATA to change to that folder

Show Shares

media_1397129733495.png
You now show the shares on your QNAP NAS with the command ls

Change to Folder to be Deleted

media_1397129750088.png
To delete a folder, change to the parent folder and then you are ready for remove the folders and files

Remove Folders

media_1397131147295.png
You can then remove the folders and files with the command
rm -rf /share/MD0_DATA/ShareName/Folder

Confirm the Disk Space Reduction

media_1397129898597.png
In the Web Management GUI you can now confirm the disk space as it reduces

Cannot access Network Shares on Windows 8

I had an instance where I had a Windows 8 laptop with a local Administrator but when I tried to browse to the C$ share I was displayed the error "multiple connections are not allowed"  from command line I got an Access Denied message.  All this was even though I was using the right credentials.

It turns out to be a UAC filtering policy in Windows 8 that blocks access unless you use Remote Desktop to the OS.

The solution is in this Microsoft KB article http://support.microsoft.com/kb/951016

A big thanks to Helge Klein for this one.

http://helgeklein.com/blog/2011/08/access-denied-trying-to-connect-to-administrative-shares-on-windows-7/

Thursday, 3 July 2014

Hosted Exchange - How to check if a Mailbox allows Outlook Anywhere

Some Mailboxes in Hosted Exchange may not allow Outlook Anywhere, this is when they have been created as Basic Users and have been upgraded to Standard Users. The guide shows how to check this and how to rectify this.

#1 Get-CASMailbox

media_1404378896854.png

Open the Exchange Management Shell and run the commandlet Get-CASMailbox user.name@domain.com | FL

This will now display all the properties for the CAS Mailbox.

#2 MAPIBlockOutlookRpcHttp

media_1404378902317.png

Check the property MAPIBlockOutlookRpcHttp if this is set to True then the user is blocked from Outlook Anywhere.

#3 Change Setting

media_1404378944523.png

Extend the commandlet to change the setting for the mailbox using the boolean setting True False

Get-CASMailbox user.name@domain.com | Set-CASMailbox -MAPIBlockOutlookRpcHttp $false

#4 Check Change

media_1404378958112.png

Run the Get-CASMailbox user.name@domain.com and check the setting has now changed to False

Monday, 30 June 2014

UPS - How to configure an APC UPS Management Card

Configuring a APC UPS Management card is not difficult you just need to be patient and make sure it is all done right.

#1 Login

media_1404151121072.png

The default login for an APC is apc and apc

#2 Status

media_1404151154912.png

Once logged on you can see the Status of the device, the internal temperature and runtime are important to note.

#3 Configuration - Power Settings

media_1404151208866.png

Choose the Configuration, Power Settings option and then set the Rated Output Voltage to your country voltage, this is 240V in the UK.

#4 Configuration - Shutdown

media_1404151235583.png

Choose the Configuration, Shutdown option and then for Low Battery Duration select a time no less than 10 minutes otherwise you will not have enough time to shut down your servers before the UPS discharges.

#5 Administration - Local Admin

media_1404151298920.png

Choose the Administration, Local Users, Administrator option and set the User Name to ups-admin and set a password.

#6 Administration - Device

media_1404151311279.png

Choose the Administration, Local Users, Device option and uncheck the Access Box to disable the Device User.

#7 Administration - Read Only

media_1404151336073.png

Choose the Administration, Local Users, Read Only option and set the username to ups-read and set a password.

#8 Configuration Auto Log Off

media_1404151353678.png

Choose the Administration, Auto Log Off option and set the timeout to 10.

#9 DNS

media_1404151389019.png

Choose the Administration, Network, DNS option and then enter your DNS Servers, Host Name and Domain Name.

#10 SMTP Server

media_1404151488053.png

Choose the Administration, Notification, Email, Server option and then enter your SMTP Smart Host and From Address.

#11 Recipients

media_1404151520529.png

Choose the Administration, Notification, Email, Recipients option and enter your email address, change the SMT P Server to recipient.

#12 Test Email

media_1404151547593.png

Choose Administration, Notification, Test and then test to make sure your notification works.

#13 Identification

media_1404151580532.png

Choose the Administration, General, Identification option and enter the details.

#14 Time

media_1404151604931.png

Choose the Administration, General, Date Time option and set the Time Zone, set the NTP Server.

#15 Daylight Savings

media_1404151631480.png

Choose the Administration, General, Daylight Savings option and set the Traditional Daylight Savings.

#16 Date Format

media_1404151641223.png

Choose the Administration, General, Date Time, Date Format and set your regional format.

Tuesday, 24 June 2014

Share Point Foundation 2010 - How to Associate Seach to a Content Database

#1 Application Management

media_1403609272106.png

Choose the Manage Content Databases from the Application Management.

#2 Databases

media_1403609279333.png

From the Database Option choose Manage Content Databases

#3 Choose Database

media_1403609285128.png

In the list choose the Database you want to configure.

#4 Choose Search Server

media_1403609298069.png

From the Search Server drop down you can choose the Search Server that will manage the search on your Content Database.

#5 Choose Timer Job

media_1403609305836.png

Choose from the Server for Timer Jobs the server that will manage the Time Jobs.

SharePoint Foundation 2010 - How to Backup and Restore a Site

#1 Backup Site

media_1403605799733.png

Open Central Administration and then choose Perform a Backup.

#2 Select Site to Backup

media_1403606092214.png

The Backup will show all the components in the Farm, choose the Site Collection that you want to backup.

#3 Select Backup Type and Location

media_1403606109783.png

Choose the Type of Backup to Full and then the location of the backup in a UNC Path. Click Start Backup.

#4 Backup Progress

media_1403606646738.png

The Backup will now progress and once complete you will see the Phase set to Completed.

#5 Files

media_1403606655639.png

The Backup will generate files as shown here, a folder and an XML file is generated.

#6 Restore the Site Collection

media_1403606774530.png

On the new Share Point Server choose the option Restore from Backup.

#7 Restore Location

media_1403606801790.png

Enter the Backup Location from before and the click refresh, the Site Backup available will be shown. Now select the Site and Click Next.

#8 Restore Site

media_1403606847078.png

From the Restore Options choose the Site you want to restore.

#9 Restore Permissions

media_1403607030485.png

When you restore a Site you are asked if you want to restore to a new configuration or the same configuration. The new configuration is for a new Site Collection, the same is for a restore over the existing Site Collection.

Enter the credentials fo the Farm Share Point Account.

#10 Site Names

media_1403607078332.png

If you are restoring a new configuration, choose a name for the Site and add a URL for the Site. I have chosen http://sharepoint.domain.com

For the Database choose the location of the MDF and LDF files, the Database name in SQL and the SQL Server Instance.

Click Restore

#11 Restore Process

media_1403607128290.png

The Restore will now start.

#12 Restore Completed

media_1403607406675.png

When the Restore is complete the Phase will show Completed.

#13 Site Collections

media_1403607465452.png

Open the Site Collections and you should now see your restored Share Point Site.

Saturday, 21 June 2014

How to - How to Install Exchange Server 2013 CU3 Pre Requisites

#1 Server Manager

media_1403346701715.png

Install with Power Shell the Server Manager.

#2 Windows Features

media_1403346740153.png

Install the Windows Features required using Power Shell from http://technet.microsoft.com/en-us/library/bb691354(v=exchg.150).aspx

#3 Restart

media_1403346905459.png

When the Windows Features are installed you will see the Success message, Restart the Server.

#4 Windows Management Framework 3.0

media_1403346975575.png

Install Windows Management Framework 3.0 http://www.microsoft.com/en-us/download/details.aspx?id=34595

#5 Unified Communications Managed API

media_1403347123193.png

Install the Unified Comms Managed API Runtime. http://www.microsoft.com/en-us/download/details.aspx?id=34992

#6 Windows Identity Foundation

media_1403347901397.png

Install the Windows Identity Foundation http://support.microsoft.com/default.aspx?kbid=974405

#7 Hotfix for RCP over HTTP

media_1403348001697.png

#8 Hotfix for Insecure Library

media_1403348135968.png

#9 Restart

Restart the server so it is ready for installation.