Archive for the ‘Solaris’ Category

Switch Between the ALOM CMT Shell and the Host Console

April 25th, 2021, posted in Solaris
Share

Switch Between the ALOM CMT Shell and the Host Console

  1. To switch from the ALOM CMT shell to the host console, type:

    SC> console
    host>
  2. To switch from the console to the ALOM CMT shell, type hash-period:

    host> #.
    sc>
Share

Checking Last 10 Reboots of a Solaris Server

March 28th, 2021, posted in Solaris
Share

 

On your Solaris boxes here, you’d need to doChecking Last 10 Reboots of a Solaris Server,Checking Last 10 Reboots, Solaris Server,Last 10 Reboots of a Solaris Server,Reboots of a Solaris Server,Reboots of a Solaris,Sys DBA,DBA,Reboot
last -10 reboot to actually get the times that the system was rebooted.
As it shows the system down messages, as well as the boot messages.

 

 

[email protected] # last -10 reboot
reboot system boot Sun Aug 16 10:53
reboot system down Sun Jun 14 08:50
reboot system boot Sun Jun 14 08:17
reboot system down Mon Mar 2 12:44
reboot system boot Mon Jan 27 10:23
reboot system down Sun Jan 26 13:15
reboot system boot Sun Jan 26 12:36
reboot system down Wed Jan 22 14:40
reboot system boot Mon Jan 20 13:55
reboot system down Mon Jan 20 12:59
Share

SWITCH BETWEEN ALOM AND ILOM ON SPARC TSERIES SERVER

March 14th, 2021, posted in Solaris
Share

Switching between ALOM and ILOM is applicable on SPARC Servers (T-Series)

SWITCH FROM ILOM TO ALOM :
If you have logged to ilom as a root user (you may be logged in as different user) and you want to switch to ALOM then run this below command, logout and log back in.

->set /SP/users/root cli_mode=alom

SWITCH FROM ALOM TO ILOM :
If you have logged to alom shell as a root user (you may be logged in as different user) and you want to switch to ILOM shell then run the below command, logout and log back in.

sc>userclimode root default
Share

DNS (Domain Name System) Configuration For Solaris 10 And Older Versions

February 28th, 2021, posted in Solaris
Share

Step 1: Check /etc/resolv.conf file

/etc/resolv.conf file includes the primary and secondary DNS server IP address for Solaris system.

Step 2: Open & Edit /etc/resolv.conf

#vi /etc/resolv.conf

Add the following lines to it:

nameserver      10.xx.xx.223
nameserver      10.xx.xx.224
search domaindns.oracle.com

Step 3: Enable the name resolving using DNS

#cp /etc/nsswitch.dns /etc/nsswitch.conf

Step 4: Test new name server

#/usr/sfw/sbin/nslookup dns.oracle.com

Output:

Server: xx.oracle.com
Address:  10.xx.xx.223
Non-authoritative answer:
Name:    dns.oracle.com
Address:  10.xx.xx.224
Share

Solaris 10 DNS (Domain Name Service) Server And Server Configuration

February 21st, 2021, posted in Solaris
Share

Problem

All DNS (Domain Name Service) clients require the presence of the /etc/nsswitch.conf and /etc/resolv.conf files. Note that the DNS server must also be configured as a DNS Client if it intends to use its own DNS Services.

The /etc/nsswitch.conf file specifies the resolver library routines to be used for resolving hostnames and addresses. Modify the /etc/nsswitch.conf file by editing the hosts entry and adding the dns keyword.

To ensure proper network configuration during the boot process, make sure that the files keyword is listed first. The following example shows a hosts entry configured for DNS.

<snippet from /etc/nsswitch.conf>

hosts: files dns

The /etc/resolv.conf file specifies the Name Servers that the client must use for the Domain, and the search path used for queries.

<snippet from /etc/resolv.conf for DNS clients of the one.edu domain> 

search one.edu

nameserver xxx.xxx.xxx.xxx

nameserver xxx.xxx.xxx.xxx

Solution

 Verify the status of DNS services. In the following example the DNS client service is running and the DNS server is disabled.

   svcs -a | grep dns

disabled       Sep_22   svc:/network/dns/server:default
 
online         Sep_22   svc:/network/dns/client:default
 
svcs -o state,nstate,fmri /network/dns/client:default
 
STATE          NSTATE        FMRI
 
online         -             svc:/network/dns/client:default
 
svcs -o state,nstate,fmri /network/dns/server:default
 
STATE          NSTATE        FMRI
 
disabled       -             svc:/network/dns/server:default
 
Disable the DNS Client from SMF
svcadm disable svc:/network/dns/client:default
Restart DNS Client from SMF
svcadm enable svc:/network/dns/client:default
Verify status and Dependency for DNS client
 
svcs -l svc:/network/dns/client:default
fmri         svc:/network/dns/client:default
 
name         DNS resolver
 
enabled      true
 
state        online
 
next_state   none
 
state_time    4 November 2009 10:41:01 GMT
 
logfile      /var/svc/log/network-dns-client:default.log
 
restarter    svc:/system/svc/restarter:default
 
dependency   require_all/none svc:/system/filesystem/minimal (online)
 
dependency   require_all/none svc:/network/service (online)
 
dependency   require_all/none file://localhost/etc/resolv.conf (online)
 
dependency   require_any/error svc:/network/loopback (online)
 
dependency   optional_all/error svc:/milestone/network (online)
 
Verify the status and Dependency for the DNS Server
 
svcs -l svc:/network/dns/server:default
 
fmri         svc:/network/dns/server:default
 
enabled      false
 
state        disabled
 
next_state   none
 
state_time    4 November 2009 10:40:33 GMT
 
restarter    svc:/system/svc/restarter:default
 
dependency   require_all/none svc:/system/filesystem/local (online)
 
dependency   require_any/error svc:/network/loopback (online)
 
dependency   optional_all/error svc:/milestone/network (online)

 

Solaris 10 DNS client & servers configuration files and log locations:

/etc/nsswitch.conf
/etc/resolv.conf
/etc/netconfig
/etc/hosts
/etc/named.conf - BIND Configuration
/var/named/bind-log - DNS server log
/var/adm/messages - system messages
/var/svc/log/network-dns-client:default.log - SMF DNS client log (search for ERRORS and
/var/svc/log/network-dns-client:default.log - SMF DNS server log (search for ERRORS and
/var/svc/manifest/network/dns/client.xml - DNS Client Manifest Configuration
/var/svc/manifest/network/dns/server.xml - DNS Server Manifest Configuration

 

Solaris 10 DNS Client & servers Tools:

/usr/sbin/dig - DNS lookup utility, replaces nslookup future release of Solaris.
/usr/sbin/nslookup - DNS lookup utility, now marked obsolete and will be removed in a future release of Solaris
/usr/sbin/rndc - name server control utility
named-checkconf - named configuration file syntax checking tool
named-checkzone - zone file validity checking tool
/usr/sbin/svcs - Report SMF service status
/usr/sbin/svcadm - Manage SMF services.
/usr/sbin/svcprop - Verify SMF configuration properties

Share