26 February 2008

Steps to Configure IP for MP-Port in HP Servers

Step 1: Connect a terminal to the console port of the system.

Step 2:
Login tothe console using username and password. The default username for MP is typically Admin and the default
password is Admin.
Step 3: Type “cm” on the MP prompt to go to the MP command menu
Step 4: Type “lc” on the MP CM prompt to modify the LAN configuration and press “A” when prompted for modification
Current LAN Configuration:
- - MAC Address : 0x001635b66433
D - DHCP Status : Disabled
I - IP Address : ---------------
M - MP Host Name: ---------------
S - Subnet Mask : ---------------
G - Gateway Address : ------------
L - Link State : Auto Negotiate
W - Web Console Port Number : 2023
- - SSH Access Port Number : - (MP Feature Not Licensed)
- - IPMI / LAN Port Number : 623A


Enter parameter(s) to change, A to modify All, or [Q] to Quit:


Step 5: Type the IP address of the MP port.

IP Address:
Current ->
127.0.0.1 (default)

Modifying this parameter will cause all present LAN and Web connections to be dropped.
Enter new value, or Q to Quit: 172.16.1.100
Step 6: Type the hostname of the MP port.
Host Name:
Current ->
mp001635b66433 (default)

Enter new value, or Q to Quit: m1sys100
Step 7: Type the Subnet Mask of the MP port.
Subnet Mask:
Current ->
255.255.255.0 (default)

Modifying this parameter will cause all present LAN and Web connections to be dropped.

Enter new value, or Q to Quit: 255.255.224.0
Step 8: Type the Gateway of the MP port.
Gateway Address:
Current ->
127.0.0.1 (default)

Enter new value, or Q to Quit: 172.16.0.1
Step 9: Press “Enter” when prompted for Web Console Port Number.
Web Console Port Number:
Current -> 2023 (default)
Options: 23, 2000 to 2400

Modifying Web Port number will cause all present Web connections to be dropped.

Enter new value, or Q to Quit:

-> Current Web Console Port Number has been retained

Step 10: Press “Enter” when prompted for SSH Console Port Number.
SSH Console Port Number:
Current -> 22 (default)
Options: 22, 2000 to 2400

Enter new value, or Q to Quit:
-> Current SSH Console Port Number has been retained
Step 11: Type “Disabled” or “D” when prompted for DHCP Status.
DHCP Status:
Current -> D - Disabled
E - Enabled (default)

Modifying this parameter will cause all present LAN and Web connections to be dropped.

Enter new value, or Q to Quit: Disabled

Step 12: Press “Enter” when prompted for Link State.
Link State:
Current -> A - Auto Negotiate (default)
T - 10BaseT

Modifying this parameter will cause all present LAN and Web connections to be dropped.


Enter new value, or Q to Quit:

-> Current Link State has been retained

Step 13: Type “xd” on the MP CM prompt and press “r” to reset MP.
Step 14: From any of the lab machines, ping to the newly configured IP address of the GSP and see if it is alive on the
network.

21 February 2008

Online Security testing for Mail Server (SMTP)

To check whether your SMTP server reliable and fully secured.Check the URL http://www.test-smtp.com

How to Make USB Pen drive as a bootable device (RedHat)

If you cannot boot from the DVD/CD-ROM drive, but you can boot using a USB device, such as a USB pen drive, the following alternative boot method is available:

To boot using a USB pen drive, use the dd command to copy the diskboot.img image file from the /images/ directory on the DVD or CD-ROM. For example:

dd if=diskboot.img of=/dev/sda

Note: Your BIOS must support booting from a USB device in order for this boot method to work

14 February 2008

What is umask in Linux/Unix?

The User file-creation mode mask (umask) is use to determine the file permission for newly created files. It can be used to control the default file permission for new files. It is a four-digit octal number .

Default umask for normal user is 0002.
Default umask for root user is 0022.

Default base permission for directories & files are 0777 (rwxrwxrwx) & 0666 (rw-rw-rw-) respectively.
To calculate directory permission for root user
Default Permissions : 777
Subtract umask value: 022 (-)
Allowed Permissions : 755

To calculate file permission for root user
Default Permissions : 666
Subtract umask value: 022 (-)
Allowed Permissions : 644

The following example explains the steps needed to set umask for permissions 700 for user files. The idea very simply only user is allowed to read or write file.
Default Permissions: 777
Subtract umask value: 077 (-)
Allowed Permissions: 700

$ umask 077
$ touch file.txt
$ ls -l file.txt

Output:

-rw------- 1 demo demo 0 2008-10-10 12:21 demo.txt

12 February 2008

Procedure to configure IP for GSP Port in HP-PA Server Models

Step 1: Connect a terminal to the console port of the system.
Step 2: Login to the console using username and password. The default username for GSP is typically root and the default password is root.
Step 3: Press Ctrl+B to go to the GSP prompt. Sometimes, it is required to press Ctrl+Ecf to get write access to the console.
Step 4: Type “lc” on the GSP prompt to modify the IP configuration and press “Y” when prompted for modification
Current configuration:
MAC Address : 0x00110a417c09
IP Address : --------------
GSP Host Name : --------------
Subnet Mask : --------------
Gateway : --------------
Web Console Port Number : 2023
Do you want to modify the LAN configuration? (Y/[N]): y
Step 5: Press “Y” when prompted to modify the Current IP Address.
Current IP Address:
Do you want to modify it? (Y/[N]): y
Step 6: Type the IP address of the GSP port and press “Y” to confirm.
New IP Address: 172.16.1.100
Confirm? (Y/[N]): y
Step 7: Press “Y” when prompted to modify the current GSP Host Name.
Current GSP Host Name:
Do you want to modify it? (Y/[N]): y
Step 8: Type the hostname of the GSP port and press “Y” to confirm
New GSP Host Name: m1sys100
Confirm? (Y/[N]): y
Step 9: Press “Y” when prompted to modify the current Subnet Mask.
Current Subnet Mask:
Do you want to modify it? (Y/[N]): y
Step 10: Type the subnet mask of the GSP port and press “Y” to confirm
Enter new Subnet Mask: 255.255.224.0
Confirm? (Y/[N]): y
Step 11: Press “Y” when prompted to modify the current Gateway.
Current Gateway:
Do you want to modify it? (Y/[N]): y
Step 12: Type the gateway of the GSP port and press “Y” to confirm.
Enter New Gateway: 172.16.0.1
Confirm? (Y/[N]): y
Step 13: Press “n” when prompted to modify the current Web Console Port.
Current Web Console Port Number: 2023
Modifying Web Port number will cause all present Web
connections to be dropped.
Do you want to modify it? (Y/[N]): n
-> Reset the GSP for LAN configuration to take effect.
-> Use the R option of the XD command to reset the GSP
Step 14: Type “xd” at the GSP prompt and press “r” to reset the GSP.
Step 15: From any of the lab machines, ping to the newly configured IP address of the GSP and see if it is alive on the network.