Join Our Forum

Join our tech forum. Ask questions, suggest answers and help our community grow Forum related to Solaris, Linux, Networking, Windows, Database and other related tech things.  Visit Forum!

Contact Us

Easy way to contact us is to use the "Contact Us" page at the top. Send your quesries to us via that form.

Contact Us  |  About ShareTab

The command used for this purpose is “isainfo” which is then used in different combinations to get the system information. For all valid option use “# man isainfo”.

# isainfo -kv

the above command will show you the number of kernel bits. You can also use “-v” option with combination of “-k or -b”. Below is the screenshot for the above command in different form. Older version of solaris were running on 32 bit architecture and were not having “isainfo” command.

isainfo1

Share/Save/Bookmark

Changing timezone in Solaris 10

Changing timezone is different on x86 machines and on Solaris servers. I have listed the steps for both platforms below.

Solution for Solaris 10 x86:
As changing TimeZone on Solaris machine requires reboot, so plan a downtime and then plan the change activity. If one is changing only time, then one can use date command with required options. Also point to note here in both cases is that, changing time only, does not require reboot where as you would have to reboot the Solaris machine in case of changing TimeZone.

Changing TimeZone is 3 step process as listed below:

Issue “date” command to check which TimeZone you are currently in according to system.

# date
Thu Apr 23 20:16:13 IST 2009
#

1. Change the TimeZone entery in /etc/TIMEZONE file for the field of TZ

# TZ=US/Pacific (for PDT or any other format for specific TimeZone.)

One can list all TimeZones in directory : /usr/share/lib/zoneinfo.

2. Use following commands for changing TimeZone:

# rtc -z US/Pacific
# rtc -c
#

3. Reboot the system and after system is up and running issue the “date” command and check for the changes.

This is the output which I got on my machine:

Sun Microsystems Inc.   SunOS 5.11      snv_79a January 2008
# date
Thu Apr 23 20:47:23 PDT 2009
#

For Solaris 10 server:

On server there is only one change which has to be done. Just cahnge /etc/TIMEZONE file and edit TZ entry to proper TimeZone and reboot the server. Changes will be apparent after the reboot.

Please leave a feedback and subscribe to feeds for more updates for any query. HAPPY SURFING. [:D]

Share/Save/Bookmark

Directory structure in HP-UX

HP-UX file system structure is like an inverted tree with the root of the tree at the top and branches and leaves connected to it toward its bottom. The top level is root and represented by the forward slash (/) character. When you install HP-UX Operating Environment, seven file systems are created, by default. These are /, /stand, /var, /usr, /tmp, /opt and /home.

Some of these directories contain static data which refers to file contents that are usually not modified while some holds dynamic or variable data which refers to file contents that are modified when required.

hpunixdirstructure

The Root file system (/): The root file system contains many higher level directories which hold specific information. Some of the important directories under the root are:

The Binary directory (/bin): This directory contains user executable commands. It is linked to /usr/bin directory. /bin directory holds static data.

The device directory (/dev): This directory contains files for hardware devices. There are two types of device files ‘block special device files’ and ‘character special device files’ (Raw device files) some important sub-directories under /dev are: dsk, rdsk, rmt, pts and vg00. The /dev directory contains static data files.

The Library Directory (/lib): This directory contains shared library files which are required by programs. The /lib directory can also be accessed using /usr/lib directory since both are linked. The /lib directory contains static data.

The system Binary Directory (/sbin):
The most commands required at system boot up and commands that require boot privileges to run are located in this directory. The /sbin directory contains static data.

The Etcetera directory (/etc):
This directory holds most system configuration files. Some of the important sub-directories under /etc are rc.config.d, default,opt, dt,ftpd,lp, lvmconf,mail, sam, skel and vx. The /etc directory contains static data.

The lost+found directory (lost+found): This directory contains files that become orphan after system crash. Orphan file is that which has lost its name. This directory is automatically created when the file system is created.

The Net directory (/net):
If autofs is used to mount NFS file systems using special map, all available NFS file systems on the network are mounted beneath /net directory.

The Kernel file system (/stand): The kernel files are located in /stand file system. Files that contain kernel code, boot device information, kernel parameters and module information are stored here. This directory is altered only when kernel update is required.

The Variable file System (/var): This directory contains frequently changing data while system is up and running. Files holding log, spool, status and other dynamic data. Some important sub directories under /var are /var/adm, /var/dt, /var/mail, /var/spool, /var/tmp, /var/opt

The UNIX System Resource file system (/usr): This directory contains general files related to system. Some important sub-directories under /usr are /usr/sbin, /usr/local, /usr/include, /usr/share, /usr/lib.

The Temporary file System (/tmp): This file system contains temporary files. Temporary files are created by programs when they run. These files get removed after system reboot.

The Home file system (/home):
This file system is used to hold users home directories. Whenever a user account is created, it assigns home directory for that user to keep his  personal files. No other user can access other user’s home directory.

Share/Save/Bookmark

prtconf : This command is used to display configuration information, inclusding the total amount of memory and deviced configured on system as per system’s hierarchy. This also verifies whether any device has been seen/recognised by system or not.
Note : The output of prtconf command can vary depending on the version of the host system’s PROM.

prtconf

sysdef : This command displays device configuration defination which also includes system’s hardware, psuedo devices, selected kernel parameteres and loadable modules.

sysdef

dmesg : This command displays system diagnostic messages as well as list the devices attached to the system after the resent restart.

dmesg

format : The format command displays both physical and logical device names for all available disks. You can select the device/disk number and further format it and allocate space according to your need.

format

cfgadm : This command lists all configured/unconfigured devices on host system.

cfgadm

Share/Save/Bookmark

Add to Technorati Favorites Technology Blogs - Blog Rankings Join My Community at MyBloglog!

Enter your email address:

Delivered by FeedBurner

Get free California car insurance quotes and save $400 or more a year!