Sayfalar

31 Aralık 2015 Perşembe

IBM AIX' lerde bir kaç kullanılacak ayar.

# refresh -s sshd
0513-005 The Subsystem, sshd, only supports signal communication.

In order to have a process such as SSHD re-read its configuration file (/etc/ssh/sshd_config), you must do a "stopsrc -s sshd" followed by a "startsrc -s sshd":
# stopsrc -s sshd
0513-044 The sshd Subsystem was requested to stop.
# startsrc -s sshd
0513-059 The sshd Subsystem has been started. Subsystem PID is 3670044.
As you can see when you do the "stopsrc" it just says the process was requested to stop; not that it was stopped.   This implies that there might be a delay before the process actually stops.  
So what a lot of people do in scripts where they need to restart processes like this is something like this:

stopsrc -s sshd
sleep 10
startsrc -s sshd
Here is a one liner to request a stop to a SRC process like SSHD, verify it is stopped, and then restart it:
stopsrc -s sshd && until lssrc -s sshd | grep -q inoperative; do echo "Waiting for sshd to stop"; perl -e 'select(undef,undef,undef,.25)'; done && startsrc -s sshd



IBM AIX'de  core sayılarını ve hostname version kernel bilgilerini kontrol etmek için kullanılan komutlar



   1. lsdev -Cc processor

proc0 Available 00-00 Processor
proc2 Available 00-02 Processor
SMT thread processors are seen with bindprocessor

   1. bindprocessor -q

The available processors are: 0 1 2 3

lparstat -i will show the virtual and logical processors.

   1. lparstat -i | grep CPU

Online Virtual CPUs : 2
Maximum Virtual CPUs : 15
Minimum Virtual CPUs : 1
Maximum Physical CPUs in system : 2
Active Physical CPUs in system : 2
Active CPUs in Pool : 2
Physical CPU Percentage : 25.00%

topas -L shows logical processors,
mpstat shows virtual

   1. lsattr -El proc0

frequency 1498500000 Processor Speed False
smt_enabled true Processor SMT enabled False
smt_threads 2 Processor SMT threads False
state enable Processor state False
type PowerPC_POWER5 Processor type False

   1. lscfg -v | grep -i proc

Model Implementation: Multiple Processor, PCI bus
proc0 Processor
proc2 Processor

   1. prtconf | pg

System Model: IBM,9111-520
Machine Serial Number: 10EE6FE
Processor Type: PowerPC_POWER5
Number Of Processors: 2
Processor Clock Speed: 1499 MHz
CPU Type: 64-bit
Kernel Type: 64-bit

Hiç yorum yok:

Yorum Gönder