segunda-feira, 6 de julho de 2009

Informações do sistema

O comando getconf retorma informações sobre as configuraçoes do sistema, informações como memória, tamanho do disco, útimo boot, checagem do hardware e alguns paramêtros do kernel.

* para verificar bit mode do kernel

getconf KERNEL_BITMODE
64

* para verificar bit mode do hardware

getconf HARDWARE_BITMODE
64

* para verificar tamanho do disco (MB)

getconf DISK_SIZE /dev/hdisk0
8678

OBS.: Para outros parâmetros utilize a tabela abaixo.

Variable Description
System wide configuration names
BOOT_DEVICE Displays last boot device
MACHINE_ARCHITECTURE Displays machine architecture type (chrp)
MODEL_CODE Displays model code
KERNEL_BITMODE Bit mode of the kernel, 32-bit or 64-bit
REAL_MEMORY Real memory size in KB
HARDWARE_BITMODE Bit mode of the machine hardware, 32-bit or 64-bit
MP_CAPABLE MP Capability of the machine
Path configuration names
DISK_PARTITION Physical partition size of the disk
DISK_SIZE Disk size in MB
Device variables names
DISK_DEVNAME Device name or location of the device

Nenhum comentário:

Postar um comentário