- Press the Windows key + R on your keyboard to launch the “Run” dialog box.
- Type in control userpasswords2
- Press Enter. The User Accounts window will display.
- Uncheck the option “Users must enter a user name and password to use this computer”
- Click “OK”
- You will then be prompted to enter the current password and confirm it.
- Reboot your machine, your In without a password
How to configure a Trunk or Aggregate (x ports) between HP Procurve Switches
Do not connect the cable before doing those command because you can create a network storm (a loop and down your network)
Login to the switch with telnet
telnet ip_of_the_switch
type :
configure
Active the LACP
interface port_number lacp active
ie : interface 1 lacp active
setup the trunk
trunk port_number trunk_number mode
ie : trunk 1 trk1 lacp
Repeat those 2 last line for Each port in the same port
Do those command on both switches
Have Fun
Graceful Shutdown of ESXi Boxes. Use Eaton Powerware UPS
Here is the software i use for the graceful shutdown of ESXi boxes.
Choose accept and it will dnload the rpm…
Main page
http://download.mgeops.com/explore/eng/ipp/default.htm?lang=en
Problem sending large email with Entourage / Outlook (Mac) on Exchange Server. error : HTTP Error. The server cannot fulfill the request.
Had a similar problem with Entourage: 13.0.3 Web services edition and Exchange 2007 SP1
Users got:
ERROR
HTTP Error. The server cannot fulfill the request.
Explanation
Mail could not be sent. The messege has been moved to your Drafts folder.
Account name: “xxxxxxx”
Error: – 18500
Had to edit web.config (…:MicrosoftExchange ServerClientAccessexchwebews) and add <httpRuntime maxRequestLength=”30000″ /> after <system.web>, restarted IIS and that actually fixed it.
How to Test All your Exchange Connectivity (OWA, Active Sync, In / Out Email, ….)
https://www.testexchangeconnectivity.com/
Test your SPF Records, check if your email is BlackListed
This is a really powerfull tool to troubleshoot some email issue and check if your system is up and running
Use the Blacklist : This will check if you email server is listed as SPAM
Use the SPF : This will check and test your SPF record
Slow to Open Word and Excel on MAC
Start up would take about 1 minute. I have completely fixed the problem.
It seems as though the office programs hang on startup due to 2 reasons.
The first being the auto start up of the project gallery and the second is the way it renders the preview of fonts(I use “Font Book” to preview my fonts anyhow.).
Here is how to fix it:
1. Launch word
2. Go to Word>Preferences
3. Click on “General”
4. uncheck “WYSIWYG font and style menus”
5. uncheck “Show Project Gallery At Startup”
6. Quit word
7. Reopen Word
My office programs now boot in 4 seconds and run smoothly.
How to move BES database from one server to another
reference :
http://btsc.webapps.blackberry.com/btsc/viewContent.do?externalId=KB03112&sliceId=1
The BlackBerry® Enterprise Server services must be stopped during the process described in this article.
Important: Restarting certain BlackBerry Enterprise Server services might delay email message delivery to BlackBerry smartphones. For more information, see KB04789.
To move the BlackBerry Configuration Database to a new Microsoft® SQL Server® instance, complete the following tasks:
Note: In a Microsoft® Exchange environment, complete the tasks using the BlackBerry Enterprise Server service account unless otherwise stated.
- Back up the BlackBerry Configuration Database.
- Prepare the new Microsoft SQL Server.
- Restore the BlackBerry Configuration Database.
- Configure the BlackBerry Enterprise Server.
Task 1 – Back up the BlackBerry Configuration Database
To back up the BlackBerry Configuration Database, complete the appropriate steps for the environment:
Microsoft SQL Server 2000 to 2008
- Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
- Right-click the BlackBerry Configuration Database (for example, BESMgmt).
- Select Backup Database.
- Click Add to specify the Directory Name and File Name.
- Click OK to accept the settings.
- Click OK again to start the backup process.
- Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008) when the process is complete.
Microsoft SQL Server Desktop Engine (MSDE)
- From a command prompt, type osql -E and press Enter.Note: If logging in to a named instance of the Microsoft SQL Server, use the following command syntax to log in:
osql -E -S <SQL_Server_name><instance_name>
- Type the following commands in the specified order:1> backup database <BlackBerry_Configuration_Database_name> to disk = “C:<BlackBerry_Configuration_Database_name>.bak”
2> go
1> quit
- Close the command prompt.
Task 2 – Prepare the new Microsoft SQL Server
To prepare the Microsoft SQL Server, complete the following steps:
Step 1
Depending on the environment, assign the appropriate permissions.
Note: Complete this task using an account with administrator access to the new Microsoft SQL Server. Microsoft SQL Server 2005 or 2008 requires the following server role permissions: System Administrator, Database Creator.
Microsoft SQL Server 2000 to 2008
- Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
- Go to Microsoft Server Group > <SQL_Server_name> > Security.
- Right-click Logins and select New Login.
- From the General tab, click the double quotation marks ( “” ) button.
- From the Global Address List, select the name of the BlackBerry Enterprise Server service account.
- Click Add, then click OK.
- On the Server Roles tab, select Server Administrators and Database Creators.Note: In BlackBerry Enterprise Server 4.1, the System Administrator role is needed for role-based administration.
- Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
MSDE
- Log in to the new Microsoft SQL Server.
- Right-click My Computer, and click Manage.
- Expand Local Users and Groups.
- Select Groups, and open the Administrators group.
- Click Add.
- Type the name of the BlackBerry Enterprise Server service account, and click Check Name.
- Click OK, and close the Computer Management window.
Step 2
Depending on the environment, turn on the correct server protocols.
MSDE or Microsoft SQL Server 2000
- Click Start > Run.
- Type svrnetcn.
- Click OK. The Microsoft Server Network Configuration Utility opens.
- Make sure that TCP/IP and Named Pipes are both listed as protocols that have been turned on.
- Close the Microsoft Server Network Configuration Utility.
- If a protocol is turned on in step 2, restart the Microsoft SQL services.
Microsoft SQL Server 2005 Express or Microsoft SQL Server 2005
- Click Start > Microsoft SQL Server 2005 > Configuration Tools > Microsoft Server Configuration Manager > Microsoft Server 2005 Network Configuration.
- Select the Microsoft SQL Server instance that will be used for the BlackBerry Configuration Database.
- If necessary, turn on the TCP/IP and Named Pipes protocols.
- If a protocol is turned on in the previous step, restart the Microsoft SQL Server services.
Microsoft SQL Server 2008 Express or Microsoft SQL Server 2008
- Click Start > Microsoft SQL Server 2008 > Configuration Tools > SQL Server Configuration Manager.
- Expand SQL Server Network Configuration.
- Select the Microsoft SQL Server instance that will be used for the BlackBerry Configuration Database.
- If necessary, turn on the TCP/IP and Named Pipes protocols.
- If a protocol is turned on in the previous step, restart the Microsoft SQL Server services.
Step 3
Make sure that the Microsoft Server Agent service is running.
Note: This service does not exist in Microsoft SQL Server 2005 Express or Microsoft SQL Server 2008 Express.
- Open the Windows® Control Panel, then open Administrative Tools > Services.
- Make sure that the Microsoft Server Agent service is started and that the Startup type is set toAutomatic.
- Close the Services window.
Step 4
Update the BlackBerry Configuration Database schema.
Important: If the BlackBerry Enterprise Server software was installed to create a blank BlackBerry Configuration Database on a new Microsoft SQL Server instance, do not perform the following task, because the schema has already been updated.
- Download the installation package for the version of the BlackBerry Enterprise Server that is being used.
- Extract the contents of the installation package.
- Copy the Database folder to the new Microsoft SQL Server.
Note: The default location of this folder is C:Research In MotionBlackBerry Enterprise Server 4.x.xDatabase.
- Go to the Database folder and open the BESMgmt.cfg file in a text editor, such as Notepad.
- Locate the DB_NAME=BESMgmt or (DATABASE_NAME=BESMgmt) line depending on the version of the upgrade and then make sure that the name specified matches the BlackBerry Configuration Database name.
- If using a named instance of Microsoft SQL Server, change the SERVER=local line toSERVER=<SQL_Server_Name><instance_name> and close the file. Save the changes.
- From a command prompt, go to the Database directory.
- Type createdb.exe BESMgmt.cfg and press Enter.
- After the command has finished executing, close the command prompt.
Task 3 – Restore the BlackBerry Configuration Database
Depending on the environment, use one of the methods below to restore the BlackBerry Configuration Database. There are two methods available: restoring the BlackBerry Configuration Database from a backup, or detaching and re-attaching the BlackBerry Configuration Database files. The following are the steps for MSDE and Microsoft SQL Server 2000 to 2008.
Restore database method for MSDE
BlackBerry Configuration Database on a Microsoft SQL Server with the same directory structure
- Copy the BlackBerry Configuration Database backup to the C: path of the new Microsoft SQL Server.
- From a command prompt, type osql -E and press Enter.Note: When logging in to a named instance of the Microsoft SQL Server, use the following command:
osql -E -S <SQL_Server_name><instance_name>
- Type the following commands in the specified order:1> restore database <BlackBerry_Configuration_Database_name> from disk = “c:<BlackBerry_Configuration_Database_name>.bak” with recovery, replace
2> go
1> quit
- Close the command prompt.
BlackBerry Configuration Database on a Microsoft SQL Server with a different directory structure
- Copy the BlackBerry Configuration Database backup to the C: path of the new Microsoft SQL Server.
- From a command prompt, type osql -E and press Enter.Note: When logging in to a named instance of the Microsoft SQL Server, use the following command:
osql -E -S <SQL_Server_name><instance_name>
- Type the following commands in the specified order:1> restore database <BlackBerry_Configuration_Database_name> from disk = “C:<BlackBerry_Configuration_Database_name>.bak” with move “<BlackBerry_Configuration_Database_name>_data” to “<new_path>MSSQLData<BlackBerry_Configuration_Database_name>.mdf”, move “<BlackBerry_Configuration_Database_name>_log” to “<new_path>MSSQLData<BlackBerry_Configuration_Database_name>.ldf”
2> go
1> quit
Note: To determine the logical file names <BlackBerry_Configuration_Database_name>_data and<BlackBerry_Configuration_Database_name>_log for the BlackBerry Configuration Database, complete the following steps:
- On the Microsoft SQL Server hosting the BlackBerry Configuration Database, open a command prompt and type the following command:
OSQL -E or OSQL -E -S <SQL_Server_name><instance_name>
- Type the following commands in the specified order, pressing Enter after each command:1> exec sp_helpdb <BlackBerry_Configuration_Database_Name>
2> go
- The items circled in the following image are the two logical file names for the BlackBerry Configuration Database:
- Close the command prompt.
- On the Microsoft SQL Server hosting the BlackBerry Configuration Database, open a command prompt and type the following command:
Restore database method for Microsoft SQL Server 2000 to 2008
- Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
- Right-click the Databases (for example, BESMgmt).
- Select Tasks>Restore Database.
- Click From Device and browse for the .bak file.
- Select Options and ensure Overwrite the existing database is checked.
- Click OK to accept selection.
- Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008) when the process is complete.
Detach and re-attach database method for Microsoft SQL Server 2000 to 2008
- Open the Control Panel, and open Administrative Tools > Services.
- Stop each service that has a name that begins with BlackBerry.
- Log in to the existing Microsoft SQL Server.
- Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
- Right-click the BlackBerry Configuration Database name.
- Select All Tasks, and click Detach Database (see the screen shot below), or for Microsoft SQL Server 2005 or 2008, select Tasks and click Detach.
- Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
- Go to the Microsoft SQL Server Data directory and copy the MDF and LDF files.Note: The default path is C:Program FilesMicrosoft SQL ServerMSSQLData and the default filenames are BESMgmt.mdf and BESMgmt.ldf.
- Move the file copies to the new Microsoft SQL Server.
- Log in to the new Microsoft SQL Server.
- Open Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
- Right-click the BlackBerry Configuration Database name.
- Select All Tasks, then click Detach Database, or for Microsoft SQL Server 2005 select Tasksand click Detach.
- Move the files that were copied in step 8 to the Microsoft SQL Server Data directory.
- When prompted to overwrite the files, click Yes.
- In Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008), right-click the Database folder, then click All Tasks.
- Select Attach Database or for Microsoft SQL 2005 or 2008 right-click the Database folder and select Attach.
- Select the MDF file to attach, then click OK (see screen shot below).
- Close Enterprise Manager (Microsoft SQL Server 2000) or Microsoft SQL Server Management Studio (Microsoft SQL Server 2005 or 2008).
Detach and re-attach database method for MSDE
- Open the Control Panel, and open Administrative Tools > Services.
- Stop each service that has a name that begins with BlackBerry.
- Log in to the existing MSDE Server.
- From a command prompt, type osql -E and press Enter.Note: When logging in to a named instance of the Microsoft SQL Server, use the following command:
osql -E -S <SQL_Server_name><instance_name>
- Type the following commands in the specified order:1> exec sp_detach_db @dbname = “<BlackBerry_Configuration_Database_name>“
2> go
1> quit
- Go to the Microsoft SQL Server Data directory and copy the MDF and LDF files.Note: The default path is C:Program FilesMicrosoft SQL ServerMSSQLData and the default filenames are BESMgmt.mdf and BESMgmt.ldf.
- Move the files that were copied in step 6 to the new Microsoft SQL Server.
- Log in to the new MSDE Server.
- From a command prompt, type osql -E and press Enter.Note: When logging in to a named instance of Microsoft SQL Server, use the following command:
osql -E -S <SQL_Server_name><instance_name>
- Type the following commands in the specified order:1> exec sp_detach_db @dbname = “<BlackBerry_Configuration_Database_name>“
2> go
2> quit
- Move the files that were copied in step 6 to the Microsoft SQL Server Data directory. When prompted to overwrite the files, click Yes.
- From a command prompt, type osql -E and press Enter.Note: If logging in to a named instance of Microsoft SQL Server, use the following command syntax to log in:
osql -E -S <SQL_Server_name><instance_name>
- Type the following commands in the specified order:1> exec sp_attach_db @dbname = “<BlackBerry_Configuration_Database_name>“,
2> @filename1 = “C:Program FilesMicrosoft SQL ServerMSSQLData<BlackBerry_Configuration_Database_name>.mdf”,
3> @filename2 = “C:Program FilesMicrosoft SQL ServerMSSQLData<BlackBerry_Configuration_Database_name>.ldf”
4> go
1> quit
- Close the command prompt.
Task 4 – Configure the BlackBerry Enterprise Server
To configure the BlackBerry Enterprise Server to connect to the new BlackBerry Configuration Database,complete the following steps:
- On the BlackBerry Enterprise Server, click Start > Programs > BlackBerry Enterprise Server >BlackBerry Server Configuration.
- On the Database Connectivity tab, click Change Database (see the screen shot below).
- In the Change Database Wizard, specify the new Microsoft SQL Server name and the existing BlackBerry Configuration Database name.
- Complete the wizard. Make sure that the Start Services check box is selected and click Finish.
- Open Administrative Tools > Services and make sure that all of the BlackBerry Enterprise Server services started successfully.Note: The BlackBerry Database Consistency Service might be unavailable; this is normal.
- Open BlackBerry Manager and make sure that the correct database is set up by completing the following:For BlackBerry Enterprise Server 4.0
- Right-click BlackBerry Manager, and click Properties.
- Select the Properties tab and verify that the Microsoft SQL Server information and BlackBerry Configuration Database name are correct.
For BlackBerry Enterprise Server 4.1
- Go to Tools > Options > Database and verify that the Microsoft SQL Server information and BlackBerry Configuration Database name are correct.
- Verify that all of the BlackBerry smartphone user accounts appear on BlackBerry Manager.
- If there is a remote BlackBerry Manager, make sure to check the settings from step 6.
- Test email message flow from the BlackBerry smartphone.
For BlackBerry Enterprise Server 4.1, install the database notification system
Note: This is only required in smaller environments running a maximum of 3 BlackBerry Enterprise Server instances.
- Copy the RimEsp.dll file to the C:Program FilesMicrosoft SQL ServerMSSQLBinn folder on the new Microsoft SQL Server.
- In Microsoft Query Analyzer, go to the DatabaseDBInstallScriptsSQLServer4.1 folder on the installation media.
- Open the NotifyInstall.sql file and replace <_databasename> with the name of the BlackBerry Configuration Database (see screen shot below).
- Run the script.
- Verify that the Microsoft Query Analyzer displays the following message:
Function dbo.xp_RIM_xxxx registered.
For BlackBerry Enterprise Server 5.0
BlackBerry Enterprise Server 5.0 does not have a change database option like previous versions.KB18129 explains the process for BlackBerry Enterprise Server 5.0.
- BlackBerry Enterprise Server 2.1 to 5.0
- Microsoft SQL Server 2000 SP3 to 2008
- Microsoft SQL Server Desktop Engine (MSDE)
When moving from an MSDE server instance to a full Microsoft SQL Server instance on a separate computer, see KB04039 for information on how to increase the mail agent limitation on the BlackBerry Enterprise Server.
If receiving an error that the BlackBerry Configuration Database is in use, complete the following steps:
- Remove all the BlackBerry smartphone user accounts from the BlackBerry Configuration Database by typing the following commands at a command prompt:
OSQL -E
1> use master
2> alter database <BlackBerry_Configuration_Database_name> set single_user with rollback immediate
3> go
1> use <BlackBerry_Configuration_Database_name>
2> go
1> exit
- Detach the BlackBerry Configuration Database by typing the following commands at a command prompt:
OSQL -E
1> use master
2> sp_detach_db @dbname = <BlackBerry_Configuration_Database_name>
3> go
1> exit
- Attach the BlackBerry Configuration Database by typing the following commands at a command prompt:
OSQL -E
1> use master
2> exec sp_attach_db @dbname = “<BlackBerry_Configuration_Database_name>“,
3> @filename1 = “C:<Path_to_database_file><BlackBerry_Configuration_Database_name>.mdf”,
4> @filename2 = “C:<Path_to_transaction_log_file><BlackBerry_Configuration_Database_name>.ldf”
5> go
1> exit
Note: The default path is C:Program FilesMicrosoft SQL ServerMSSQLData and the default filenames are BESMgmt.mdf and BESMgmt.ldf.
Software to sync folder and files
Vice Versa
http://www.tgrmn.com/web/file_synchronization.htm
You can use the VVEngine to setup the sync as a Services. This software is really usefull for Laptop users to sync some specific folder or on Servers
Nagios – Configuration (Email, Files, Structures)
Email Relay
Open Terminal (As root)
nano /etc/mail/sendmail.cf
# “Smart” relay host (may be null)
DS smtp.customer.com
Save the File.
service sendmail restart
Default Sender email address for Nagios
Open Terminal (As root)
nano /etc/nagios/objects/contacts.cfg
define contact{
contact_name nagiosadmin
use generic-contact
alias Nagios Admin
email support@cyberblogue.com
}
Directory structure and Monitoring Definition for Nagios
Under /etc/nagios you have 2 important folders depends on the config inside nagios.cfg
/etc/nagios/servers/
Under the servers folder create 3 folders to organize the layout
- linux
- windows
- www_sites
Modify the hostgroup file to reflect your configuration
define hostgroup{
hostgroup_name windows-servers ; The name of the hostgroup
alias Windows Servers ; Long name of the group
members srv1,srv2,srv3
}
The member section is the critical one. Each member MUST reflect a config file within the subdirectory.
Sample file : srv1.domain.local.cfg
define host{
use windows-server ; Inherit default values from a template
host_name srv1 ; The name we’re giving to this host
alias srv1.domain.local; ; A longer name associated with$
address 10.0.0.4 ; IP address of the host
}
The Host_name MUST be in the Hostgroup under members, this the section where Nagios make the association with the HostGroup and the config file.
Always name a server config file with the FQDN of the server you want to monitor and add .cfg at the end (This is only for Standard): srv1.domain.local.cfg
To monitor the services, look at all the sample file to help you define the option of monitoring.
After making the changes to the config files, you need to check your nagios.cfg files for errors :
nagios -v /etc/nagios/nagios.cfg
On the Windows Box, Install the NSClient++ http://www.nsclient.org/nscp/downloads