# Add static route to netbackup subnet
route add -net 172.24.16.0 netmask 255.255.252.0 gw 172.24.69.1
CHECK INTERFACE STATUS
# mii-tool
eth0: 100 Mbit, full duplex, link ok
eth1: no autonegotiation, 100baseTx-HD, link ok
eth2: 100 Mbit, full duplex, link ok
eth3: no link
eth4: 100 Mbit, full duplex, no link
eth5: no link
# ethtool
CHECK STATUS OF INTERFACE ON BOND
# cat /proc/net/bonding/bond0
# cat /etc/modprobe.conf
NTP
- stop ntpd
# service ntpd stop
# ntpdate -d hostname
# vi /etc/ntp/step-tickers (to include all the ntp servers) cross check with tokrs00001
# service ntpd start
# ntpq –pn
NIS
NIS client setup
# vi /etc/sysconfig/network
NISDOMAIN= sea.rbsfm.com
# vi /etc/yp.conf
domain sea.rbsfm.com server hkg8082xus
domain sea.rbsfm.com server hkg1121xus
domain sea.rbsfm.com server hkg0024ous
domain sea.rbsfm.com server hkg0025ous
# vi /etc/hosts
#NIS servers
175.3.208.23 hkg0023ous
175.3.220.82 hkg8082xus
- check /etc/nsswitch.conf
Passwd: files nis
Shadow: files nis
Group: files nis
- make sure portmap is running
# service portmap start
# chkconfig portmap on
- start ypbind
# service ypbind start
# chkconfig ypbind on
- test it
# ypcat passwd
MOUNT CDROM
# mount -t iso9660 -o ro /dev/cdrom /mnt (or any mount point)
To check whether the driver is loaded properly, type:
# lsmod
MOUNT USB
# fdisk -l
# mount /dev/sdbl1 /mnt
EMCGRAB for Linux
# mount lon0583xus:/apps/packages/ /apps
# cd /apps/EMC/EMC_Grabs/Linux
# mkdir -p /tmp/emc
# cp emcgrab_Linux_v3.9_1.tar /tmp/emc
# cd /tmp/emc
# tar xvf emcgrab_Linux_v3.9_1.tar
# cd emcgrab
# ./emcgrab.sh
CHANGE FILE ATTRIBUTE
# chattr +i /etc/hosts.allow
# chattr -i /etc/hosts.allow (to allow to save)
GET CPU INFO
# egrep "processor|MHz|model name" /proc/cpuinfo
GET SHARED MEMORY AND SEMEPHORES
# sysctl -a | grep shm >> for shared memory
# sysctl -a | grep -i sem >> for semephore
CHECK INCOMING NETWORK PACKETS
# lsof -i | grep 9495
# netstat -an | grep 9495
CHECK ADAPTER
# lspci|grep -i ql
CHECK RUNNING PROCESS NOT OWNED BY ROOT
# ps -ef | grep -iv root
HD CANNOT BE DETECTED
- reboot machine
- press F8 to go to Smart Array configuration menu
- create a new raid
- exit to reboot
- fdisk -l (list current partitions)
- create a new partition
# fdisk /dev/cciss/c0d2 (format to create new partition)
- create filesystem on the new partition
# mke2fs -j /dev/cciss/c0d2
- mount the partition
# mount -t ext3 /dev/cciss/c0d2 /export1
CHECK LIST OF GDS PRINTERS
# ypcat -k printers.conf.byname|grep sin
ADD A NEW GDS PRINTER
-check if a similar printer exist
# ypcat -k printers.conf.byname|grep sin
-check if there are running printer jobs
# lpstat -o
-if there is a running job, cancel it
# cancel sin2111xxp-206
-go to /opt/hpnpl
# cd /opt/hpnpl
# ./hppi
- select 1 for Spooler Administration
- select 1 to add printer
RSYNC
#rsync -av -e ssh lon0261xus:/var/satellite/esxbuild /export1/satellite/ --progress –stats
CHECK BIOS
# hpasmcli -s "show server"
CHECK FANS and REDUNDANT PSUs
# hplog -f
# hplog –p
CHECK HP SIM
# hplog -v
REDUCE LINUX CACHED MEMORY
# grep ^Cached: /proc/meminfo
# dd if=/dev/zero bs=1024k count=
# grep ^Cached: /proc/meminfo
ERROR/s Encountered
ERROR: Unable to communicate with the RILOE II/iLO.
RESOLUTION:
To restore communication with the HP Lights-Out Online Configuration Utility for Linux, perform the following:
Stop the HP SNMP Agents (hp-snmp-agents) by typing the following command:
# /etc/init.d/hp-snmp-agents stop
Restart HP ProLiant Channel Interface Device Driver for iLO / iLO 2 (hp-ilo) by typing the following command:
# /etc/init.d/hp-ilo restart
Start the HP SNMP Agents (hp-snmp-agents) by typing the following command:
#/etc/init.d/hp-snmp-agents start
ERROR: User does not exist (NIS related error)
RESOLUTION:
Put (+) in from of userid in /etc/passwd and /etc/shadow files
e.g. on /etc/passwd
+@all-all-users-tc-default-users
+bradmark
+@all-all-users-tc-oracle-dba