Tổng số lượt xem trang

Được tạo bởi Blogger.

Tìm kiếm Blog này

Solaris: System display information - Kiểm tra thông tin hệ thống

# date    : display date and time -> tìm lệnh cấu hình thời gian cho máy (Xem lại note về cấu hình date time).
# hostid  : Host ID number
# psrinfo : Display information about CPU (precise information use: # psrinfo -pv)
# prtconf : Display common system configuration information.


uname:
# uname -v  : OS version
# uname -r  : OS release level
# uname -s  : name OS
# uname -a  : print all information
# uname -X  : print more detail information


Display a System's Product Name:
$ prtconf -b
$ prtconf -vb

Enable ssh Solaris 11

Login in system with root user
1. Edit the file:  /etc/ssh/sshd_config
edit line:  PermitRootLogin yes  and save file.

# vi /etc/ssg/sshd_config
PermitRootLogin yes

2. Restart services:
# svcadm restart ssh

Solaris - AIX - Centos: Create new user - Tạo user monitor mới

Create new user with default role (staff)

Centos:
# useradd -m username
# passwd username

Note: - -m: create a local home directory on the system for the specified user
          - The account is locked until you assign the usser a password
          - Default directory: /export/home/username

AIX:
# mkuser username
# passwd username

or
# smit user
# passwd username
Note: - Default directory: /home/username

Centos:


Check service Port AIX

- Để kiểm tra port có được sử dụng trên server hay không ta sử dụng lệnh # netstat để check
- Để kiểm tra socket đang được chiếm giữ bởi process nào, sử dụng lệnh: # rmsocket
- Để kiểm tra chi tiết về process, sử dụng lệnh: # ps -ef | grep process

# netstat -Aan |grep 14248
f10007000864ebb0 tcp        0      0  *.14248            *.*           LISTEN
 
# rmsock f10007000864ebb0 tcpcb
The socket 0x864e808 is being held by proccess 143640 (java).
 
 
# ps -ef |grep 143640
    root  143640  127270   0   May 15      -  3:06 /var/opt/tivoli/ep/_jvm/jre/bin/java

Enable VT-x HP Compaq Destop

Vì lý do bảo mật nên trên một số máy tính năng hỗ trợ ảo hóa của CPU bị disable. Do đó, để chạy được máy ảo trên VMWare, HyperV thì cần bật (enable) tính năng VT-x trong BIOS.

- Acess to BIOS: (trên máy Destop HP Compaq thì khi khởi động nhấn nhanh nút F1 hoặc F10)

- Chọn Security -> System Security -> Enable Virtualization Technology


Sau cùng nhớ ấn F10 và save lại.

Managing users in VIOS - Quản lý user trên VIOS

- Change password:  $ cfgassist
- Create a new user:  $ mkuser new_user_name
- List a user's attributes: $ lsuser
- Remove a user: $ rmuser user_name

Note:
- Default role of new user is admin
- Can use new user id to access to IVM


==================================
- Đổi password: $ cfgassist
- Tạo user mới: $ mkuser new_user_name
- Liệt kê các user và các thuộc tính: $ lsuser
- Xóa một user: $ rmuser user_name

Ghi chú:
- User mới được tạo có role mặc định là admin, không phải mặc định là staff như AIX
- Có thể sử dụng user mới tạo để đăng nhập vào giao diện web của IVM.

Create CPU load on AIX system - Tạo tải giả cho CPU

AIX:
If you want to create some "load" on the system. Do the command:
# yes > /dev/null &
The yes command will continiously echo "yes" to /dev/null. This is a single-threaded process, so it will put load on a single processor. If you wish to put load on multiple processors, run yes many times.

Delete command:
# jobs
# kill %1

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

Nếu muốn tạo tải giả trong hệ thống, có thể sử dụng lệnh
# yes > /dev/null &
& : lệnh này sẽ chạy ở chế độ background.

Lệnh yes sẽ tạo ra liên tiếp echo "yes" và direct tới /dev/null. Đây là process single-threaded nên nó sẽ chỉ tạo ra tải cho 1 processor. Nếu muốn tạo tải cho nhiều processor thì gõ lệnh yes nhiều lần.

Để xóa bỏ tải giả này:
# jobs    : check các tác vụ đang chạy ở chế độ background
# kill %1  : xóa tác vụ có thứ tự 1.

- Copyright © aix-san-linux - Skyblue - Powered by Blogger - Designed by Johanes Djogan -