Tuesday, 13 October 2015

Large file `` zstat-process `` work-around to reclaim the space.



Large file `` zstat-process `` work-around to reclaim the space.


1.Find the file location
# du -ad / | sort -n -r | head -n 10
15999511        /var/adm/exacct/zstat-process
 
2. To check the file type
# file zstat-process
zstat-process:  extended accounting file

3.To display the current status of the extended accounting facility
# acctadm
Task accounting: inactive
       Task accounting file: none
     Tracked task resources: none
   Untracked task resources: extended        


   Process accounting:active ----à
    Process accounting file: /var/adm/exacct/zstat-process
  Tracked process resources: pid,cpu,time,ancpid,zone
Untracked process resources: uid,gid,projid,taskid,command,tty,host,mstate,flag,wait-status,memory
            Flow accounting: inactive
       Flow accounting file: none
     Tracked flow resources: none
   Untracked flow resources: extended

4. To Turn off process accounting. (if requires.)
# acctadm -x process 
 
5. Restart the service 
 
# svcs -a | grep zstat
online         Aug_04   svc:/application/xvm/zstat:default
# svcadm restart svc:/application/xvm/zstat:default
# svcs -a | grep zstat
online          2:17:56 svc:/application/xvm/zstat:default

6.Check the  release  space
# du -sh /var/adm
  90M   /var/adm

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


For Online and Class Room Training:-
Our UNIX and Linux/Solaris training courses provide the skills to manage data, execute commands, administer and customize your Linux and UNIX environment.
Please Contact us: +91-8179101478, 8686025550
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Thanks,
Sandeep

Thursday, 16 April 2015

Basic Audit Reporting Tool

 Basic Audit Reporting Tool (BART)



propose auditing. There is a small but cool tool in Solaris. It solves the problem of "No,i haven't changed anything on the system". It's called BART, the Basic Audit Reporting Tool. It a really simple tool and it's really easy to use.

Usage

Okay, let's assume after some days of work you _nally con_gured all components of your
new system. Okay, create a nice place to store the output of the bart tool. After this
you start bart for the _rst time to create the _rst manifest of your system.

# mkdir /bart – files

# bart create -R /etc > /bart - files /etc. control . manifest

The manifest stores all informations about the _les. This is the example for the
<code>/etc/nsswitch.nisplus</code>:

# cat etc. control . manifest | grep "/ nsswitch . nisplus "
/ nsswitch . nisplus F 2525 100644 user ::rw -, group ::r--, mask :r--,
other :r-- 473976 b5 0 3 79 e8fd689a5221d1cd059e5077da71b8

Now lets change some files:

# touch /etc/ thisisjustatest

# chmod 777 /etc/ nsswitch . files

# echo "# just a test " >> /etc/ nsswitch . nisplus
Okay, enough changes. Let's create a new manifest of the changed /etc. Pipe it to a
di_erent _le.

# bart create -R /etc > /bart - files /etc. check20080202 . manifest
Now we can compare the baseline manifest with the actual manifest.

# cd /bart - files
# bart compare etc. control . manifest etc. check20080202 . manifest
134
14 Basic Audit Reporting Tool
This command prints all di_erences between the two manifests and thus the di_erence
between the tow states of the system
/ nsswitch . files :
mode control :100644 test :100777
acl control : user ::rw -, group ::r--, mask :r--, other :r-- test :
user :: rwx , group :: rwx , mask :rwx , other :rwx
/ nsswitch . nisplus :
size control :2525 test :2538
mtime control :473976 b5 test :47 a44862
contents control :79 e8fd689a5221d1cd059e5077da71b8 test :3
f79176ec352441db11ec8a3d02ef67c
/ thisisjustatest :
Add

 A really nice tool.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

For Online and Class Room Training:-
Our UNIX and Linux/Solaris training courses provide the skills to manage data, execute commands, administer and customize your Linux and UNIX environment.
Please Contact us: +91-8179101478, 8686025550
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




How to Find and Download Solaris Patchsets and Bundles in MOS

How to Find and Download Solaris Patchsets and Bundles in MOS


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


1.Go to My Oracle Support Portal

2.Select the 'Patches & Updates' tab

3.In the 'Patch Search' frame, click on 'Recommended Patch Advisor'

4.In 'Product' drop down list, enter 'Solaris' to see the option for 'Oracle Solaris'

5. In the next line, 'Release', click on the down arrow right and check the Release(s) you need.

6a. In the next line, click the down arrow right of the button which by default shows 'Platform' and select 'Type'.



Screen capture
The Customized Way to Find and Save Each Patchset Type

1.Go to My Oracle Support Portal

2.Select the 'Patches & Updates' Tab

3.On the left, under 'Oracle Servers and Tools', Select 'Latest Patchsets'
(Open Patching Quick Links if necessary)

4.Select 'Advanced Search'

5.In front of 'Product Family', Click the Flashlight and enter "Solaris op"

6.Check 'Solaris Operating System (Solaris)', go down and hit 'Select' button.

7.In front of 'Release', Click the Flashlight and select the Release you want , go down and hit 'Select' button.

8.In front of 'Platform or Language', Select your platform

9.In front of 'Patch Type', Select 'Patchset/Minipack'

10.Hit 'Go' and go down to see the results.

Friday, 2 January 2015

PHP 5.6.4 installation-solaris



PHP 5.6.4 installation-solaris




1.       Software link
              http://php.net/downloads.php
2.       installation procedure and requirements.
        Requirements :
·                                                                                autoconf-2.13
·                                                                               automake-1.4
·                                                                               bison-1_25-sol26-sparc-local
·                                                                               flex-2_5_4a-sol26-sparc-local
·                                                                               gcc-2_95_2-sol26-sparc-local
·                                                                               gzip-1.2.4-sol26-sparc-local
·                                                                                m4-1_4-sol26-sparc-local
·                                                                                make-3_76_1-sol26-sparc-local
·                                                                              mysql-3.23.24-beta (if you want mysql support)
·                                                                              perl-5_005_03-sol26-sparc-local
·                                                                              tar-1.13 (GNU tar)

     Installation Procedure:


1. unzip and extract the  php software.

2. cd /usr/local/php-5.6.4/

3. run the below depends on the requirement.

CC=/usr/bin/gcc CFLAGS="-std=gnu99" ./configure --enable-libgcc --enable-opcache=no

CC=/usr/bin/gcc CFLAGS="-std=gnu99" ./configure --enable-libgcc --enable-opcache=no --enable-libxml –-without-pear

Note : you may change the config parameters .


4. Run make (sample output)

Screen capture 

5. Run make test

6. Run make install (sample output)

Screen capture 


7. finally set the path.
PATH=$PATH:/usr/local/bin/
export PATH


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


For Online and Class Room Training:-
Our UNIX and Linux/Solaris training courses provide the skills to manage data, execute commands, administer and customize your Linux and UNIX environment.
Please Contact us: +91-8179101478, 8686025550
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                                                                                                                                                Thank you.
                                                                                                                                                Sandeep.k





Job chronyd.service/start failed with result 'dependency'

 Job chronyd.service/start failed with result 'dependency' Issue :  CRITICAL: Neither ntpd nor chronyd running. Exiting  Error :  sy...