Skip to main content

Posts

Showing posts from 2012

Solaris 10 Live upgrade steps

  Steps for Solaris 10 Live Upgrade  Solaris Live Upgrade significantly reduces downtime caused by an operating system upgrade  by allowing the system administrator to upgrade the operating system, or install a Flash  Archive, while the system is in operation. The Live Upgrade process involves creating a dupli-  cate of the running environment and upgrading that duplicate. The current running environ-  ment remains untouched and unaffected by the upgrade.... Prepare the disk slice and partition for live upgrade: disk 1 Partition: c0d0s0    / c0d0s1    swap c0d0s2    backup disk 2 partition: c0d1s0    /(i'll use it to copy root) the partition on second disk (/copy root) is same size as the root (/) partition and it must not appear in use in “/etc/vfstab”. This example explains how to upgrade a Solaris 10 10/08 system to the Solaris 10 5/09 release. Solaris Live Upgrade has many capab...

RBAC In Solaris System's

RBAC are the sole assignment for User's. other hand we can say that. This is equivalent of su in linux RBAC in Solaris System's Create a user "singh" with a profile shell and "Limited" profile: /etc/passwd foo:x:101:1::/export/home/singh:/usr/bin/pfsh /etc/user_attr singh::::type=normal;profiles=Limited Create the "Limited" profile: /etc/security/prof_attr Limited:::only can run some limited commands: /etc/security/exec_attr Limited:suser:cmd:::/export/home/singh/bin/Address:uid=0 Create an example script : #vi /export/home/singh/bin/Address #!/bin/sh /usr/sbin/ifconfig -a :wq! Remove default auths and profile from all users. Note – this is required so that the singh user doesn’t get the “Basic Solaris User” profile, which allows all user level binaries to be run. This however (As root), check auths and profile of singhuser: # auths singh auths: singh : No authorizations # profiles singh Limited # profiles -l singh Limit...

How to Add Hard drive and create partition on solaris

How to Add a Hard Drive to Solaris 10 Here’s how you would add a hard drive to Solaris 10, including the format, fdisk, partition, and then creation of the file system. Of course, you first need to actually add the hard drive physically to the machine, I’m not going to cover that – if you don’t know how to do that then the rest of the information isn’t going to help! If you installed a drive through VMWare while the VM is running, you will need Solaris to recognize the new drive. In this case, run devfsadm , otherwise boot your system and Solaris should recognize the new drive. # about devfsadm:- devfsadm maintains the /dev/namespace. it replace the previous suite First, here’s the original drives (c0t0d0 & c1d1d0): # ls /dev/rdsk/*s0 -------> search all Hdd in solaris system.  for example those /dev/rdsk/c0d0s0 /dev/rdsk/c1d1s0 Have Solaris check for new hardware: if new hdd is not recognize then run this command # devfsadm Now you can see there ...

Openldap server and client configration in rhel6 with tls

lets see the openldap server setup configuration on rhel 6   In my setup  my server name is:- node5.example.com ipaddress is :- 192.168.0.100/24 domain name is:- example.com openldap-server version is:- openldap-servers-2.4.23-20 my server os is:- RedHat Enterprise Linux 6.2 Step 1: first we need to install the required packages: # yum install openldap-servers openldap-clients here the openldap-server for configure the ldapserver and openldap-clients for configure the client.. Step2: As the configuration for LDAP is stored inside the LDAP server itself the configuration is in this /etc/ openldap /slapd.d/ directory. First of all we need set the password for administrator(we called it Manager) by using this command. # slappasswd password: mypasswd retype-password: mypasswd you’ll get something like this ” {SSHA}r2or9f2vYlvieCu0LP6wTnSdYfrddsuV ” as a result. This is the string we will have to add into config file. So we need to copy i...

website Downloading by wget command in linux

we have need to download an entire Web site, perhaps for off-line viewing, so for do that we are using so diffrence tools. In linux we can download the entire site by using wget.  wget can do the use those command...... $ wget \ --recursive \ --no-clobber \ --page-requisites \ --html-extension \ --convert-links \ --restrict-file-names=windows \ --domains chauhan-rhce.blogspot.com \ --no-parent \ www.chauhan-rhce.blogspot.com This command downloads the Web site www.chauhan-rhce.blogspot.com. The options are: --recursive: download the entire Web site. --domains chuahan-rhce.blogspot.com: don't follow links outside website.org. --no-parent: don't follow links outside the directory tutorials/html/. --page-requisites : get all the elements that compose the page (images, CSS and so on). --html-extension : save files with the .html extension. --convert-links : convert links so that they wo...

Windows 7 God Mode

  Magic of Windows 7................................... It is simply a new menu for navigation in windows 7 and very simple to set up. Simply create a folder on your desktop and follow below directions. Step 1 : Right click on your desktop Step 2 : Click create folder. Step 3 :   rename this folder and name should be that, "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" and press enter. Step 4 : Blink as the folder changes form to look like the control panel. Click on it and it opens the new menu.

Unix & Linux System Administrator Reponsbilities

The roll of the System Administrator on a linux or unix like system involves a number of varied and complicated tasks. A defined and well thought out approach to these tasks is the key to running efficient and reliable systems. The following is a small list of some of the important duties of the System Administrator. Filesystem Integrity and Free Space: A breakdown in filesystem integrity means the potential loss of critical data. As such, the System Administrator must check filesystem integrity on a regular basis and repair any inconsistencies as soon as they are found. The availability of free space is also the concern of the System Administrator. Periodic checking, daily, hourly, or as required is essential in preventing a file system from filling completely and causing downtime. Configuration Files: Many configuration files will require modification over the lifetime of an installed system. The System Administrator must document all changes and maintain backup copies of previous...

ls Command Use's in Linux

ls* Commands Are Even More Useful Than You May Have Thought E verything is a file under Linux and ls* and friends can help you to dig out more information from the system than you originally thought. These Linux tips may come in handy when you need to find out information quickly without going through /proc or sysfs. #1: lsscsi See list SCSI devices (or hosts) and their attributes under Linux operating systems: $ lsscsi -g Sample outputs: [0:0:0:0] disk Adaptec RAID1-A V1.0 /dev/sda /dev/sg0 [0:1:0:0] disk SEAGATE ST373455SS 0006 - /dev/sg1 [0:1:1:0] disk SEAGATE ST373455SS 0006 - /dev/sg2 [1:0:0:0] cd/dvd TEAC DV-28E-R 1.8A /dev/sr0 /dev/sg3 #2: lsblk Use this command to list block devices # lsblk Sample outputs: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 68.3G 0 disk ├─sda1 8:1 1 716M 0 part /boot ├─sda2 8:2 1 8G 0 part [SWAP] └─sda3 8:3 ...

FTP

Active FTP vs. Passive FTP Introduction One of the most commonly seen questions when dealing with firewalls and other Internet connectivity issues is the difference between active and passive FTP and how best to support either or both of them. Hopefully the following text will help to clear up some of the confusion over how to support FTP in a firewalled environment. This may not be the definitive explanation, as the title claims, however, I've heard enough good feedback and seen this document linked in enough places to know that quite a few people have found it to be useful. I am always looking for ways to improve things though, and if you find something that is not quite clear or needs more explanation, please let me know! Recent additions to this document include the examples of both active and passive command line FTP sessions. These session examples should help make things a bit clearer. They also provide a nice picture into what goes on behind the sc...

Add The Group Information IN Yum Repository in simple Two steps

= Yum groups and repositories = Yum supports the group commands   * grouplist   * groupinfo   * groupinstall   * groupremove   * groupupdate Groups are read from the "group" xml metadata that is optionally available from each repository. If yum has no repositories which support groups then none of  the group operations will work.  #yum grouplist    This will list the installed and available groups for your system in two    separate lists. If you pass the optional 'hidden' argument then all of     the groups which are set to 'no' in the group xml tag.   yum groupinfo groupname     This will give you detailed information for each group including:   description, mandatory, default and optional packages.       #yum groupinstall groupname      #yum groupupdate groupname   Despite their differing names both of these commands perform the same   func...

Nic Bonding In RHEL-6

Bonding in RHEL 6 NIC Bonding in RHEL6   Solution Red Hat Enterprise Linux allows administrators to bind multiple network interfaces together into a single channel using the   bonding   kernel module and a special network interface called a   channel bonding interface . Channel bonding enables two or more network interfaces to act as one, simultaneously increasing the bandwidth and providing redundancy.  The behavior of the bonded interfaces depends upon the mode, either hot standby or load balancing service. Add caption             Steps for configuring bonding In this document we are configuring bond0 with interfaces  eth0  and  eth1 Step 1- Load Kernel module For a channel bonding interface to be valid, the kernel module must be loaded. To ensure that the module is loaded when the channel bonding interface is brought up, create a new file as root named...