Posts Tagged ‘Solairs’

Capture Snapshot From ILOM

July 25th, 2021, posted in Solaris
Share
1)
-> cd /SP/diag/snapshot
 
2) specify the host and directory where the snapshot will be transferred. 
-> set dump_uri=ftp://<valid_ftpuser>@ip_address//<directory>
Enter remote user password: *******
Set ‘dump_uri’ to ‘ftp://root@<ip_address>//tmp’

3) Check status of “snapshot”
-> show

/SP/diag/snapshot

   Targets:

   Properties:

       dataset = normal
       dump_uri = (Cannot show property)
       encrypt_output = false
       result = Running  <– check for completed status

4) Check for the completion of snapshot
-> show

/SP/diag/snapshot

   Targets:

   Properties:

       dataset = normal
       dump_uri = (Cannot show property)
       encrypt_output = false
       result = Collecting data into
ftp://root@<ip_address>//tmp/v4v-t5120a-sp_<ip_address>_2013-08-10T17-43-27.zip
Snapshot Complete.

Done.
References:
Share

SSH ERROR No Hostkey Alg

July 18th, 2021, posted in Solaris
Share

Do not ever change the file permissions of rsa and dsa keys. I was working on troubleshooting some ssh issue and I decided to give read permissions to everyone on file /etc/ssh/ssh_host_rsa_key and the next thing I know I cant login to the server via ssh.

#ssh testbox01
no hostkey alg

#ls -l /etc/ssh/ssh_host_rsa_key
-rw——-. 1 root ssh_keys   1679 Nov 25  2014 ssh_host_rsa_key

#ls -l /etc/ssh/ssh_host_dsa_key
-rw——-   1 root     root         668 Aug 20  2007 /etc/ssh/ssh_host_dsa_key

#ls -l /etc/ssh/ssh_host_rsa_key.pub
-rw-r–r–. 1 root root        382 Nov 25  2014 ssh_host_rsa_key.pub
#ls -l /etc/ssh/ssh_host_dsa_key.pub
-rw-r–r–. 1 root root        382 Nov 25  2014 ssh_host_dsa_key.pub
Make sure the permissions are set to 0600 for the private ssh keys and 0644 for public ssh keys(default public keys under /etc/ssh ends with an extension .pub)
Share

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

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