typeperf is a good tools for Windows IT Professional to monitoring their server/PC through command prompt instead of GUI interface.
To understand more on typeperf, simply type in typeperf /?
To get all of the counter that can be listed in typeperf, you may enter the following command,
C:\> typeperf –q > c:\counter.txt
To define a counter live from your PC,
C:\> typeperf "\processor(*)\% Processor Time"
If you prefer to get from remote server,
C:\> typeperf "\processor(*)\% Processor Time" -s mickgenie.localhost
With Mozilla Thunderbird 6, you may setup your mail with POP3 and IMAP.
To understand POP3 and IMAP,
With POP3, your mail is saved in a mailbox on the remote server until you check your mail. When you check your mail, all of the mail is downloaded to your computer and is no longer maintained on the server. If you use POP3 and are traveling or check your mail from multiple locations, you will not be able to view any of your old mail because the messages only exist on the computer on which you originally received your mail.
IMAP is keeps all messages and folders on the server. In addition, IMAP idle is an optional feature of the IMAP protocol that pushes all new messages to Thunderbird as they are received by the mail server.
Follow these steps to create an IMAP or POP3 account in Thunderbird 6:
- In Thunderbird, go to Tools and Account Settings.
- Click Account Actions and then click Add Mail Account.
- Complete the following fields: Your Name, Email Address (i.e. [email protected]) and Password
- Click Continue.
- After Thunderbird detects your settings, select either IMAP or POP, depending on which method you would like to use to receive messages. If your configuration could not automatically be detected, see the steps below regarding manual configuration.
- Click Create Account.
If Thunderbird does not automatically detect your settings, follow these steps:
- Follow steps 1-4 above.
- After Thunderbird fails to recognize your mail settings, click Manual config.
- For the incoming server, select the desired method of retrieval and enter your mail hostname or servername into the server hostname field.
- Select the port your mail server requires (Default for IMAP:143, Default for POP: 110) and select the appropriate SSL setting based on your server configuration.
- Leave authentication set to auto-detect.
- For the Outgoing server, enter your server hostname, select the port and select the appropriate SSL setting based on your server configuration. Leave the authentication set to auto-detect.
- For the username, enter your full email address.
- Click Re-Test.
- Once the test has finished, click Create Account.
The above step is referring with SmarterMail 8.x version and get reference from smartertool.
As a system administrator, tasklist and taskkill are very important where you could manage them easily from a remote server without access to the remote desktop.
Sometimes, you might suffer from a server highload, you may list the process task list from tasklist from another server,
tasklist /s system /u username /p password
Eg. tasklist /s myserver /u administrator /p mypassword
Next, you may perform a task killing from the taskkill command.
taskkill /f /im process /s system
Eg, taskkill /f /im php-cgi.exe /s myserver
SUCCESS: The process “php-cgi.exe” with PID 4020 has been terminated.
Database is the most important file other than web file, hence the backup is very important for the web developer and web owner.
By referring to the current post, you may backup your database automatically from your Linux box.
# Specify the temporary backup directory
# Database Name
# store the current date
# Specify Ftp details
# Dump the mysql database with the current date and compress it.
/usr/bin/mysqldump -u$dbuser -p$dbpasswd $dbname | gzip > $BKUPDIR/$date.$dbname.sql.gz
# Change directory to the backup directory
# Upload the backup
ftp -n $ftpserver <<!EOF!
user $ftpuser $ftppass
# Remove the local backup file
/bin/rm -f /$BKUPDIR/$date.$dbname.sql.gz
With the above script, you may save it as file.sh and just schedule a cronjob to run it as your needed time.
From Unix/Linux system, you do not need to enter your login password for every login to your remote login.
You may create a RSA key to allow you to log into your remote server/box.
To create the RSA key, type the following command.
ssh-keygen -t rsa
Enter each of the question being asked.
Then log into the server that you would like to authenticate login and paste the code from /root/.ssh/id_rsa.pub to /root/.ssh/authorized_keys of the remote server.
MySQL database is one of the famous database engine used from the IT world.
To you might have a question such as how to move the current hosted database to another server? Actually it is very easy through the command line.
You may refer to the step as below to restore your database file.
Restore database with password.
mysql -h [remote_IP] -u [username] -p [password] [database_name] < [database_name].sql
Restore database without password
mysql -h [remote_IP] -u [username] [database_name] < [database_name].sql
Restore database from the remote server(you’ve logged into the server that wish to restore database)
mysql -u [username] [database_name] < [database_name].sql
If you familiar with MSSQL maintenance plan and ever configured backup through this tool and you should know that to backup the MSSQL database to remote computer, you have to configure Log On setting from services.
Okay, today we assume that we couldn’t allow to change the setting from Log On setting and wish to set the schedule backup, we could use maintenance tool and batch command to schedule it.
Firstly, create a maintenance plan from MSSQL, then select “Back Up Database Task”. From Database(s) option, select your database name, you may specify the directory that wish to backup. From this article we make it to C:\mssql\backup\.
Next, create a batch file named mssql_backup.bat and insert command as below.
xcopy C:\mssql\backup "\\remote_server\c$\backup" /e /i /h /y
Where remote_server is your remote server name and you would like to place it to C:\backup.
Lastly, create Windows Task Scheduler and configure the mssql_backup.bat to run daily or weekly as your wish.