Photo Sharing and Video Hosting at Photobucket
unixadmin
read my profile
sign my guestbook

Visit unixadmin's Xanga Site!

Name: Unix Admin
Gender: Male


Expertise: Command & GUI
Occupation: UNIX Admin
Industry: ITO


Message: message me


Member Since: 5/11/2007

SubscriptionsSites I Read

Posting Calendar

|<< oldest | newest >>|
view all weblog archives

Get Involved!

Suggest a link

Recommend to friend

Create a site

Sunday, September 14, 2008

Solaris 10 new feature on NIC status

dladm is meaning Administer Data Link. This feature is a new faeture that I can see on Solaris 10 compare to other version. Before this, I've to make a script to have the status of NIC in easy way.

This command also can rename the device, associate the device, remove device, connect server to WiFi, configure the aggregration and create the VLan



# dladm show-dev
e1000g0         link: up        speed: 1000  Mbps       duplex: full
e1000g1         link: down      speed: 0     Mbps       duplex: half
e1000g2         link: down      speed: 0     Mbps       duplex: half
e1000g3         link: down      speed: 0     Mbps       duplex: half

# dladm show-link
e1000g0         type: non-vlan  mtu: 1500       device: e1000g0
e1000g1         type: non-vlan  mtu: 1500       device: e1000g1
e1000g2         type: non-vlan  mtu: 1500       device: e1000g2
e1000g3         type: non-vlan  mtu: 1500       device: e1000g3



Tuesday, May 20, 2008

SOLTICE Disk Suite - Installation

Solstice Disk Suite


Solstice Disksuite is a free RAID volume manager from Sun Microsystems.

This article describes the method of mirroring a boot drive using Solstice Disksuite via the command line.

Solstice Disksuite comes bundled with the Solaris 8 operating system.
Install Solstice Disksuite 4.2.1 on Solaris 8
Insert 2 of 2 software for Solaris 8

# cd /cdrom/sol_8_1000_sparc_2/Solaris_8/EA/products/DiskSuite_4.2.1/sparc/Packages

I usually install all the packages even though I do not use the GUI.

# pkgadd -d .

The following packages are available:

1SUNWlvmaSolaris Volume Management API's
(sparc) 1.0,REV=2001.07.25.13.05
2SUNWlvmgSolaris Volume Management Application
(sparc) 1.0,REV=2001.07.25.13.05
3SUNWlvmrSolaris Volume Management (root)
(sparc) 1.0,REV=2001.07.25.13.05
4SUNWmdgSolstice DiskSuite Tool
(sparc) 4.2.1,REV=1999.11.04.18.29
5SUNWmdjaSolstice DiskSuite Japanese localization
(sparc) 4.2.1,REV=1999.12.09.15.37
6SUNWmdnrSolstice DiskSuite Log Daemon Configuration Files (sparc) 4.2.1,REV=1999.11.04.18.29
7SUNWmdnuSolstice DiskSuite Log Daemon
(sparc) 4.2.1,REV=1999.11.04.18.29
8SUNWmdrSolstice DiskSuite Drivers
(sparc) 4.2.1,REV=1999.12.03.10.00
9SUNWmduSolstice DiskSuite Commands
(sparc) 4.2.1,REV=1999.11.04.18.29
10SUNWmdxSolstice DiskSuite Drivers(64-bit)
(sparc) 4.2.1,REV=1999.11.04.18.29

Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: all

Reboot the server after the successful installation.

# init 6


SOLARIS ZONING.

This example to create a zoning server on solaris 10.

# zoneadm list -vc
  ID NAME             STATUS         PATH
   0 global           running        /

# zonecfg -z buaya
buaya: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:buaya> create
zonecfg:buaya> set zonepath=/export/home/buaya
zonecfg:buaya> set autoboot=false
zonecfg:buaya> add net
zonecfg:buaya:net> set address=192.168.1.2
zonecfg:buaya:net> set physical=bge0
zonecfg:buaya:net> end
zonecfg:buaya> verify
zonecfg:buaya> exit

# zoneadm list -vc
  ID NAME             STATUS         PATH
   0 global           running        /
   - buaya            configured     /export/home/buaya

# zoneadm -z buaya install
Preparing to install zone <buaya>.
Creating list of files to copy from the global zone.
Copying <2467> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1300> packages on the zone.
Initialized <1300> packages on zone.
Zone <buaya> is initialized.
The file </export/home/buaya/root/var/sadm/system/logs/install_log> contains a log of the zone installation.

# zoneadm -z buaya boot
zoneadm: zone 'buaya': WARNING: bge0:1: no matching subnet found in netmasks(4) for 192.168.1.2; using default of 255.255.255.0.

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        zone buaya
        inet 127.0.0.1 netmask ff000000
bge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 172.30.190.106 netmask ffffff00 broadcast 172.30.190.255
        ether 0:16:17:9f:f:55
bge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        zone buaya
        inet 192.168.1.2 netmask ffffff00 broadcast 192.168.1.25


# zlogin -C buaya
[Connected to zone 'buaya' console]


Select a Locale

  0. English (C - 7-bit ASCII)
  1. Hindi UTF-8
  2. Thai TIS620
  3. Thai UTF-8
  4. Go Back to Previous Screen

Please make a choice (0 - 4), or press h or ? for help:


What type of terminal are you using?
 1) ANSI Standard CRT
 2) DEC VT52
 3) DEC VT100
 4) Heathkit 19
 5) Lear Siegler ADM31
 6) PC Console
 7) Sun Command Tool
 8) Sun Workstation
 9) Televideo 910
 10) Televideo 925
 11) Wyse Model 50
 12) X Terminal Emulator (xterms)
 13) CDE Terminal Emulator (dtterm)
 14) Other

Type the number of your choice and press Return: 3
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair

- Host Name for bge0:1 ---------------------------------------------------------

  Enter the host name which identifies this system on the network.  The name
  must be unique within your domain; creating a duplicate host name will cause
  problems on the network after you install Solaris.

  A host name must have at least one character; it can contain letters,
  digits, and minus signs (-).


    Host name for bge0:1 buaya

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-6_Help


- Confirm Information for bge0:1 -----------------------------------------------

  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.

    Host name: buaya


--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-4_Change    Esc-6_Help


- Configure Security Policy: ---------------------------------------------------

  Specify Yes if the system will use the Kerberos security mechanism.

  Specify No if this system will use standard UNIX security.

      Configure Kerberos Security
      ---------------------------
      [ ] Yes
      [X] No

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-6_Help


- Confirm Information ----------------------------------------------------------

  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.


    Configure Kerberos Security: No

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-4_Change    Esc-6_Help


- Name Service -----------------------------------------------------------------

  On this screen you must provide name service information.  Select the name
  service that will be used by this system, or None if your system will either
  not use a name service at all, or if it will use a name service not listed
  here.

  > To make a selection, use the arrow keys to highlight the option
    and press Return to mark it [X].


      Name service
      ------------
      [ ] NIS+
      [ ] NIS
      [ ] DNS
      [ ] LDAP
      [X] None

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-6_Help


- Confirm Information ----------------------------------------------------------

  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.


    Name service: None

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-4_Change    Esc-6_Help


- Time Zone --------------------------------------------------------------------

  On this screen you must specify your default time zone.  You can specify a
  time zone in three ways:  select one of the continents or oceans from the
  list, select other - offset from GMT, or other - specify time zone file.

  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].


      Continents and Oceans
      ----------------------------------
  -   [ ] Africa
  ¦   [ ] Americas
  ¦   [ ] Antarctica
  ¦   [ ] Arctic Ocean
  ¦   [X] Asia
  ¦   [ ] Atlantic Ocean
  ¦   [ ] Australia
  ¦   [ ] Europe
  v   [ ] Indian Ocean

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-6_Help


- Country or Region ------------------------------------------------------------

  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].


      Countries and Regions
      ------------------------
  ^   [ ] Israel
  ¦   [ ] Japan
  ¦   [ ] Jordan
  ¦   [ ] Kazakhstan
  ¦   [ ] Korea (North)
  ¦   [ ] Korea (South)
  ¦   [ ] Kuwait
  ¦   [ ] Kyrgyzstan
  ¦   [ ] Laos
  ¦   [ ] Lebanon
  ¦   [ ] Macao
  ¦   [X] Malaysia
  v   [ ] Mongolia

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-6_Help


- Time Zone --------------------------------------------------------------------

  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].


      Time zones
      -----------------------
      [X] peninsular Malaysia
      [ ] Sabah & Sarawak

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-6_Help


- Confirm Information ----------------------------------------------------------

  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.


    Time zone: peninsular Malaysia
               (Asia/Kuala_Lumpur)

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-4_Change    Esc-6_Help


- Root Password ----------------------------------------------------------------

  Please enter the root password for this system.

  The root password may contain alphanumeric and special characters.  For
  security, the password will not be displayed on the screen as you type it.

  > If you do not want a root password, leave both entries blank.


    Root password:  ********
    Root password:  ********

--------------------------------------------------------------------------------
    Esc-2_Continue    Esc-6_Help


System identification is completed.


        This system is configured with NFS version 4, which uses a domain
        name that is automatically derived from the system's name services.
        The derived domain name is sufficient for most configurations. In a
        few cases, mounts that cross different domains might cause files to
        be owned by "nobody" due to the lack of a common domain name.

        Do you need to override the system's default NFS version 4 domain
        name (yes/no) ? [no] : no

        For more information about how the NFS version 4 default domain
        name is derived and its impact, refer to the man pages for nfs(4)
        and nfsmapid(1m), and the System Administration Guide: Network
        Services.

rebooting system due to change(s) in /etc/default/init


[NOTICE: Zone rebooting]


SunOS Release 5.10 Version Generic_118855-33 64-bit
Copyright 1983-2006 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hostname: buaya

SunOS Release 5.10 Version Generic_118855-33 64-bit
Copyright 1983-2006 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hostname: buaya

buaya console login:

(press ~. to back to main server.)

# zoneadm list -vc
  ID NAME             STATUS         PATH
   0 global           running        /
   2 buaya            running        /export/home/buaya

 


AIX - SENDMAIL

There's few way to restart you sendmail in AIX.

1. # refresh -s sendmail
2. # sendmail -bi
3. # sendmail.cf stop 
   # sendmail.cf start
4. # stopsrc -s sendmail 
   # startsrc -s sendmail

If you discover that the sendmail daemon dies after you started it. You have to pass the parameters to sendmail to start it correctly. So best would be:

# stopsrc -s sendmail
# startsrc -s sendmail -a"-bd -q30m"

If you only need to refresh the configuration you can also run:

# refresh -s sendmail

 


Wednesday, April 23, 2008

Hazrul Wedding

Early of this month, I have attended my buddy wedding in JB. I think this is my 3rd time I have been in JB and 1st time drove to be there.

About 400KM, it is taking 3 hours driving and exactly after I had finished my works at 10pm. In JB, I was lost for about 1 hours looking to Seri Malaysia Hotel and damn.... all rooms are occupied. So, I have no chooice to stay-up in expensive hotel that cost me 350 per night. But, they had giving me a very nice room with king size bed, so my night is very comfortable.

The room check-out is actually at 3pm, but I do early check-out at 12PM so I can be at venue at 1PM... Women house - the venue, I've been told by my buddy that he will only arrived around 2PM, so I decide to spent my time at Giant Hypermarket. They then only showing their faces at 2.40PM.

Happy Face... The arrival for man late.. But it is always in Malay tradition

 

Before you can see the women... Please pay the toll  Here, man need to pay the toll twice, the last toll gate girl are very brutal.

 

At last, the man meet the women. At the thorn. Hazrul, you look so serious buddy.

 

Finally, eating time...

 

At 3.30PM, I already move out back to KL... The clouds already turn to dark at those time, so I think better I move out early before I stuck in jam in JB.

 



Next 5 >>

Come... Msg Me

<bgsound src="http://audio.xanga.com/unixadmin/b46bd1557378/audio.html">