L1 Useful Linux Commands Inode Information
L1 Useful Linux Commands Inode Information
Inode information
I-node usage can be checked
[root@bemlx2 ~]# df -i /var
Filesystem
Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg00-lv_var
524288 3834 520454 1% /var
System information
# uname -a
Linux bemlx2.na.pg.com 2.6.9-34.ELhugemem #1 SMP Fri Feb 24 17:04:34 EST 2006
i686 i686 i386 GNU/Linux
cat /etc/redhat-release shows the current OS version and update
Server hardware details (serial number, model, bus details) can be found by using
the below command
# dmidecode
# echo $LANG show you the current system language
# free m will give you the memory and swap information
#hwclock show shows the hardware clock
Swapon s also shows the swap information
lspci shows all PCI device information
lsusb shows all USB device Inormation
ifconfig a shows all the lancard information.
sysreport -> collect some detailed information
about the hardware and setup of your Red Hat Linux system.
/var/log/messages will have all the standard system error messages
/var/log/dmesg kernel boot messages
/var/log/secure security , authentication and xinetd messages
/var/log/ all other application related logs
File system
fdisk l shows all the partition information
cat /proc/partitions also serve the same .
Hardware addresses
Cat /proc/*
lspci -vvv
dmesg
dmidecode
/sbin/hpasmcli
Etc..
hpasmcli is a utility to check the system health, it is a command based utility
hpasmcli> show
SHOW ASR
SHOW BOOT
SHOW DIMM
SHOW F1
SHOW FANS
SHOW HT
SHOW IML
SHOW IPL
SHOW NAME
SHOW PORTMAP
SHOW POWERSUPPLY
SHOW PXE
SHOW SERIAL [ BIOS | EMBEDDED | VIRTUAL ]
SHOW SERVER
SHOW TEMP
SHOW UID
SHOW WOL
Eg:hpasmcli> SHOW SERVER
System
: ProLiant ML370 G4
Serial No. : USE626NBD9
ROM version : P50 11/09/2005
iLo present : Yes
Embedded NICs : 1
NIC1 MAC: 00:17:08:54:dd:b2
Processor: 0
#3 PROCESSOR_ZONE Yes
#4 PROCESSOR_ZONE Yes
NORMAL 5%
NORMAL 5%
No
No
N/A
N/A
Yes
Yes