Showing posts with label Servers. Show all posts
Showing posts with label Servers. Show all posts

Sunday 18 June 2017

How to run Oracle Explorer on Sun Solaris 11 Operating System

Explorer files are used as a snapshot when we need to check all hardware issues or internal issue. The explorer files keeps all these information.

Oracle SUN Solaris explorer is a collection of scripts and binary executable files which collect all information and creates a detailed snapshot of Oracle Sun Solaris system configurations.

Oracle Sun Solaris Explorer is always installed on Global zone using root user which are running only Sun Sparc system and Solaris X86 systems as well as we are gathers information related to drivers, patches, recent system event history, and log file entries from the Oracle Explorer Data Collector output.

Before moving to run the explorer files we need to understand which packages is required to installed and configure the explorer files.

➤ First we need to download the Service tools bundle from any ftp servers and extract them and run the script with extension syntax.

!-[solaris]# ./install_stb.sh -ext

➤ In this step we will uncompressed and untar the Explorer tar file using below command.

!-[solaris]# cd /var/tmp/stb/extract/Explorer
!-[solaris]# uncompress Explorer.tar.Z
!-[solaris]# tar xvf Explorer.tar

➤ In this step we will install Explorer packages and create directories "SUNWexplo" and "SUNWexplu" to install the required packages.

!-[solaris]# pkgadd -d . SUNWexplo SUNWexpl

➤ Now we will run the explorer command to obtained the logs files from the Sun Solaris system.

!-[solaris]# explorer
  
Normally on Solaris server the default location to run the above command is /usr/sbin/explorer which create & send the explorer log file.

➤ If you want the create default configuration file only first time please use the below syntax.

 !-[solaris]# explorer -g 

➤ If you want to check explorer version please run the below command.

 !-[solaris]# explorer -V
        
Normally in most of the Solaris server the default path of the explorer output is /var/explorer/output but it depends where you installed the Explorer.

Please comment on the post, if you have any query related to this topic.

Wednesday 24 May 2017

Best Practical examples of RPM commands in linux

Basically Red Hat Package Manager (RPM) are a package management utility which are used for install, update , uninstall, query and verify of packages in Linux system like (RHEL,CentOS and Fedora).

Please find the below practical examples of rpm commands in Linux operating system.

➤ How to install an RPM packages.

To install the packages on Linux operating machine, please use the -i option for install. Please find the below example for installing the rpm.

[root@localhost]# rpm -ivh jdk-6u37-linux-amd64.rpm

Using above command you can install the rpm on linux operating machine. In the above command, -h print the has mark stat that package is archived and -v used as a verbose for better display.

➤ How to install an RPM packages without dependencies.

To install the packages on linux machine, please use --nodeps option. Please find the below example for installing the rpm without dependencies.

[root@localhost]# rpm -ivh --nodeps ftp-2.7.9-5.el6.2.i686.rpm

In above example, all the dependencies for installing the ftp server has been ignored.

➤ How to check a RPM signature.

To check the PGP signature of any rpm , please use the below command. This signature process is used for verification of the origin of rpm.

[root@localhost]# rpm --checksig jdk-6u37-linux-amd64.rpm

Using above command you can verify that the origin of installing rpm is valid. Normally this command is used before installing the rpm.

➤ How to check all installed rpm on Linux server.

To check the all installed rpm's on the linux machine, please use -q option. Please check the below example for checking all list.

[root@localhost]# rpm -q samba

Using above command you can find the all installed rpm related to packages.

➤ How to check recently installed RPM.

 To check the recently installed rpm, please use the -qa (query all) option. Please find the below example to check the recently installed rpm.

[root@localhost]# rpm -qa --last

The above command show you the list of all recently rpm in sequence of installation order. 

➤ How to list all installed RPM.

To check and print the list of all installed rpm on linux machine, use the below command.

[root@localhost]# rpm -qa

Command output show you the list of all installed packages on the linux machine.

➤ How to Upgrade a RPM Package.

If you want to upgrade already installed rpm on the linux machine, please check the command which is used in below example.

[root@localhost]# rpm -Uvh ftp-2.7.9-5.el6.2.i686.rpm

Here, -U option is used for upgrading the rpm packages which are installed on the linux machine.

➤ How to Remove a RPM Package.

To remove the package from linux server, you can use the -e option. Please find the below command with an example to remove the packages.

[root@localhost]# rpm -e ftp-2.7.9-5.el6.2.i686.rpm

You can use the below command syntax as well for removing the package from the linux machine.

 [root@localhost]# rpm -ev ftp

In last example, all the package dependencies are also removed with this command syntax.

➤ How to Remove a RPM Package without dependencies.

Please use the below command to remove a rpm package without removing any dependencies.

[root@localhost]# rpm -ev--nodeps samba

here, -nodeps command used for removing the package without any dependencies.

➤ How to query a information of Installed RPM package.

If you want to get all information regarding the installed rpm package, please use the -qi option. Please find the below example to query the information of installed rpm.

[root@localhost]# rpm -qi samba

Above command display all the information related to samba packages.

➤ How to verify a RPM package.

To verify a rpm package, please use the -Vp (Verify Package) option. Please check the below example to verify the package.

[root@localhost]# rpm -Vp ftp-2.7.9-5.el6.2.i686.rpm

Using this command you can verify the package.

Please let me know, if you have any concern regarding this topic.

Sunday 21 May 2017

Step by Step method to enable SAR (System Activity Reporter) on Solaris Server

When you work on Solaris operating system, you need to managed the performance of the operating system. If the performance are very good then your server behave normal and run the long time without any issue.

Sometime your Solaris server performance is not good and memory and resource utilization get very high, then you need to find out what is the cause of this high utilization and if you are working on client project then your client must want the report.

So on Solaris server we are used SAR (System Activity Reporter) to generate all the report related to server health.

SAR (System Activity Reporter) is used to troubleshoot the performance issue on Sun Solaris Servers. Using SAR (System Activity Reporter) we can troubleshoot or monitored the disk, memory or CPU performance issues on the Solaris operating system servers.

Step by step procedure to enable SAR (System Activity Reporter):

⏩ By default SAR utility are installed on the Solaris 11 operating system. If you want to check the current service status of SAR, then you need to run the below command.

!-[solaris]# svcs status sar
disabled        May_22  svc:/system/sar:default

You can used also below command to check the current status of SAR services.

!-[solaris]# svcs -a | grep -i sar
disabled        May_22  svc:/system/sar:default

In above command output, if you see currently the sar service is disable so in the next step we need to enable this service

⏩ In this step, you need to enable the SAR services which is disable on the my solaris server.

!-[solaris]# svcadm enable svc:/system/sar:default

Using above command the SAR service has been started, if you want to check the current status please run the below command.

!-[solaris]# svcs status sar
enabled        May_22  svc:/system/sar:default

⏩ We will make a setup for automatic data collection, once we enable the sar service. The default script for SAR utility are located the below directory location.

/usr/lib/sa/sa1➤ This is a shell script to collect and store data in the binary file /var/adm/sa/sadd, where dd is the current day.

/usr/lib/sa/sa2➤ This is a  shell script for generating daily report in the file /var/adm/sa/sardd, where dd is current day.

As these above script are used normally to collect the automatically data from Solaris Server. If you required the daily report or weekly report then you need to add both the script in crontab file which is describe in next step.

⏩ If you required the SAR report regularly then you need to make an entry of above script on the crontab file.

!-[solaris]# crontab -e

Using these command you can edit the existing file and make an entry of above script according to your requirement when you want to generate the report.

Please comment on my post, if you have any query related to this sar topic.

Saturday 20 May 2017

Step by Step method to Configure Proxy in Linux Terminal

Mostly Squid proxy wpad.dat file are used for configuring the browser on Linux operating system. If you required to configure the proxy on linux terminal then you need to use either DNS name of proxy internet or IP address with port.

Normally user facing such issue while they are working on Linux environment and trying to download files on Linux terminal but they are facing a download error. This is because terminal never accept the browser settings. So you need to set the parameter of proxy manually on linux terminal window.

Here, we will discuss several ways using which we can configure the proxy on linux terminal window. Using this method you can configure the proxy on any linux environment like CentOS, Ubuntu etc.

Step by Step method to configure the proxy in Linux:

In mostly companies when you work on linux server, and trying to download files you will get an error " proxy behind the firewall" that's means you need to configure the proxy on terminal so that when you run your application or command to download the data such error not occur.

➤ Let's suppose your Proxy IP address is 10.13.2.34 and port is 8080, then you need to run the below command into the linux terminal.

[root@localhost]# export http_proxy=http://10.13.2.34:8080

and if your proxy server is secure then you can used https tag with export settings. Please find the below command syntax to use proxy with https.

[root@localhost]# export https_proxy=https://10.13.2.34:8080

➤ Let's suppose your Proxy IP address resolve a particular domain name then in this case you can change the IP address name with dns name as given in below example.

[root@localhost]# export http_proxy=http://squid.proxy.com:8080

[root@localhost]# export https_proxy=https://squid.proxy.com:8080

Please change your dns name as per your proxy configuration, in my case i just take a dummy dns name.

➤ Let's suppose you want to make the export settings permanently for all Unix system users, so any user if login on the Linux server they can able to access internet through terminal. In this situation, you need to make a export entries permanently in /etc/profile file. 

[root@localhost]# vi /etc/profile

on the bottom of this profile file paste the below two entry and save the file.

export http_proxy=http://10.13.2.34:8080
export https_proxy=https://10.13.2.34:8080

[root@localhost]# source /etc/profile

The above source command are used to make a entry permanently without taking a reboot of server.

➤ Let's suppose you want to allow internet only specific user then in this case you need to make the above export http & https entry in user bash profile. 

Please post the comment on this blog, if you have any query regarding this proxy topic.

Friday 19 May 2017

ILO LAN console setup on HP-UX rp/rx systems

HP-UX Operating System are mostly used in IT industries because it is more secure and high reliable operating system. For managing hardware and software of HP-UX, ILO is in used.

ILO is a console for HP-UX servers, If your server operating system get crashed, then you can login in to ILO console and check all the logs related to failure as well as you can take a virtual console of OS from ILO.

Here, we will see how to configure the HP-UX ILO on specialized Unix server.

For initial setup, connect a serial terminal to the system. Use CONSOLE cable if there are multiple (usual HP bulkhead) 9600 bauds, 8N1. After that hit Ctrl-b after memory and CPU test at boot time, or if the system is already running

To modify the configuration, you can also telnet to the console IP address, and hit Ctrl-Shift-e , then c , then f to access the console and Ctrl-b to enter setup. You should see the ILO login prompt like that.

MP login: Admin
MP password: *********

Once you successful login, you'll see the ILO MP menu and find the different command to run. Please find the below MP main menu as given below.

MP MAIN MENU:

CO:   Console
VFP: Virtual Front Panel
CM:  Command Menu
CL:   Console Log
SL:   Show Event Logs
HE:  Main Help Menu
X:    Exit Connection

➤ Please select the CO command from MP main menu. The prompt changes to MP:CM> You are now ready to perform the configuration changes.

Note: The preferred method is always the directly connected terminal.

➤ The SA command shows you the Access Configuration menu. Change the settings so that it looks like that. This command allows you to modify MP access configuration.

Current Set Access Configuration:

R - Remote/Modem: OS SESSION
T - Telnet:                  Enabled 
W - Web SSL:           Enabled 
H - SSH:                    Disabled 
I - IPMI over LAN:   Enabled

Edit Section IP settings:

➤ The LC command shows you the LAN Configuration menu. Change the settings so that it looks like that.

Current LAN Configuration:

     MAC Address                              : 0x001a4b0add53
     D - DHCP Status                          : Disabled
     I - IP Address                               : 10.123.5.6
     M - MP Host Name                     : ethan-r
     S - Subnet Mask                          : 255.0.0.0
     G - Gateway Address                  : 10.123.0.1
     L - Link State                              : Auto Negotiate
     W - Remote Serial Console Port : 2023
     H - SSH Access Port                   : 22
     - - IPMI / LAN Port                     : 623

➤ You can see the current settings using the LS command. When you run the LS command it is shown you all current LAN configuration.

➤ The SO command with the O choice shows you the Security/Login options menu. Change the settings so that it looks like that:

Current Security Options:

     L - Login Timeout in minutes          : 1
     N - Number of Password Faults allowed : 3
     F - Allow MP Firmware upgrade via PCI : Enabled
     R - Allow MP reset via IPMI           : Disabled
     P - Allow MP password reset via IPMI  : Disabled

Edit Section Users:

➤ Use the UC command to view the User Configuration. If you can see the below my command output when you run the UC command on the command menu.

Login ID             User Name               Access Rights   Enabled
  --------------------------------------------------------------------------
   1 - Admin         Default Admin         C, P, M, U       Yes
   2 - Oper            Default Operator      C                     Yes
   3 - root              root                           C, P, M, U       Yes

Using above all method section we can configure the ILO on HP-UX rp/rx system. Please make sure in every HP-UX system parametere are different , so you can change as per your requirment.

Please post the comment on the blog, if you have any query regarding this topic.

Thursday 18 May 2017

How to Increase a Swap Space on Solaris Server

Swap memory work as a virtual memory in Unix operating systems. In Unix server when your physical memory used fully, that time swap memory are used and its maintain the system performance.

On Solaris server, if your swap size space use full then you need to create a new swap file or increase the swap space. We have a different method to increase/create a swap size on Solaris operating system server.

Here, we will discuss how to increase a swap size on Sun Solaris 11 operating system. The same steps are used for Sun Solaris 10 operating system.

In my testing machine, we are using storage space to create a new swap file as my operating system pool space are already fully utilized. 

Step by Step Method to Increase a Swap Space:

➤ On your Solaris machine , first you check the current swap space. Please use the below command to check the current running swap size.

!-[solaris]# swap -l
swapfile                               dev        swaplo   blocks       free
/dev/zvol/dsk/san/swap1     202,1        16         731596    6730226

In above example, "swap -l" command used to check the existing swap size space, you can use "top" command as well but using "top" command you can not find which swap named file are in used. You can find only total swap memory available on the Solaris server. On my solaris testing machine "swap1" file was already created which is currently in used.

➤ If you want to increase more size then you need to create a new swap file like swap2 or swap 3 as per your requirement and space available on server storage.

Let's assume on my Solaris server, I need to increase 30 GB more swap size, then you need to create new swap file.

Please use the below command to create a new swap file on Sun Solaris 11 operating system.

!-[solaris]# zfs create –V 30G san/swap2
!-[solaris]# swap –a /dev/zvol/dsk/san/swap2

In above command, we will create swap2 file with 30 GB space. Once you run both command one by one in given sequence a new swap 2 file with 30 GB has been created on the server.

➤ To verify the new swap size space, you need to run the below command.

!-[solaris]# swap -l
swapfile                               dev        swaplo   blocks       free
/dev/zvol/dsk/san/swap1     202,1        16         731596    6730226
/dev/zvol/dsk/san/swap2     209,2        16         832226    31457280

If you see the above output, the newly created swap file are seen with 30 GB space, and you can run the top command which show you the total swap memory space.

➤ To make it this swap space on Solaris server, please make an entry in "/etc/vfstab" file.

!-[solaris]# vi /etc/vfstab
/dev/zvol/dsk/san/swap1 -       -       swap    -       no      -

When we make this an entry in vfstab file, we don't need to take a reboot.  Once you take a reboot your space would be available and you can show it without any problem.

Please post your comment on this blog, if you have any query related to this topic.

Sunday 14 May 2017

How to configure YUM Server in Red Hat Linux 7 Operating System

This is my first post, hope you are like my blog content. I am trying to provide you the simple and straight forward solution on this post.

In this post, I will guide to you, how to configure YUM server in Red Hat Linux 7 operating system. Yum tends for Yellowdog Updater Modified utility which used for package management system on Linux environment. In the below post, you can find the step by step method of configuration and installation of YUM.

Step by Step Method of Installation & Configuration of YUM:

➤ If you have Red Hat Linux 7 operating system image or cd, then please mount this iso or cd on cdrom device of operating system.

[root@localhost]# mount -o loop /dev/cdrom /mnt

In above command syntax, you can able to see we have mount the our Red Hat Linux 7 operating system image on /mnt file system. Normally /mnt file system are used for mounting purpose only but its depends upon every user understanding.

➤ Please create a directory where you want to copy the all packages files for configuration of YUM server.

[root@localhost]# mkdir /"Directory Name"

In linux operating system mkdir command are used for creating a directory. In my case I normally use "/yumserver" name for YUM configuration. When you create a directory please change your directory name.

➤  Please copy the all files from "/mnt" directory to /"Directory Name".

[root@localhost]# cp -rvf /mnt/* /"Directory Name"

Using this command all the packages files are copied on the other place, you need to keep save this directory otherwise your YUM configuration is not works.

➤ In this step, we will go the the packages directory and install the required rpm packages which are required for installation of YUM server.

[root@localhost]# cd /yumserver/Packages

You can use your directory name to reach the packages folder. Now once we reached in this directory then we will install the required rpm packages one by one in below sequence.

[root@localhost]# rpm -ivh deltarpm-3.6-3.el7.x86_64.rpm
[root@localhost]# rpm -ivh python-deltarpm-3.6-3.el7.x86_64.rpm
[root@localhost]# rpm -ivh createrepo-0.9.9-23.el7.noarch.rpm

If you are trying to install the above rpm packages and not follow the above installation of rpm's in same sequence then you are definitely getting an dependency error.

➤ For creating a repo packages, you need to createrepo of all the packages, for this please run the below command on your terminal window.

[root@localhost]# createrepo  –v /yumserve/Packages

Please change the yum directory name which you used in above steps. Using this command all the packages repo has been created on the yum directory.

➤ Create a repo file on the below directory location. Please used the valid name while creating a repo file.

[root@localhost]# cd /etc/yum.repos.d/
[root@localhost]# vi yumserver.repo

You can change the repo file name according to your feasibility. Now please write the below entry inside this file.
#########################
[Packages]
baseurl=file:///yumserver/Packages 
gpgcheck=0
enable=1
########################

This is the main file content, so please more careful while doing the entry in this file. You can change the baseurl location as per your YUM packages directory location. After saving the file go for final step.

➤  In final step, as you configured the YUM configuration file, now you need to clean your yum repo and used it for installation the packages.

[root@localhost]# yum clean all

When you run this command , some space from /var file system get free, actually during packages installation /var file system get increase sometimes.

[root@localhost]# yum list

above command show you all the yum repo which exist on this server. In our case you can find the yumserver repo.

To test the yum server is configured properly or not then please run the below command to installed the any packages on the server using yum commands.

[root@localhost]# yum install samba*

When you run this command, if all the packages related to yum are installed that's means your YUM server installation and configuration are successful. If you are see any error then please check the above all steps configuration one by one.