March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

March 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Sar Linux

 

Sar… Networking echo “Rcvd Bytes – Time”;\ (unset LANG; sar -n DEV) | grep eth0 | awk ‘{print ($5″ – “$1)}’ | sort -nr | head -n5;\ echo “Average: `sar -n DEV |grep eth0| tail -n1 | awk ‘{print ($5)}’`”

Example:

$ echo “Rcvd Bytes – Time”;\ (unset LANG; sar -n DEV) | grep […]

How to enable SAR (System Activity Reporter) on Solaris

Solaris 10 comes with a new feature called SMF (Solaris Management Facility), and to enable SAR, we need to update the SMF database with this information.

# svcadm enable svc:/system/sar:default

Now lets check if it is really enabled.

# svcs -x system/sar svc:/system/sar:default (system activity reporting package) State: online since Sun Nov 16 10:07:42 2008 […]

Solaris 10 Password Policy Enforcement

I was recently handed a baseline policy that was to implemented for all users on the Solaris 10 systems that I support. After a small amount of research I was able to find the various pieces that needed to be altered.

Desired Policy

After discussion between the security officer and the other management level staff, […]

How to Create or Edit a crontab File

Before You Begin

If you are creating or editing a crontab file that belongs to root or another user you must become root.

You do not need to become root to edit your own crontab file.

Create a new crontab file, or edit an existing file. # crontab -e [username]

where username specifies the name […]

Solaris ssh restart

To check if the service is online or offline: # svcs -v ssh online – 12:23:17 115 svc:/network/ssh:default

To stop the service: #svcadm disable network/ssh

To start the service: #svcadm enable network/ssh

To restart the service: # svcadm restart network/ssh

To Restart the SSH Service

Login to the command-line terminal Run the command:

svcadm restart […]