Search This Blog

Monday, May 7, 2012

To add a persistent static route, you will need to create a route-ethX file.

To add a persistent static route, you will need to create a route-ethX file.

/etc/sysconfig/network-scripts/route-ethXX here refers to your interface number.

Every entry or a route has three lines as follows:

GATEWAY=xxx.xxx.xxx.xxx
NETMASK=yyy.yyy.yyy.yyy
ADDRESS=zzz.zzz.zzz.zzz

As the names implies, they are the gateway IP, Netmask and the IP/Network Address.

Note the number next to each of the three entities. This number defines the route entry number and should be the same on all the entities.

Example:

[root@vm network-scripts]# cat route-eth1
 GATEWAY0=10.1.117.1
 NETMASK0=255.255.255.0
 ADDRESS0=10.1.117.0


#route add -net 192.125.169.45 netmask 255.255.255.255 gw 195.232.168.1 eth1
# cd /etc/sysconfig/network-scripts/
# vi route-eth1

GATEWAY0=195.232.168.1
NETMASK0=255.255.255.255
ADDRESS0=192.125.169.45


Default route is at path:
/etc/sysconfig/network

How to check the FC card version:


testlab:/root # fcmsutil /dev/fcd0 vpd
                V I T A L   P R O D U C T   D A T A
                ---------   -------------   -------

 Product Description    : "HP 2Gb Fibre Channel FC/GigE Combo Adapter                 "

 Part number            : "A9782-60002"

 Engineering Date Code  : "A-4550"

 Part Serial number     : "PRA07071KM"

 Misc. Information      : "PW=25W;PCI 66MHZ;PCI-X 133MHZ"

 Mfd. Date              : "4608"

 Check Sum              : 0xee

 EFI version            : "001.49"

 ROM Firmware version   : "003.003.154"

 Asset Tag              : "NA"

nologin significance

You are preparing to do your monthly maintenance and want to ensure no new logins occur. You also want to make sure that no one can login during the maintenance period. Which actions do you need to take?

Create /etc/nologin file on your system
Set the NOLOGIN feature value to 1 withing /etc/default/security

ls -la result is unreadable

ls -la result is unreadable

Able to read the directory by root user, but not by normal user

$ ls
. unreadable

 
It is purely a permission problem.
The directory is not having read permission for either the user/group/other but having write and execute permissions

Go to its parent directory.

testlab:/usr/sap/trans#ls -ld data
drwxrwx--x  2053 root       sapsys     3379200 May  7 13:20 data
testlab:/usr/sap/trans#chmod g+r data
testlab:/usr/sap/trans#chmod o+r data
testlab:/usr/sap/trans#ls -ld data
drwxrwxr-x  2053 root       sapsys     3379200 May  7 13:20 data