Sun Solaris Interview Questions and Answers - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Tuesday, October 15, 2019

Sun Solaris Interview Questions and Answers





Q :-  What is the command to do an interactive boot from the ok prompt?
Ans :- After Power on, press, STOP+A at the ok prompt type, ok>boot –a

Q :-  How can u check parameters in ok boot prompt?
Ans :- ok>printenv

Q :-  How to Formating a disk in solaris?
Ans :- add the disk , run devfsadm command
then format command > select disk , enter the required details for formating
create a new partition table using the format command.
then create a new file system on it using
newfs /dev/rdsk/c0t0d0s0
mkdir /mnt
mount /dev/dsk/c0t0d0s0 /mnt
then put its entry in /etc/vfstab

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 dmesg – It displays all configured items on systems.

Q :- Which command display diagnostics in ok boot prompt?
Ans :-– Diagnostic Test Commands
1) watch-net   % To check network connections
2) test net    % To test network conection
3) probe-scsi  % To find the devices attached to SCSI BUS.

Q :- What is the difference between /dev/dsk and /dev/rdsk ?
Ans :- In Solaris whenever we 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.

Q :-  What is the use of Growfs utility in solaris
Ans :- Growfs is generally used for expanding storage capacity of volume with existing data.

Q :-  What are LDOMS?
Ans :- Sun Logical Domains or LDoms is a full virtual machine that runs an independent operating system instance and contains virtualized CPU, memory, storage, console, and cryptographic devices. This technology allows you to allocate a system resources into logical groupings and create multiple, discrete systems, each with their own operating system, resources, and identity within a single computer system.


We can run a variety of applications software in different logical domains and keep them independent of performance and security purposes. The LDoms environment can help to achieve greater resource usage, better scaling, and increased security and isolation.

Q :- What command will display the VTOC for disk c0t0d0s0?
Ans :- prtvtoc /dev/rdsk/c0t0d0s0

Q :- What is the difference between container and zones?
Ans :- Zones: A zone is a virtual operating system abstraction that provides a secured environment where applications run.The applications are protected from each other to provide software fault isolation.
Container: zone + resource management The ability to control resource usage for processes,task and zones.Resources can be CPU level,RAM,virtual memory,Kernel level tables etc.

Q :-  What is the use of ufsdump command  in solaris
Ans :- To take backup of a filesystem.
ufsdump ouf <Filesystem name>

Q :-  What file controls system wide password aging?
Ans :- /etc/shadow file contain the user password information,/etc/default/passwd whith the help of this file we can set the password parameters

Q :-  What does fmthard do?
Ans :- fmthard is tools for copy VTOC (Virtual table of contents)one Hard drive to other Hard  drive

Q :-  Which command display diagnostics in ok boot prompt?
Ans :-– Diagnostic Test Commands
watch-net   % To check network connections
2) test net    % To test network conection
3) probe-scsi  % To find the devices attached to SCSI BUS.

Q :-  How can i disable STOP+A utility on SUN machines, which brings system into OK> prompt?
Ans :- 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

Q :-  What is sticky bit in Solaris?
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 . The sticky bit is displayed as the letter t in the execute field for 'others'.

Q :-  What is ndd?
Ans :- ndd utility is used to examine and set kernel parameters, namely the TCP/IP drivers.
To see which parameters are available for a particular driver, use the following ndd command:
# ndd /dev/hme \?

Q :- Setting parameters
Ans :- ndd -set /dev/hme link_speed 1 ;
ndd /dev/hme link_speed ( to view the O/P)

eg To see which parameters are available  ARP, IP, ICMP, and TCP drivers
# ndd /dev/arp \? && ndd /dev/icmp \? && ndd /dev/ip \? &&  ndd /dev/tcp \?

Q :- What is an alternative to the ?top? command on Solaris?
Ans :- prstat

Q :- What is /etc/system
Ans :- Alternative for /etc/sysctl.conf ( linux)
The /etc/system file provides a static mechanism for adjusting the values of kernel variables. Values specified in this file are read at boot time and are applied. Any changes made to the file are not applied to the operating system until the system is rebooted.

Q :- How can we find RAM size in solaris server ?
Ans :- In Solaris 10 you can find the RAM Size using sdtwsinfo command. This command gives complete Workstation Configuration Information in a pop up window.

Q :- What does the pkgadd command do?
Ans :- To install packages in solaris
Adding package from CDROM

eg # pkgadd -d /cdrom/cdrom0/Solaris_9/Product SUNWgtar
Adding packages to spool directory and then install them
pkgadd -d /cdrom/cdrom0/Solaris_9/Product -s /var/spool/pkg SUNWgtar

Q :- What is jumpstart and what are the various steps used in it.
Ans :- Jumpstart is used to manage operating system installation in many Information technology environments (corporate and otherwise) where Solaris operating system computers are widely used.


It can provide easier installation (minor setup on central server, then one command on an installation "client" system to start it installing). It also allows completely consistent system installation on many systems over time – each install can have exactly the same system configuration and software tools../

1. Preparing for a jumpstart server (making export dir)
2. Setting up an Install server
3. Setting up a boot serve
4. Setting up configuration files
5. Making Rules
6. Verifying rules
7. Creating Profiles
8. Sysidcfg file
9. Add a host entry
10. Adding a Client
11. Starting The client Installatio

Q :- What are the main differences between solaris 10 and 9
Ans :- The main difference in solaris 9 & solaris 10 is "SMF(Solaris Management Facility)". In solaris 9, if any service goes down then we should restart all services this is the disadvantage. But in solaris 10,if any service goes down then that particular service we can select and enable it instead of restarting all services.

Q :- What is OBP and how do you access it?
Ans :- Open boot Prom this is 0 run level in solaris
stop+A or in command mode init 0
OBP-OpenBootProm is a firmware which is placed on the sun machine's prom chip.
it is a os independent user interface to deal with the sun machine's hardware components.
to access it press stop+A (combination) from keybord.

Q :- What is the command to do an interactive boot from the ok prompt?
Ans :- stop+a command is to boot an interactive boot from the ok prompt

Q :- What is LOM and how do you access it?
Ans :- Lights out management is the abbrevation and some of the Sun severs a use this fecility to emotly operate the Sun sever by conneting a rollover cable from LOM port to a laptop.

There is no need to turn on the server , but if the server is just powered , you can connect the laptop to the LOM port and operate the conected Server. you have to inert the ip address of the LOM port in the IE and by this way you can acess the Server to operate it…

Q :- What are the different phases in boot process?
Ans :- Boot phases of Solaris Operating Environment are:
a.boot PROM
b.boot programs like bootblk,ufsboot
c.kernel initialization like loading modules
d.init phase

Q :- How to find 32 or 64 bit system instances of OS?
Ans :- isainfo –b

Q :- What command will display the VTOC for disk c0t0d0s0?
Ans :- prtvtoc /dev/rdsk/c0t0d0s0



Q :- Give the command that will display your default boot device?
Ans :- eeprom boot-device

Q :- What is the command can reconfigure devices with out reboot?
Ans :- Devfsadm

Q :- Which NFS daemons are found on the NFS server?
Ans :- In NFS server side there are 4 Deamons They are
a.mountd
b.statd
c.lockd

That's it
----------------------------------------------------------------------------------------------------------------------
Providing on the Web, online library and learning platform for IT Professional Developers with a unique blend of original content, peer-to-peer advice from the largest community of IT.

For The Latest Technology & Topics...

Redhat Linux | Linux Howtos | Ubuntu | Linux News | Centos | Linux Mint | Fedora | Linux Commands | Interview Question & Answers | Lintu Tricks | Linux Commands | Debian | Cinnamon | Apache | MySQL | Databases | Oracle-db | Java | SQL | pgAdmin | DevOps | Scripting | Python | Jenkins | Amazon AWS | Programming | Videos for Developers | Security & Hacking | VMware | Desktop | Laptops | Servers | Networking | Cloud | Installation | Operating System | MS Office | Switches | Routers | Firewall | Open Source | Outlook,Thunderbird, Gmail Emails | Monitoring Tools | JavaScript | YouTube | Android | Smartphone | Facebook | WhatsApp | Snapchat | Instagram | WordPress | Virtualbox | Browsers | Software | Hardware | Internet | Maintenance & Optimization | Antivirus | News | Google Play Store Apps | Prices | SEO | PC Games | Mobile Games | iPhone | Microsoft Windows 7 | Windows 10 | Windows Server 2012/2016/2019 | Windows Tips & Tricks | Tutorials | Training | Troubleshooting | Guides | Tips and Tricks | Reviews | Technology | IT Support | IT News | Advice for Technology | Features | Cloud | Cloud Computing | Privacy & Security| Banks

Follow Cloud Network on Twitter, Facebook and Subscribe to our YouTube channel.