What is the command to do an interactive boot from the ok prompt? After Power on, press, STOP+A at the ok prompt type: ok> boot –a How can u check parameters in ok boot prompt? To check parameter on the OK prompt: ok> printenv How to Formating a disk in solaris? – add the disk, […]
Solaris
What are the Solaris process tools
In Solaris, there are so many tools for analyzing and debugging every single part of the OS. the most common is the tools for Process Analysis. Since there are so many tools for process analysis, it can be helpful to group them into general. The general syntax is as follows: $ ptool pid $ ptool […]
How to prevent SSH connections from disconnecting due to inactivity when using MobaXterm
Question: How to prevent SSH connections from disconnecting due to inactivity when using MobaXterm client? In most production environment setups, SSH connections are configured to get disconnect after a short period of inactivity. This can sometimes be frustrating as you may have to keep on logging in frequently. Well, you can try the workaround outlined […]
Solaris Interview Questions – Inodes and the Filesystem Troubleshooting
1. Why ‘du’ and ‘df’ reports different values? – df describes disk usage. – du adds up the size all the files on a filesystem. They can report wildly different figures. One reason: Processes write to files. files can be deleted while processes are writing to files. So a file may be gone, but its […]
Solaris – Changing from iSCSI Static Discovery to SendTargets Discovery
This post is to provide steps from changing iSCSI Static Discovery to SendTargets Discovery. If zones are configured, zones need to be halted before changing the iSCSI discovery method then boot afterward. If zpool is configured, zpool needs to be exported before changing the iSCSI discovery method then import afterward. Below are high level steps: […]
Solaris 11.3 – Changing from iSCSI SendTargets Discovery to Static Discovery
Question: We have to set up a static configuration for an iSCSI device. It was added as dynamic but the specification calls for a static configuration. How to change iSCSI SendTargets Discovery to Static Discovery? 1. Halt the Solaris zones (if applicable). 2. Export the zfs pool: # zpool export {pool name} 3. Disable sendtargets […]
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(File Transfer Protocol) 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 […]
How to save sar reports longer than 7 days in Solaris
It might be necessary to save sar reports longer than 7 days. This post explains the steps to achieve this goal. The “sa2” is the script that is responsible for writing a summarized daily activity report. The /usr/lib/sa/sa2 has the following entries: #!/sbin/sh # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T # All Rights […]
How to set up cron for automatic data collection from the system activity reporter (SAR) in Solaris 10 and 11
This post outlines steps to set up a cron job for automatic data collection from system activity reporter (aka SAR). Prior to Solaris 10 1. Become the superuser. 2. Edit the following file: # vi /etc/init.d/perf 3. Uncomment the following lines (remove the # sign from the beginning of each line): #if [ -z “$_INIT_RUN_LEVEL” […]
GUDS – A Script for Gathering Solaris Performance Data
Whats is GUDS? The GUDS script is a ksh script designed to collect the data needed to analyze performance issues. The script collects a specific set of files and runs a series of operating system utilities, the selection of which are based on the specified level. The duration, number of iterations, and other variables are […]