Basics Audit Commands

The following information is the basic commands use to audit an AIX Server. However more commands are out there on the Net.
bash-3.00# more /var/adm/sulog/

lsuser -f ALL|more(to list users)

http://www.unixguide.net/unixguide.shtml
 /usr/lib/errdemon -l

/var/adm/ras/errlog

lsdev -C|more(devices infor)

lspv -l  hdisk0

 bootinfo -s hdisk0

bootinfo -K (kernel type eg 32bit)

ls -l /unix (to know if I am running a uniprocessor kernel or a multiprocessor kernel?)

lsvg -l rootvg

 lspv |more

lsdev -Cc tty

bash-3.00# errpt -a -c|more(display a full-details of entries as they are recorded in the error log)

To refresh the syslogd subsystem, enter: refresh -s syslogd

To display if the hardware is 32-bit or 64-bit, type:

bootinfo -y

To display real memory in kilobytes (KB), type one of the following:

bootinfo -r    

lsattr -El sys0 -a realmem 


trcrpt (to generate trace log)

curt (to convert trace file into cpu)

instfix -ik

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Lloyd@@@@@@@@@@@@
lsdev -P -H ( to list all supported device)

lsdev -Pc tape >> to get the device infor for tape

lsattr -E -l device-name -a realmem ( to get the amount of memory for a device)

Note##################
lsdev -C -H

lsattr -EH -l devicename based on the first command

lsattr -El devicename -a realmen

lsdev -CHF "name status physloc location description"

 lsdev -CHF "name" list device name

lscfg -v (provide details device information

getconf -a (provide the values for system configuration variables
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Lloyd@@@@@@@@@@@@@@@@@@@@@@

slv -l volume

lslv -m volume

lsvg -o |lsvg -i -l (list logical volumes)

lslv volume

lspv -l disk

lspv

lspv disk
#####################################################################Lloyd################################
lscfg -vs|grep proc

 lscfg -vs|grep proc | wc -l (to check for the number of CPU)

lsdev -Cc processor | grep Available | wc -l

lsdev -C|grep proc|wc -l

lscfg -vl cpucard0 | grep FRU

lscfg -vp|more

##################################################################Lloyd####################################
ps -fle (to know the cpu usage)

iostat

prostate
################################################################Lloyd#####################################
uname -m processor speed

lsattr -El proc0(type of processors)

     prtconf

     pmcyles -m

lsattr -El L2cache0

To display the number of hard disks on your system, type:
tprof (cpu infor)tprof -k -x sleep 10

topas -D

lspv

lscfg -pv ( to get detail system information)

oslevel -s ( to get the CSP in the system)
#####
lscfg -vp | grep -p Platform##################################
lslpp -l|more ( to display information about filesets(patches))

Command: sysstat -x -c Count -s Time_in Second

Example: sysstat -x -c 5 -s 2

Performance
To show which filesets need to be installed or corrected, type:

lppchk -v
=============================================Lloyd===============================
entstat ent3 (network infor)

lsdev (fible adaptor

fcstat fcs0
###########################################Lloyd################################

Command: sysstat -x -c Count -s Time_in Second

Example: sysstat -x -c 5 -s 2



And

environment status chassis





Capacity

=======

df -Ag



[It can also be measured from GUI]



Backup/Recovery

==============

Backup and recovery is applicable for NetApp VTL [virtual tape library]



Storage Management

=================

It can be done from command line or GUI
Lloyd Johnson
IT Specialist/Consultant on
Solaris 7,8,9,10
Redhat Linux
OpenSuse
IBM-AIX
VMware ESX
ECM Storage

Comments

Popular posts from this blog

Push command for NetWorker Client Upgrade

Factors Affecting Users’ Sense of Security and Trust in Integrating Electronic health record to the cloud

Basic Elastic Cloud Storage Troubleshooting Commands