Thursday, August 29, 2013

Default username, password and IP address of iDRAC

During these few days, I just got a new Dell PowerEdge R620 server and I am new with it. After I searched for more information about remote control GUI, below is the information I got.

Management LAN is iDRAC (LAN port on rear view)
Default iDRAC IP address is 192.168.0.120
Default username to login on the iDRAC web page is root
Default password to login is calvin

If you login on iDRAC's web page, it will let you to change the default password, but there is option for keeping this default password. If you want to keep this default password, select that option.

Hope this blog will help you some when you face same problem as mine.


Credits: 
http://rodolfovaraujo.wordpress.com/2012/05/25/dell-idrac-default-user-and-password/ (for default username and password)
- one of my friend, who gave me the default IP address, thank you so much.

Tuesday, August 27, 2013

SSH with no prompt for password

This is step for use in shell script which there is transfer across the machine within the script. Hope it may helpful.


Note: do on source host and put key on destination host and I did it on HP-UX machine, can be apply to every unix OS.

On source host
$ mkdir .ssh
$ chmod 700 .ssh
$ ssh-keygen -t rsa    ##do not use passphrase
$ touch .ssh/authorized_keys
$ chmod 644 .ssh/authorized_keys
$ ls -al
total 176
drwxr-x---   3 oper1      users         8192 Sep  2 16:26 .
drwxr-xr-x  17 root       root          8192 Sep  2 15:45 ..
-r--r--r--   1 oper1      users          842 Mar 14  2005 .cshrc
-r--r--r--   1 oper1      users          347 Nov 14  2000 .exrc
-r--r--r--   1 oper1      users          344 Mar 14  2005 .login
-r--r--r--   1 oper1      users          449 Mar 14  2005 .profile
-rw-------   1 oper1      users          118 Sep  2 16:26 .sh_history
drwx------   2 oper1      users           96 Sep  2 16:25 .ssh
-rw-r--r--   1 oper1      users          396 Sep  2 16:26 id_rsa.pub
$ sftp targethost
Connecting to targethost...
Password:
sftp> pwd
Remote working directory: /home/oper1
sftp> put id_rsa.pub
Uploading id_rsa.pub to /home/oper1/id_rsa.pub
id_rsa.pub                                                                                        100%  224     0.2KB/s   00:00  
sftp> quit

On target host
$ pwd
/home/oper1/.ssh
$ cat id_rsa.pub >> .ssh/authorized_keys



I think this method is simple, easy and no need more software to install.

Wednesday, August 7, 2013

How to set the console output

This problem I found when the server has several output terminal; KVM console (VGA output) and serial console.

How to check what primary output in-use:- 
1. No any output stream on the terminal
2. Check via command line in shell mode

    shell> conconfig

This means primary output terminal

To change the primary output:- 

    shell> conconfig 2 primary

Means change terminal 2 as primary instead.

Ps. I do not have any pictures in my hands now. I will add some pictures later (when I found one :P)

Tuesday, August 6, 2013

Some basic thing which should to know

Many of my colleagues are familiar with linux, once they use the HP-UX they usually confused.

Here below is the guide for learning HP-UX as basically.

1. Most of HP-UX use korn shell (ksh). I said "most of" because in few years later the new installation is bourne shell (sh).

2. The user's profile is located at ~/.profile

3. You can use history command by <esc>+k . Yes, correct. It use vi mode, means that you can search the typed command by /<keyword> and 'n' for next search. 

4. Root's home is located at '/' 

5. To check the disk partition use command 'bdf'. It is easier than another command. 

6. HP-UX is no option '-h' in df, do not try to use 'df -h'

These are some example I figure out this time. Hope these may useful for some newbies. 

Monday, August 5, 2013

About me, myself

I have worked as system administrator after I graduated from university about 1 year. From the beginning until now, 7 years approximately.

My purpose of creating this blog is, keep my knowledge in here, once I forget something so I can search in here and still share my knowledge to another as well.

Every blogs in here, come from my past experience and found from another website which I do not remember which website. If you found some of my experience is useful and want to use or share, you can use it without of any permission from me. Hope it works :)

My most strength is HP-UX. Moreover, I still have some experience about Oracle database, Oracle weblogic and more, I will point out in each entry.