-Disk Label
========================
can you remind what is the meaning of cXtXdXsX?
DISK SLICE NAMING CONVENTION:
An 8 character string typically represents the fully name of aslice (c# t# d# s#)
1)controller:identifieshost bus adapater(HBA) which controls communication between the system and disk unit
2)targernumber:corresponding to a unquie hardware address that is assigned to each disk ,tape or cdrom
3)disk number:
also know as logical unit number (LUN) this number reflects the number of disks as the target number
4)slice number: a slice number range from 0-7
the disk label is the ares set aside for storing information about the disk controller, geometry and slices
another term used to describe a disk label is the volume table of contents(VTOC)
the label dsik means to write slice information on the disk
what is function of sccli ?
===============================
Using Certain sccli Commands to Manage a Sun StorEdge 3510 or 3511 Fiber Channel Array
What is the command to do an interactive boot from the ok prompt?
==================================================================
if os is up and runing, take help for man to eeprom command
stop+a command is to boot an interactive boot from the ok prompt
The Interactive Boot Process:
At the ok prompt, type boot -a and press Enter. The boot program prompts you interactively
Consider the following crontab entry: ?59 23 13 * 5 /wipe.disk? What time will this cronjob run?
===================================
That means: on Black Friday, your hard drive will get wiped out.
==> (on 13th and Friday) 23:59, /wipe.disk will be running
--------------------------------------------------------------------------------
If the 13'th Day of the month is Friday, the job will run. (week day starts from Sunday day 1).
How can i disable STOP+A utility on SUN machines, which brings system into OK> prompt???.
===========================================================
in /etc/system set abort_enable=0 will disable STOP-A
--------------------------------------------------------------------------------
There are several ways to disable "STOP-A"
(1)Edit the /etc/default/kbd file
KEYBOARD_ABORT=disable
(2)Use the "kbd -a disable" command
(3) Edit /etc/system file
set abort_enable = 0
How do we know how many LAN cards we have in server?
========================================================
Just Type in the following command at prompt#ifconfig -a.That shall give the LAN Cards as well as total Physical and Logical IP Addresses
dmesg - It displays all configured items on systems
#prtconf
#prtdiag
# cat /etc/path_to_inst
What is "Piping"?
====================
piping:- sending the output of a command to the input of another is called piping.
some examples are:
$cal | wc
will output total line's,word's and character's
$cal | wc | wc
will output total line's,word's and character's
A unix pipe provides a one-way flow of data.
for example
For example, if a Unix users issues the command
$who | sort |lpr
then the Unix shell would create three processes with two pipes between them:
A pipe can be explicitly created in Unix using the pipe system call. Two file descriptors are returned--fildes[0] and fildes[1], and they are both open for reading and writing. A read from fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis and a read from fildes[1] accesses the data written to fildes[0] also on a FIFO basis.
When a pipe is used in a Unix command line, the first process is assumed to be writing to stdout and the second is assumed to be reading from stdin. So, it is common practice to assign the pipe write device descriptor to stdout in the first process and assign the pipe read device descriptor to stdin in the second process. This is elaborated below in the discussion of multiple command pipelines.
Where are the templates stored that are copied into the user's home directories for their personal customizations?
==========================================================
/etc/skel
Which NFS daemons are found on the NFS server?
=============================================
nfslogd
In NFS server side there are
nfsd
mountd
lockd
statd
nfslogd
These five daemons will be in NFS server.
statd and lockd will be in NFS client too.
What file controls system wide password aging?
==============================================
/etc/shadow
What flag used with patchadd will prevent a later back out by preventing patchadd from backing up files? If this flag is used, the patch cannot be removed.
=======================================================================
You have to use the option "d" along with th patchadd commnad.
patchadd -d
What file do you put the umask setting in?
============================================
The UMASK value for bourne and korn shell users can be modified system wide by editing the "umask" entry in the "/etc/profile" file. To change the default UMASK for the C shell, modify the UMASK variable in "/etc/default/login" file.
When using the admintool, the membership list for groups is separated by what?
==================================================
commas
Among the applications below, which one is not a client/server application?
==================================
cron
What command will display the VTOC for disk c0t0d0s0?
==================================================
prtvtoc /dev/rdsk/c0t0d0s0
PRTVTOC
What file contains the location of the namespace configuration textfiles such as hosts.rev, named.local, etc..?
==================================
/etc/named.conf
Which of the following commands can tell you whether packets are being delayed or dropped on your network?
===========================================
spray
Interview quest-1
Labels: Sun Solaris 0 commentsby gini at 12:15 PM
Solaris interview questions
Labels: Sun Solaris 0 commentsSolaris interview questions -1
View More Questions
View more
View more
View more
List the files in current directory sorted by size ?
- ls -l | grep ^- | sort -nr
List the hidden files in current directory ? -
- ls -a1 | grep "^\."
Delete blank lines in a file ?
- cat sample.txt | grep -v ‘^$’ > new_sample.txt
Search for a sample string in particular files ?
- grep “Debug” *.confHere grep uses the string “Debug” to search in all files with extension“.conf” under current directory.
Display the last newly appending lines of a file during appendingdata to the same file by some processes ?
- tail –f Debug.logHere tail shows the newly appended data into Debug.log by some processes/user.
Display the Disk Usage of file sizes under each directory in currentDirectory ?
- du -k * | sort –nr (or) du –k . | sort -nr
Change to a directory, which is having very long name ?
- cd CDMA_3X_GEN*Here original directory name is – “CDMA_3X_GENERATION_DATA”.
Display the all files recursively with path under current directory ?
- find . -depth -print
Set the Display automatically for the current new user ?
- export DISPLAY=`eval ‘who am i | cut -d"(" -f2 | cut -d")" -f1′`Here in above command, see single quote, double quote, grave ascent is used. Observe carefully.
Display the processes, which are running under yourusername ?
- ps –aef | grep MaheshvjHere, Maheshvj is the username.
List some Hot Keys for bash shell ?
- Ctrl+l – Clears the Screen. Ctrl+r – Does a search in previously given commands in shell. Ctrl+u - Clears the typing before the hotkey. Ctrl+a – Places cursor at the beginning of the command at shell. Ctrl+e – Places cursor at the end of the command at shell. Ctrl+d – Kills the shell. Ctrl+z – Places the currently running process into background.
Display the files in the directory by file size ?
- ls –ltr | sort –nr –k 5
How to save man pages to a file ?
- man
How to know the date & time for – when script is executed ?
- Add the following script line in shell script.eval echo "Script is executed at `date`" >> timeinfo.infHere, “timeinfo.inf” contains date & time details ie., when script is executed and history related to execution.
How do you find out drive statistics ?
- iostat -E
Display disk usage in Kilobytes ?
- du -k
Display top ten largest files/directories ?
- du -sk * | sort -nr | head
How much space is used for users in kilobytes ?
- quot -af
How to create null file ?
- cat /dev/null > filename1
Access common commands quicker ?
- ps -ef | grep -i $@
Display the page size of memory ?
- pagesize -a
Display Ethernet Address arp table ?
- arp -a
Display the no.of active established connections to localhost ?
- netstat -a | grep EST
Display the state of interfaces used for TCP/IP traffice ?
- netstat -i
Display the parent/child tree of a process ?
- ptree
Show the working directory of a process ?
- pwdx
Display the processes current open files ?
- pfiles
Display the inter-process communication facility status ?
- ipcs
Display the top most process utilizing most CPU ?
- top –b 1
Alternative for top command ?
- prstat -a
by gini at 6:05 PM
support and powered by colorvibes | visit Blog and Web