If you have user on multiple servers and want to delete them by taking backup of home directory. You can use below Ansible playbook. This playbook is running by root user. # cat delete_user.yml ## Delete user "test_user" from servers — – hosts: db-hosts remote_user: root gather_facts: no tasks: – name: Take backup of home […]
If it is virtual machine then you can add new network via VMware and Check for newly added network on server, Like I got “net1” as shown below: # dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 1000 full e1000g0 net1 Ethernet unknown 0 unknown e1000g1 # Now create a new interface […]
postfix s a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail. 1). First, we install postfix on server. yum install postfix In case Sendmail is installed, erase it or stop the services of sendamil. yum remove sendmail or service stop sendmail chkconfig sendmail off 2). After installation configure Postfix. […]
For changing hostname in Solaris 10 you need to make changes in below files and reboot server. /etc/hosts /etc/nodename /etc/hostname.e1000g0 /var/crash/ # cd /var/crash # mv old-host-name new-host-name # reboot For changing hostname in Solaris 11 List current configuration: # svccfg -s system/identity:node listprop config config application config/enable_mapping boolean true config/ignore_dhcp_hostname boolean false config/loopback astring […]
Firstly, check where your swap file is, If it is a ZFS volume created during the Solaris installation then follow below steps: # top -d1 | grep -i "total swap" Memory: 126G phys mem, 93G free mem, 4096M total swap, 4095M free swap # swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 248,1 16 33554416 […]
You can manage package management in Solaris 11 using “pkg” command which has install, update, search etc. as attributes to manage packages. # pkg list (It will show you all installed packages on server.) NAME (PUBLISHER) VERSION IFO archiver/gnu-tar 1.27.1-0.175.3.0.0.30.0 i– audio/audio-utilities 0.5.11-0.175.3.0.0.30.0 i– codec/flac 1.2.1-0.175.3.0.0.14.0 i– # pkg list | grep -i x11-info-clients (Grep […]
/bin : All the executable binary programs (file) required during booting, repairing, files required to run into single-user-mode, and other important, basic commands viz. , cat, du, df, tar, rpm, wc, history, etc. /boot : Holds important files during boot-up process, including Linux Kernel . /dev : Contains device files for all the hardware devices […]
adduser : Add a new user arch : Print machine architecture awk : Find and Replace text within file(s) bc : An arbitrary precision calculator language cal : Display a calendar cat : Concatenate files and print on the standard output chdir : Change working directory chgrp : Change the group ownership of files chkconfig […]
Differences between RHEL 6 and RHEL 7 ? What is bonding/Teaming ? How we can check what process are taking high CPU/Memory utilization? What type files/directory are present in /boot, /dev and /opt path ? Where are log file present and how we can change it ? What is runlevel and difference between runlevel vs […]
Problem statement: We do not have central monitoring tool for AWS resources and compliance. Solutions can be implemented with this service: CloudWatch provides data and actionable insights to monitor your applications, respond to system-wide performance changes, optimize resource utilization, and get a view of operational health. Collects monitoring and operational data in the form of […]
Recent Blog