Posts

Showing posts from April, 2019

Oncommand Unified Monitoring

It is Single Installer for capacity, health and performance reporting - Setup threshold event and alerting for capacity and performance - Global search function for searching any object and context sensitive search Login  -> Dashboard -> Overview

Linux: Services

In linux a service is also called a Daemons. It is started in background in the operating systems. Starting Of services:  Service sshd start Or systemctl start sshd.service Status of a service: Systemctl status sshd.service Or Service ssh status This command will show service status of the service sshd Stop the daemons/Service: systemctl stop sshd service Or service sshd stop Start a service at boot time  systemctl enable sshd.service This will start the service sshd at the boot time  

Linux : Processes

How to identify running processes: #ps  This will list running processes in current shell #ps aux This will show all running process # ps aux |  grep "sshd" | grep -v grep -v means i want to exclude the line where the work grep is #pstree | less less : this will stop after the first screen full pstree will show the processes tree #ps aux | sort -nk 4 | tail -3 we are sorting it by column no. 4 numerically tail means we will fetch last three three results. Monitoring Commands: #top This will list running processes Live updating lists Press F : to modify the columns of the result Space bar to hide/Unhide the column Starting and Stopping process:  #kill -l This will list the available signals for killing the process #Kill pid This will kill the process by  Pid #pkill process_name This will allow you to kill the process by its name # gedit & This will start process called gedit Managing Process priority : #ps axl...

The Grep Command

Grep is used as search command Example : grep "emaad" filename.txt grep ifconfig enpo164464245 | grep "inet" Grep "West" * Will search West in all the files in current directory man grep        ------------------ to pull up the manual page q - to go back from manual screen Grep "West" * -R   -> this will search recursively from in all the directories Redirection with Grep :  Grep -i "west" * > File1.txt -i is for case insensitive Result will be stored in File1,txt Sort Command:  Grep -i "west" emaad.txt | sort -k 2  (Colums 2) Grep -i "^north" emaad.txt  ----------return lines begin with north Grep -i "north$" emaad.txt  ----------return lines ends with north

Linux - Scripting and Scheduling

Image
Describing Regular Expression Regular Expressions are sequence of character use to find the pattern. Regular Expression are built using the sequence of Meta character Examples: Wild Cards: ? - 0 or 1 of the previous element required * - 0 or more of the previous element required + - One or more of the previous element require . - which  match a single character at the location Anchors:   Hat ^ - Will match beginning of the string $ - Will match end of the string Containers: ()Parenthesis :  Contain group of subgroup []Square Bracket: Contain Perticular set of items Miscellaneous: OR | \ - To escape the meta character