Friday, August 22, 2008

Solaris Insight

Hi Friends

Today I am continuing my Q&A session on Solaris

Q. How do we know how many LAN cards we have in server?
Ans.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
Imp -> dmesg - It displays all configured items on systems.

Q. What file contains the location of the namespace configuration textfiles such as hosts.rev, named.local, etc..?
Ans. /etc/named.conf

Q. Which of the following commands can tell you whether packets are being delayed or dropped on your network?
Ans. spray

Q. What is sticky bit?
Ans. Sticky Bit is a permission bit that protects the files with in a Directory. If the directory has sticky bit set, a file can be deleted by the owner of the file, the owner of the directory or root.
This Prevents a user from deleting other users files from public directories . If a directory is writable and has sticky bit is set, files within directory removed or renamed only if one or more following is true:
- The user owns the file
- The user owns the directory
- The file writable by the User
- The user is "root"
chmod 1777 project_dir
The sticky bit is displayed as the letter t in the execute field for 'others'.

Q. How many different kill signals are there?
Ans. 47 They are:
EXIT HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CLD PWR WINCH URG POLL STOP TSTP CONT TTIN TTOU VTALRM PROF XCPU XFSZ WAITING LWP FREEZE THAW CANCEL LOST XRES RTMIN RTMIN+1 RTMIN+2 RTMIN+3 RTMAX-3 RTMAX-2 RTMAX-1 RTMAX

Q. How will you add a virtual IP address to a server. Given the interface qe0 and IP 10.10.1.150?
Ans. Syntax:
#ifconfig qe0:1 plumb
# ifconfig qe0:1 10.10.1.150 up
where "qe0" is an interface (e.g., le0) and N is a number between 1 and . Removing the pseudo interface and associated address is done with "ifconfig qe0:1 10.10.1.150 down". As with physical interfaces, all you need to do is make the appropriate /etc/hostname.qe0:X file.

Q. What is the big difference between /dev/dsk and /dev/rdsk ?
Ans. In Solaris whenever you create a new slice using format command a raw physical slice or a Raw Device will be created which is addressed as /dev/rdsk/c#d#s# where # is the number for slice.
After formatting it with newfs command the slice will be addressed as /dev/dsk/c#d#s# which can now be used for mounting.
eg. newfs /dev/rdsk/c0d0s4
mkdir /oracle
mount /dev/dsk/c0d0s4 /oracle
After mounting /dev/dsk/c#d#s# is called as Block Device
/dev actually contains logical device names which are links (Shortcuts in windows terminology) to actual physical devices in /devices directory.

Keep Reading

Cheers

Padhaku Einstein
Contact me at einstein.padhaku@gmail.com

No comments: