Archive for the ‘Solaris’ Category

Increase Bash History Size

June 10th, 2021, posted in Solaris
Share

Add A User From The Command Line In Solaris,Add A User From The Command Line In Solaris 10,Add A User From The Command Line, In Solaris10 ,Add A User ,The Command Line In Solaris10,The Command Line In Solaris,solaris 10,

Add this to your .profile or .bash_profile to increase the history size to 10000

export HISTFILESIZE=10000

Share

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.

 

 

root@immam # 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