You are on page 1of 8

Candidate should be an energetic, self motivated individual with good knowledge of Linux based systems.

This individual will lead projects and also be part of the team providing high quality 24/7 remote management services for cloud & dedicated datacenter systems which include designing & provisioning, monitoring, system administration, software patches/updates, backup and restore, problem troubleshooting/resolution/escalation etc. Skills: The Linux subject matter expert must have 2+years of experience in supporting/implementing Linux based servers & applications. Requires in-depth knowledge of one or more of the following. Linux installation/configuration, performance tuning, virtualization Expert scripting skills with Perl / Python / Bash / PHP / JavaScript Good knowledge of network technologies such as TCP/IP, FTP, SSH Excellent knowledge to install and config Java, Apache, Tomcat and and other web/app servers Good knowledge of open source tools and applications Good knowledge of Public, Private Cloud platforms & solutions Should have the capability to handle a big project and should have the capability to lead the team. In addition, following attributes are very critical for this position. Strong analytical and organisational skills, with attention to details, ability to follow instructions, processes and procedures clearly Ability to work as team player, lead & mentor junior engineers, make decisions using critical reasoning & ability to work with minimal supervision Good verbal and written communication skills

How to Clear Memory Cache on Linux sk@sk:~$ sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"
sync; echo 3 > /proc/sys/vm/drop_caches

To free pagecache: echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: echo 3 > /proc/sys/vm/drop_caches

Clear filesystem memory cache

sync && echo 3 | sudo tee /proc/sys/vm/drop_caches

Release memory used by the Linux kernel on caches


=1 --> to free pagecache =2 --> to free dentries and inodes =3 --> to free pagecache, dentries and inodes

/sbin/sysctl -w vm.drop_caches=3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Sending a file over icmp with hping You need to start a listening hping on the receiver: Hping3 - -listen 10.0.2.254 -l eth0 - -sign MSGID1 Then you can send your file: Hping3 10.0.2.254 - -icpm - - sign MSGID1 d 50 c 1 - -file a_file
SENDER: root@hdc3:/tmp # cat a_file this is a file... and some data... root@hdc3:/tmp # hping3 10.0.2.254 --icmp --sign MSGID1 -d 50 -c 1 --file a_file HPING 10.0.2.254 (eth0 10.0.2.254): icmp mode set, 28 headers + 50 data bytes [main] memlockall(): Success Warning: can't disable memory paging! len=78 ip=10.0.2.254 ttl=64 id=48083 icmp_seq=0 rtt=0.3 ms --- 10.0.2.254 hping statistic --1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max = 0.3/0.3/0.3 ms root@hdc3:/tmp # RECIEVER: root@monitor:/home/hadace # hping3 --listen 10.0.2.254 -I eth0 --sign MSGID1 hping3 listen mode [main] memlockall(): Success Warning: can't disable memory paging! this is a file... and some data...

this is a file... and some data... ^C --- hping statistic --0 packets transmitted, 0 packets received, 0% packet loss round-trip min/avg/max = 0.0/0.0/0.0 ms root@monitor:/home/hadace #

# Get file from remote system $ scp pcname@192.168.1.22: /home/pcname/sample.rb

# creating you're logging function for your script $ logger -t MyProgramName "Whatever you're logging" # creating you're logging function for your script $ logme(){ echo "$(date +%d-%m-%Y-%H:%M) => $0 @ $1 returned error" >> persoscript.log }

rm filenames with spaces

$ find garbage/ -type f delete

100% rollback files to a specific revision

$ git reset --hard <commidId> && git clean f

Delete all files and folders except one file/dir

ls -R | grep -v skipme | xargs rm Rf

Duration : 2 Hrs

SSH User : ubuntu SSH key : dinoct-skilltest.pem

# ssh -i dinoct-skilltest.pem servname -p 6582

Instructions Permanently set hostname of server as your first name before starting the test. # vim /etc/hostname

Download java source on remote server and install if it is required (Do not install from repo) Do not clear history Pound, tomcat location : /home/ubuntu/source/ ubuntu user is a sudo user You can search on Internet Challenges 1. Install apache from ubuntu repo then do the following a. Configure one virtual host in 8090 port # apt-get install apache2 # vim /etc/apache2/ports.conf change this to 8090 NameVirtualHost *:80 Listen 80

2. Start mysql (Mysql already installed should not reinstall ) Check my data dir permission (ls -l) 3. Create a script to backup all databases from mysql (Mysql Username = root, Password = not set) Requirements a. Automatically backup the new databases b. All databases should be in separate dump file (Not the dump of 'ALL' databases) c. Dump file should be in compressed format # mysqladmin password 'arun'

#!/bin/bash for db in `mysql -u root -parun -N -e " show databases;"` do if [ $db != "information_schema" ] && [ $db != "performance_schema" ] then mysqldump -u root -parun $db | gzip > $db.sql.gz fi done

Note : Set mysql root password as your first name (All lower case letters)

4. Install tomcat from /home/ubuntu/source then do the following a. Configure apache as front end of tomcat and tomcat page should access through https (Create a self signed certificate if necessary)

http://www.technix.net.in/installing-tomcat-7/ http://www.technix.net.in/configure-mod_jk-with-apache-2-2-in-ubuntu/

# openssl req -new -x509 -nodes -newkey rsa:1024 -days 730 -out /etc/httpd/conf/certs/server.crt -keyout /etc/httpd/conf/certs/server.key

5. Compile and install pound software ( Source location : /home/ubuntu/source) ./configure make make install

example conf :
ListenHTTP Address 1.2.3.4 Port 80 Service Backend Address 192.168.0.1 Port 80 End Backend Address 192.168.0.2 Port 80 End End Read more: http://linuxpoison.blogspot.in/2010/04/load-balancing-webserver-httphttps.html#ixzz2c3JOpR3e

OPS Skill Assessment:

Duration : 2 Hrs

SSH Port Number : 6582 SSH User : ubuntu SSH key : dinoct-skilltest.pem

Instructions

Permanently set hostname of server as your first name before starting the test. Download java source on remote server and install if it is required (Do not install from repo) Do not clear history Pound, tomcat location : /home/ubuntu/source/ ubuntu user is a sudo user You can search on Internet

Challenges 1. Install apache from ubuntu repo then do the following


a. Configure one virtual host in 8090 port

2. Start mysql (Mysql already installed should not reinstall ) 3. Create a script to backup all databases from mysql (Mysql Username = root, Password = not set) Requirements a. Automatically backup the new databases
b. All databases should be in separate dump file (Not the dump of 'ALL' databases) c. Dump file should be in compressed format

Note : Set mysql root password as your first name (All lower case letters)

4. Install tomcat from /home/ubuntu/source then do the following


a. Configure apache as front end of tomcat and tomcat page should access through https (Create a self signed certificate if necessary)

5. Compile and install pound software


( Source location : /home/ubuntu/source)

You might also like