Showing posts with label Solaris 10. Show all posts
Showing posts with label Solaris 10. Show all posts

Friday, November 8, 2013

How-to for simple SysAdmin tasks which gets performed differently on Solaris 11

The previous behavior of modifying a configuration file to configure naming services no longer works. 

How a system will get information on hosts, users? 

On Solaris 10 - Update /etc/nsswitch.conf

On Solaris 11 

#svccfg -s svc:/system/name-service/switch:default


How a system will be able to resolve the hostname resolution with DNS?

On Solaris 10 - Update /etc/resolv.conf

On Solaris 11

# svccg
svc:> select /network/dns/client
svc:/network/dns/client> setprop config/options = "ndots:2,retrans:3,retry:1"
svc:/network/dns/client> listprop config/options
config/options astring     ndots:2,retrans:3,retry:1
# svcadm refresh dns/client

How to change the hostname of the system?
On Solaris 10- Update /etc/nodename

On Solaris 11

# svccfg -s svc:/system/identity:node setprop config/nodename = astring: nodename
# svcadm refresh svc:/system/identity:node

# svcadm restart svc:/system/identity:node

How to change or configure Locale and the timezone?



Solaris 11 -changing locale
# svccfg -s svc:/system/environment:init setprop environment/LANG = astring: fr_FR.UTF-8# svcadm refresh svc:/system/environment


Solaris 11- For changing Timezone

# svccfg -s timezone:default setprop timezone/localtime= astring: US/Mountain

# svcadm refresh timezone:default

How to set default route on Solaris 10 vs 11?
On Solaris 10,
You need to update /etc/defaultrouter

Oracle Solaris 11, you can persistently set the default route for a system,
route -p add default ip-address

Wednesday, June 12, 2013

Setting no expiry of the accounts on solaris

To turn off password aging and setting the user account to non-expiry


passwd -x -1 username

Sunday, May 19, 2013

Solaris 10 -Troubleshooting HBA Card or LUN Issue

Run the command fcinfo hba-port to get the WWPN and WWNN , Contact Storage Administrator to help you further with the PN and NN number, if the HBA port status is not showing as on-line.

# fcinfo hba-port
HBA Port WWN: 21000003ba9b1739   --WWPN
        OS Device Name: /dev/cfg/c1
        Manufacturer: QLogic Corp.
        Model: 2200
        Firmware Version: 02.01.145
        FCode/BIOS Version: ISP2200 FC-AL Host Adapter Driver: 1.15 04/03/22
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: L-port
        State: online
        Supported Speeds: 1Gb
        Current Speed: 1Gb
        Node WWN: 20000003ba9b1739  --WWNN
HBA Port WWN: 210000e08b80eee8 --WWPN
        OS Device Name: /dev/cfg/c2
        Manufacturer: QLogic Corp.
        Model: 375-3102-xx
        Firmware Version: 03.03.28
        FCode/BIOS Version:  fcode: 1.13;
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: unknown
        State: offline
        Supported Speeds: 1Gb 2Gb
        Current Speed: not established
        Node WWN: 200000e08b80eee8 ---WWNN
HBA Port WWN: 210000e08b81e0d3  --WWPN
        OS Device Name: /dev/cfg/c3
        Manufacturer: QLogic Corp.
        Model: 375-3102-xx
        Firmware Version: 03.03.28
        FCode/BIOS Version:  fcode: 1.13;
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20110321-3.05
        Type: unknown
        State: offline
        Supported Speeds: 1Gb 2Gb
        Current Speed: not established
        Node WWN: 200000e08b81e0d3 --WWPN

Solaris 10 - Troubleshoot NIC or Network link failure

There could be few network components which can cause a network failure.

1. NIC card or a Network Card
2. The Network Cable
3. The connected switch

Lets try to understand how we can troubleshoot these issues.

First check if the IP Address is already assigned to the network interface by running the ifconfig command.

1. In my case, we  have interface ce0 which already has a IP assigned and the status is showing as up.

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
ce0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.192.1.10netmask ffffff00 broadcast 10.192.XX.255
        ether 0:3:ba:9b:17:3a
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.XX.XX netmask fffffe00 broadcast 192.168.XX.255
        ether 0:3:ba:9b:17:39

Though the interface is showing as up ,now lets check the link status.

# dladm show-dev
ce0             link: down      speed: 0     Mbps       duplex: unknown
ce1             link: up        speed: 1000  Mbps       duplex: full
#

Now the link is showing as down, now lets try to find out the failure

Action Plan to Eliminate components
a. First change the cable to see if the cable has a problem -Eliminate cable
b. Check from the network team if there is a issue with the switch. -Eliminate switch
c. If both the above components are good then get the network card changed.