Interview preparation

18
1). what is Multihomed system? A system having more than one network connection. Questio n what are the daemons running In NIS? how to do u create NIS users and update Maps? Ran k Answer Posted By Kishore Devkate Below daemons will run the NIS 1) ypservd 2) ypxfrd 3) yppasswd 4) ypbind Create a user by useradd command and copy the line from /etc/passwd file to NIS data base file, Exple:-some peoples use /var/yp/domain/passwd and run the command from /var/yp/domain directory i.e : #cd /var/yp/domain #/usr/ccs/bin/make passwd 0 YPserve and YPbind 0 Guest [Ness] salary expectation depend experience...& eligbilty of .. if a man a have a good qulaty then any one not look a salary issue...& depend a compnay becoze currently i m a first source employ indore ..so i know that ... 0 Deepak NIS Server: 1. ypserv 2. ypxfrd 3. yppasswd 4. ypbind NIS Slave Server: 1. ypserv 2. ypbind NIS Client: 1. ypbind for making users you need use "useradd" command. after creating users you need to update 0

description

Questinos

Transcript of Interview preparation

1)

1). what is Multihomed system?A system having more than one network connection. Question what are the daemons running In NIS? how to do u create NIS users and update Maps?Rank Answer Posted By

Kishore Devkate Below daemons will run the NIS

1) ypservd

2) ypxfrd

3) yppasswd

4) ypbind

Create a user by useradd command and copy the line

from /etc/passwd file to NIS data base file, Exple:-some

peoples use /var/yp/domain/passwd

and run the command from /var/yp/domain directory

i.e : #cd /var/yp/domain

#/usr/ccs/bin/make passwd0

YPserve and YPbind0

Guest [Ness] salary expectation depend experience...& eligbilty of .. if a man a have a good qulaty then any one not look a salary issue...& depend a compnay becoze currently i m a first source employ indore ..so i know that ...0

Deepak

NIS Server:

1. ypserv

2. ypxfrd

3. yppasswd

4. ypbind

NIS Slave Server:

1. ypserv

2. ypbind

NIS Client:

1. ypbind

for making users you need use "useradd" command.

after creating users you need to update userdatabase map file in domain database.

# yppasswd username

To update passwd mapfile

# cd /var/yp/domainname

# /usr/ccs/bin/make passwd0

Answer NIS deamons:

1)ypserve:reponds client requests

2)ypbind:it runs both server and client side.Stores binding

information in the /var/yp/binding/domainname

directory

3)ypxfrd:it pushes the maps to nis master server to slave

server

4)rpc.yppasswd:If user changes their password that

information is stored in master and slave server aswell

5)rpc.ypupdated:Runs on the NIS master server only. It updates the all nis information0

2)

Question what are bootloaders in solaris booting? bootblk, ufsbootRank Answer Posted By

Answer bootblk

0

Answer GRUB bootloader is for intel platform and UFS bootloader is for spark system .

in booting process, at POST phase, the system will load the primary program called BootBlk

0

Answer we are using Solaris OS on two different Hardware Platforms

1. x86 (Intel Compatible Hardware)

2. x64 (SPARC Hardware (Scalable Processor Architecture), Which is developed SUN (Stanford University Network) team).

for x86 machines we are using GRUB (Grand Unified Boot Loader) Boot loader program. for x64 machines we are using ufsboot program.

Basically we are using GRUB boot loader in Linux OS.

About Bootblk you need to understand whole booting process of Solaris.

1. VTOC (Volume Table of Contents): Contain Partition Table . Stores in 1st Sector of the Disk

2. Bootblk (Bootstrap Program): 1-15

3. Primary Super Block: 16-31

Contain:

a. The number of data blocks

b. The number of cylinder groups

c. The size of a data block and fragment

d. A description of the hardware, derived from the label

e. The name of the mount point

f. File system state flag: clean, stable, active, logging, or unknown

4. Backup Super blocks: 32Sector

5. Cylinder Group.

0

3)

Question solaris booting process.Rank Answer Posted By

Answer Solaris booting process

1) Boot PROM

2) Boot Program Phase

3) Kernal Initilization

4) Init Phase

0

Answer Boot Process is 5 Phases in solaris 10

1. POST Phase

2.Boot Program Phase

3.Kernel Initialization Phase

4.Init Phase

5.svc.startd Phase

when switch on sun Box firmware starts POST(Power On self Test). Post Checks Hardware Specification and Print banner.. Post Checks Boot Parameters. Boot Parameters true. then Go to second stage . Post Locates BootBlk, BootBlk Loads the ufs BootBlk... BootBlk locate Kernel. kernel is parts

genix ,Unix.genix platform independent, Unix platform specific these two types of kernels combined to create running kernel. Kernel reads configuration file (/etc/system) then loads itself and Root file system also mounted in the Phase. When RFS mounted Then Ufsbootblk Unmap. Kernal starts /etc/init daemon...this daemon checks /etc/inittab enteries... after that initd daemon Starts Svc.startd... svc.startd starts default services.....0 ]

Answer 1.Boot PROM

2.Boot program3.INIT Phase

4.Kernal phase

5.svc.startd0 ]

5) Question ndd -get /dev/hme0 link-modeRank Answer Posted By

Answer this command is used to get the whether the interface is

configure full duplex and half duplex 0 - halfduplex

1 - fullduplex0 Jeevan Kumar

6)

Question major diffences b/w solars 9 & 10?Rank Answer Posted By

Interview Question Submitted By :: P.sekhar.1984

I also faced this Question!! ALL Interview .com

Answer solaris 10 has introduced new features such as

1) Zones

2) Dtrace

3) ZFS

4) RBAC

5) IPfilter

This given features are not availables in solaris 9.0

Answer 6) Service Management Facility(SMF)0

Answer Solaris-10 not support VXVM-version-4.

Solaris-9 defaults NFS version-3

Solaris-10 defaults NFS version-4.

Solaris -9 supports Up to 1 TB file system.

ZFS help to support more the 1 TB file system.

Solaris-10 have zoneing , it help to support

virtualization.

0

Answer In Solaris 10

>Zones

>SMF(services)

>NFs version4

>Nfs4cbd new deamon

>ZFS

>Device F/S

The above not available in solaris9

0

Answer Service Management Facility (SMF)

ZFS help to support more the 1 TB file system.

Zoneing , it help to support virtualization.

IPfilte & Dtracs are the new future in Sol 10

0

Answer **solaris 10 has introduced new features such as

1) Zones

2) Dtrace

3) ZFS

4) Smf

This given features are not availables in solaris 9.

Solaris 9 support up 1 TB file system,where as Solaris 10 support more than 1 TB.

Solaris 9 default supports NFS version-3, Solaris 10 supports NFS version-40

7)

Question how to know which version of solaris is installed? uname a /etc/releaseRank Answer Posted By

Answer # uname -a

will provide number of informations

which includes

1. os installed

2. os version

3. hostname

4. arch

/etc/release command showing the OS release, i.e sol 10 5/090

Answer uname - r0

8)

Question how to know kernel architecture of solaris ? isainfo -v ? or prtconf -vRank Answer Posted By

Answer isainfo -v is the command to check the kernal Architecture.0

Answer command 'arch' will show u the architecture and "mach" will

list the processor type.0

Answer the right answer is isainfo -v

bash-3.00# isainfo -v

64-bit sparcv9 applications

asi_blk_init vis2 vis

32-bit sparc applications

asi_blk_init vis2 vis v8plus div32 mul32Please check # man arch

NAME

arch - display the architecture of the current host

SYNOPSIS

arch [-k | archname]

DESCRIPTION

The arch utility displays the application architecture of

the current host system. Due to sensive historical use of

this command without any options, all SunOS 5.x SPARC based

systems will return "sun4" as their application

architecture. Use of this command is discouraged.0

9)

Question how to configure remote console login for a server sunfire v440 or v490?Rank Answer Posted By

Answer Using LOM i,e Network Management port can configured

access the remote console login.

0

Answer 1.log into the OS as root

2.copy the rsc package in any location.

3.go to that location using cd /xx/xx

3.install the package and configure it to use it for remote

login.

10) Question how to configure remote console login for a server sunfire v440 or v490?Rank Answer Posted By

Answer You can configure it through the SC or from the command

line.

OK prompt

-------------

1.ok> #.

2.SC> scsetup

Answer to all the questions here.

Command line

-----------------

#scadm setnetsc_ipaddr xxxxx

#scadm setnetsc_ipnetmask xxxx

#scadm setnetsc_ipgateway xxxx

#scadm show | grep netsc0

11)

Question how to check network card speed ? set it mode(half/full duplex)? ndd -get /dev/hme0 link-speed ndd -get /dev/hme0 link-modeRank Answer Posted By

Answer dladm show-dev0

Answer dladm is working in solaris10.ndd command is working on

solaris9.

#ndd -get /dev/hme0 link-speed command to display the info

about network card speed0

Answer dladm show-dev0

Answer dladm show-dev for solaris 10 and for older versions

ndd get /dev/interface name link_speed0

12)

Question how to check network card speed ? set it mode(half/full duplex)? ndd -get /dev/hme0 link-speedRank Answer Posted By

Answer In Solaris 10 , there is a command called "dladm" to check

the link speed,link mode,link status.0

13)

14)

Question command used to synchronize changes done in /etc/passwd to /etc/shadow file?Rank Answer Posted By

Answer pwconv0

Answer If /etc/shadow file is correpted we need to use pwconv'

command it is automatically recovered.

If /etc/passwd file is correpted we have copy of passwd

file as 'opasswd'. We need to copy that file.

#cp -p /etc/opasswd /etc/passwd0

Answer The pwconv command creates and updates /etc/shadow with

information from /etc/passwd.0

15)

Question What type of job tickets do u handle?Rank Answer Posted By

Answer Remedy

0

Answer Remedy is one of the tool that generates Tickets...its not with regard to type of ticket.....0

16)

Question What is top cmd?Rank Answer Posted By

Answer A) :Top command is a system administrative tool to get the

process information.In Solaris 10 OS, TOP does not work.

Replaced by 'prstat' command.Additional to the Process

table Information, top/prstat command display the

following: 1. Uptime

18)

Question What is the importance of shadow file?Rank Answer Posted By

Answer Once we add the user /etc/shadow file is updated

automatically. It has the information about user,user

password information like lock/unlock.

0

Answer It has encripted passwd

0

Answer THE PERMISSIONS OF /etc/passwd are 644 whereas for

/etc/shadow are 400 .

In /etc/passwd if in a place of password holder a password

is specified (whether encrypted or non-encrypted), it would

be easy to trace the password with hacking tools as EVERYONE

can view this file.

In /etc/shadow file Only owner of the user can view the

shadow file where we find the password in encrypted format.

Thus more safe and secure from end users.0

19)

Question What is the file holds default values get by user when new user is created ? /usr/sadm/defadduserRank Answer Posted By

Answer /etc/default/useradd0 Deepak Kumar

Question What is the cmd used to print default values get by user? Useradd DRank Answer Posted By

Answer useradd -D command displays the user defaults.0 Hyma

21)

Question What are the monitoring tools do use ?Rank Answer Posted By

Answer we can use many monitoring tools easily available as open

source, the one which I use is Big brother( Paid ) , zenoss

monitoring software is also used and is an open sourece

monitering tool.0 Mohammed Mukram

Answer We use eG, Bigbrother, Compuware , IPSENTRY for monitoring

Remedy, GWI for Ticketing0 Swamynaidu Kollu [Ness]

22)

Question What are the comman user problems?Rank Answer Posted By

Answer we will get user unable to login, user unable to access a

particular file etc.0 Nagraj

23)

Question Veritas logging file?Rank Answer Posted By

Answer it is not enabled by default.

you can use vxcmdlog command.0 Deepak Kumar

24)

Question User is not able to perform cron jobs. How do u troubleshoot?Rank Answer Posted By

Answer export EDITOR=vi ;to specify a editor to open crontab file.0 Kishore Devkate

Answer Verify whether the crond daemon is running or not. Also

verify the cron logs.i.e log file under /var/cron/0 Raghu [Ness]

Answer By default root user have permission to run crontab,

check wheter /etc/cron.d/cron.allow file is present , if it

then check entry for the user who performing the cron jobs

then set the #EDITOR=vi; , # export EDITOR & run crontab -e

cammand,

25)Question how to change nic card from half duplex to full duplex?Rank

Answer Setting NIC speed and duplex

Solaris is often unable to correctly auto-negotiate duplex

settings with a link partner (e.g. switch), especially when

the switch is set to 100Mbit full-duplex. You can force the

NIC into 100Mbit full-duplex by disabling auto-negotiation

and 100Mbit half-duplex capability.

Example with hme0:

1. Make the changes to the running system.

# ndd -set /dev/hme adv_100hdx_cap 0

# ndd -set /dev/hme adv_100fdx_cap 1

# ndd -set /dev/hme adv_autoneg_cap 0

2. Make kernel parameter changes to preserve the speed and

duplex settings after a reboot.

# vi /etc/system

Add:

# set hme:hme_adv_autoneg_cap=0

# set hme:hme_adv_100hdx_cap=0

# set hme:hme_adv_100fdx_cap=10

26.

Question how to uninstall bundle of patches?Rank Answer Posted By

Answer patchrm [-f] [-G] [-B backout_dir]

[-C net_install_image | -R client_root_path | -S service]

[-t] patch_id0 Swamynaidu Kollu

27.

Question How u can detach or remove the disk it is in Veritas (Vxvm) control that is the disk in the production server ?Rank Answer Posted By

Answer unmount the file system

destroy the volume group if the disk group is only alloted

to this perticular disk

cd /etc/vx/bin/vxdiskunsetup -C disk path to bring out from

veritas control

if u want to delete the disk

vxdisk remove disk path0 Reddy

Answer if this disk in the disk group use vxdiskadm and choose

option 2

If you want to replace it, than you have to follow a few

more steps0 Ranger [X Comany]

Question How can i stop the telnet service in solaris 8 and 9?Rank Answer Posted By

Answer #/etc/init.d/telnetd start #/etc/init.d/telnetd stop0 Shahzad Ahmed

Answer vi /etc/inetd.conf

comment the telnet line with #

refresh inetd daemon0 Nayan Kalita [X Comany]

Answer ps -ef |grep telnet

then u can see telnetd runing demon on server.

vi /etc/init.d/telnetd stop the servives...

or...svcs -l |grep telnet

and stop.0 Rajesh.cherukuri [X Comany]

Answer svcs will work only in solaris 10.0

29.

Question what r the daily responsibilities of u as a system administratorRank Answer Posted By

Answer user administration

performance tuning

ensuring service stability4

Answer user administration

security administration

log administration

patch administration

apart from this other regular tasks like monitoring system

activity, utilization, capacity planning, working on new

implementation, backup, disaster recovery

planning/validation once in a while and other

independent/diligent work activity based on requirement.0 Suresh [Export Vision]

Answer Checking system-performance,

usage of cpu percentage, checking ideal state use of some commands those commands are sar, vmstat, iostat, etc

file system status,checking file system,

And take the back-up using ufsdump, ufsrestore, tar, cpio, dd,etc,

Sharing nfs server,

mounting client side directries,

To install packages, patches.0

Answer Taking regular backup of

files, Updating operating systems drivers, updating anti-

virus softwares..... performing scaning on regular basis.

should have presence of mind to solve or to give a

alternative solution to the problem.0

Answer monitoring system performance,update daily patches

and software's,verify the peripherals are working or not,

create file systems,resetting the users passwords,create

backup and recovery files,find out hardware problems and

solving quickly, create new users, lock or unlock the user

accounts.0

Answer take care of security of shared folders as well as file is

must

30.Question one guy asking how to grow disk size in SDS? what is SDS?Rank Answer Posted By

Answer #metainit -f d10 1 1 c0t0d0s0

#umount /sun

#mount /dev/md/dsk/d10 /sun

#metattach d10 c0t0d0s1

#df -h /sun

#growfs -M /sun /dev/md/rdsk/d10

#df -hTop of Form

What file is the controlling file for the volume manager?

/etc/vold.conf

we got 2 controlling files for the volume manager1. /etc/vold.conf

2. /etc/rmmount.confWhat is the command to find out the NFS version in solaris?

i).rpcinfo solaris-nfs-server

ii). #nfsstat -a

iii).Check in /etc/default/nfs for version information

iv).#nfsstat -m _1481743533.unknown