Ana Sayfa » *nix » SysInfo Script Set’i ile FreeBSD Sistem Bilgileri

SysInfo Script Set’i ile FreeBSD Sistem Bilgileri


BerbatKötüİdare EderGüzelHarika (Henüz Puan Verilmedi. Oy kullanarak siz de katkı yapabilirsiniz.)
Loading...

Warning: mysqli_query(): (HY000/3): Error writing file '/tmp/MYj60GrX' (Errcode: 28 - No space left on device) in /usr/share/nginx/html/syslogs/wp-includes/class-wpdb.php on line 2349

Geçenlerde tesadüfen SysInfo isimli set'ine rastladım.  Bu set'i sisteminize ait en ince bilgileri raporlamak üzere Daniel Gerzo isimli bir üniversite öğrencisi tarafından bitirme tezi olarak yazılmış.

Oldukça kullanışlı olan bu setini şu adresten indirebiliyorsunuz:  http://people.freebsd.org/~danger/sysinfo/. En son sürüm 1.0.2 olarak görünüyor. Script'in çıktısı epey detaylı, ben VMWare guest olarak kurulu olan bir 7.2'de çalıştırdım.

Çıktısı şu şekilde:

# sh sysinfo -a
Generated by SysInfo v1.0.2 by Daniel Gerzo

System information

Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform

INFO: Run `dmidecode -t system` to see further information.

Base board information
Manufacturer: Intel Corporation
Product Name: 440BX Desktop Reference Platform

INFO: Run `dmidecode -t baseboard` to see further information.

CD/DVD-ROM:
acd0: CDROM  at ata1-master UDMA33
acd0: CDROM  at ata1-master UDMA33
acd0: CDROM  at ata1-master UDMA33
acd0: CDROM  at ata1-master UDMA33
acd0: CDROM  at ata1-master UDMA33
acd0: CDROM  at ata1-master UDMA33

Floppy disk:Graphic card information:
vendor='VMware Inc.'
device='VGA 4.0.5 Virtual SVGA'
INFO: Check pciconf(8) for more information.

PCI devices with no driver attached:
none0@pci0:0:7:3:       class=0x068000 card=0x197615ad chip=0x71138086 rev=0x08 hdr=0x00
none1@pci0:0:7:7:       class=0x088000 card=0x074015ad chip=0x074015ad rev=0x10 hdr=0x00

BIOS information

Vendor: Phoenix Technologies LTD
Version: 6.00
Release Date: 07/29/2008
BIOS Revision: 4.6
Firmware Revision: 0.0

INFO: Run `dmidecode -t bios` to see further information.

CPU information

Machine class:  i386
CPU Model:      AMD Sempron(tm) Processor 2500+
No. of Cores:   1
Cores per CPU:

WARNING: Your CPU supports amd64 architecture, however you are running i386.
WARNING: You may want to switch to amd64 to get a better performance.

CPU usage statistics:
CPU:  0.0% user,  0.0% nice,  0.4% system,  0.0% interrupt, 99.6% idle

RAM information

Memory information from dmidecode(8)
Maximum Memory Module Size: 2048 MB
Maximum Total Memory Size: 8192 MB
Maximum Capacity: 4 GB
Number Of Devices: 4

INFO: Run `dmidecode -t memory` to see further information.

System memory summary
Total real memory available:    243 MB
Logically used memory:          73 MB
Logically available memory:     170 MB

Swap information
Device          1K-blocks     Used    Avail Capacity
/dev/da0s1b        524288       0B     512M     0%

Operating system information

Operating system release:        7.2-RELEASE-p2
OS architecture:                i386
Hostname:                       freetest.ebiuniverse.com
Kernel build dir location:      /usr/obj/usr/src/sys/GENERIC
Currently booted kernel:        /boot/kernel/kernel

Currently loaded kernel modules (kldstat(8)):
acpi.ko
nullfs.ko
.ko
fdescfs.ko
WARNING: The acpi.ko module is loaded, however it is not being loaded upon the system boot time from /boot/loader.conf.
WARNING: The nullfs.ko module is loaded, however it is not being loaded upon the system boot time from /boot/loader.conf.
WARNING: The .ko module is loaded, however it is not being loaded upon the system boot time from /boot/loader.conf.
WARNING: The fdescfs.ko module is loaded, however it is not being loaded upon the system boot time from /boot/loader.conf.

INFO: For security recommendations see the security(7) man page.
INFO: For system tuning advice, see the tuning(7) man page.
INFO: To view various system statistics use the systat(1) tool.

Bootloader settings
The /boot/loader.conf has the following contents:
INFO: See the loader.conf(5) manual page for more information.

System uptime:
System is up since Mon Aug 3 15:06:05 2009
 2:01PM  up 13 days, 22:55, 2 users, load averages: 0.02, 0.09, 0.04

Process statistics:
36 processes:  2 running, 34 sleeping

Jail related information:
   JID  IP Address      Hostname                      Path
     2  192.168.12.235   jail1                         /usr/jails/jail1
     1  192.168.12.236   jail2                         /usr/jails/jail2

Storage information

Available hard drives:
da0:  Fixed Direct Access SCSI-2 device
da0: Command Queueing Enabled
da0: 6144MB (12582912 512 byte sectors: 255H 63S/T 783C)
da0:  Fixed Direct Access SCSI-2 device
da0: Command Queueing Enabled
da0: 6144MB (12582912 512 byte sectors: 255H 63S/T 783C)
da0:  Fixed Direct Access SCSI-2 device
da0: Command Queueing Enabled
da0: 6144MB (12582912 512 byte sectors: 255H 63S/T 783C)
da0:  Fixed Direct Access SCSI-2 device
da0: Command Queueing Enabled
da0: 6144MB (12582912 512 byte sectors: 255H 63S/T 783C)
da0:  Fixed Direct Access SCSI-2 device
da0: Command Queueing Enabled
da0: 6144MB (12582912 512 byte sectors: 255H 63S/T 783C)
da0:  Fixed Direct Access SCSI-2 device
da0: Command Queueing Enabled
da0: 6144MB (12582912 512 byte sectors: 255H 63S/T 783C)

Raid controllers:
mpt0:
vendor='LSI Logic (Was: Symbios Logic, NCR)'
device='LSI53C1020/1030 PCI-X to Ultra320 SCSI Controller'

Currently mounted filesystems:
/dev/da0s1a on /
devfs on /dev
/dev/da0s1d on /tmp
/dev/da0s1f on /usr
/dev/da0s1e on /var
/usr/ports on /usr/ahaburasi
/usr/jails/basejail on /usr/jails/jail2/basejail
devfs on /usr/jails/jail2/dev
fdescfs on /usr/jails/jail2/dev/fd
procfs on /usr/jails/jail2/proc
/usr/jails/basejail on /usr/jails/jail1/basejail
devfs on /usr/jails/jail1/dev
fdescfs on /usr/jails/jail1/dev/fd
procfs on /usr/jails/jail1/proc

WARNING: Not found in fstab(5): fdescfs on /usr/jails/jail2/dev/fd
WARNING: Not found in fstab(5): procfs on /usr/jails/jail2/proc
WARNING: Not found in fstab(5): fdescfs on /usr/jails/jail1/dev/fd
WARNING: Not found in fstab(5): procfs on /usr/jails/jail1/proc

I/O statistics:
      tty             da0            pass0             cpu
 tin tout  KB/t tps  MB/s   KB/t tps  MB/s  us ni sy in id
   0    0  6.29   1  0.01   0.00   0  0.00   0  0  0  0 100
INFO: Run iostat(8) or gstat(8) to see live statistics.

Disk usage:
Filesystem             Size    Used   Avail Capacity  Mounted on
/dev/da0s1a            496M    157M    299M    34%    /
devfs                  1.0K    1.0K      0B   100%    /dev
/dev/da0s1d            496M     12K    456M     0%    /tmp
/dev/da0s1f            2.9G    1.3G    1.4G    47%    /usr
/dev/da0s1e            1.4G    298M    1.0G    22%    /var
/usr/ports             2.9G    1.3G    1.4G    47%    /usr/ahaburasi
/usr/jails/basejail    2.9G    1.3G    1.4G    47%    /usr/jails/jail2/basejail
devfs                  1.0K    1.0K      0B   100%    /usr/jails/jail2/dev
fdescfs                1.0K    1.0K      0B   100%    /usr/jails/jail2/dev/fd
procfs                 4.0K    4.0K      0B   100%    /usr/jails/jail2/proc
/usr/jails/basejail    2.9G    1.3G    1.4G    47%    /usr/jails/jail1/basejail
devfs                  1.0K    1.0K      0B   100%    /usr/jails/jail1/dev
fdescfs                1.0K    1.0K      0B   100%    /usr/jails/jail1/dev/fd
procfs                 4.0K    4.0K      0B   100%    /usr/jails/jail1/proc

Network information

hostname: testbsd.cagriersen.net

Currently available network devices:
le0 plip0 lo0

Basic configuration for currently available NICs:

le0 (testbsd.cagriersen.net): status: active
MAC address:
00:0c:99:da:ea:bb
IPv4 addresses:
192.168.12.233 netmask 0xffffff00
192.168.12.235 netmask 0xffffffff
192.168.12.236 netmask 0xffffffff

Input errors: 0
Output errors: 0
Collisions: 0

lo0 (localhost):
IPv4 addresses:
127.0.0.1 netmask 0xff000000
IPv6 addresses:
fe80::1%lo0 prefixlen 64
::1 prefixlen 128

Input errors: 0
Output errors: 0
Collisions: 0

INFO: Check ifconfig(8) for more information.

Default route:
192.168.12.254 via le0
INFO: For a complete routing table please run netstat -rn.

Firewall related information:
WARNING: inetd(8) is enabled, however none of its services are enabled. Check /etc/inetd.conf.
There are 15 rules in /etc/hosts.allow (-rw-r--r--) which affect inetd(8) operation and services linked against libwrap.
INFO: Check the hosts_options(5) manual page for more information.

WARNING: No firewall is being used on this system.
INFO: There are several firewall packages on FreeBSD.
INFO: You may want to check http://www.freebsd.org/doc/en/books/handbook/firewalls.html.

Resolver name servers:
192.168.12.253

Socket statistics:
There are currently 10 listening (7 TCP/3 UDP) and 2 established connections.
INFO: For more information please see sockstat(8) manual.

User related informationUsers in wheel group (allowed to use su(1)):
root

Currently logged-in users:
cagri            p0       crom.cagriersen.net  1:34PM     - w -hi
root             v0       -                 1:19AM 12:41 -csh (csh)

Top 10 logged-in users this month:
root                12.70
cagri               2.38

Last login dates per user:
root              ttyv0                       Mon Aug 17 01:19:29 2009
cagri             ttyp0    crom.cagriersen.net    Mon Aug 17 13:34:59 2009

Packages information

There are 30 packages installed in the system and 0 of them need updating.
Note that this number may be inaccurate, as your ports tree may be outdated too.

INFO: Run pkg_info(1) to see a full list of installed packages.
INFO: Use pkg_version(1) to inspect what packages are outdated.
INFO: Use the portsnap(8) or csup(1) tool to update your ports tree.

WARNING: You should install the portaudit(1) tool in order to get information about known security vulnerabilities in your packages.

Information related to services

Running services

cron is running as pid 1192.
devd is running as pid 492.
sendmail_clientmqueue is running as pid 1292.
sendmail_submit is running as pid 1192.
sshd is running as pid 692.
syslogd is running as pid 592.

Not running services

wpa_supplicant is not running.

INFO: Configuration of system-wide services is located in the /etc/ directory.
INFO: Configuration of 3rd party services can be found in the /usr/local/etc/ directory.

Misc information

Open file statistics (cur/max):
118/3912 files

Resource limits:
Resource limits (current):
  cputime          infinity secs
  filesize         infinity kB
  datasize           524288 kB
  stacksize           65536 kB
  coredumpsize     infinity kB
  memoryuse        infinity kB
  memorylocked     infinity kB
  maxprocesses         1760
  openfiles            3520
  sbsize           infinity bytes
  vmemoryuse       infinity kB

Information related to cron:
There are 7 entries in /etc/crontab

Current time and date:
Mon Aug 17 14:01:31 EEST 2009

Gördüğünüz üzere, script gayet temiz ve düzenli raporlar üretiyor. Bu nedenle oldukça kullanışlı ve güzel bir çalışma.
Belki sizin de işinize yarar.

Kaynaklar:
http://danger.rulez.sk/index.php/2009/04/14/sysinfo/

Visited 361 times, 1 visit(s) today
Kategoriler: *nix,ipucu |

Bu yazılar da ilginizi çekebilir:


- FreeBSD Jail Sistemlere İkinci IP Eklemek
- FreeBSD – Jail Sistemleri Ramdisk Üzerinde Çalıştırmak
- FreeBSD Jail Sistemlerde Tarih ve Saat’in Set Edilmesi
- VMWare Server – Guest FreeBSD Sistem Saatinin Geri Kalması…
- Lynis ile Güvenlik Denetimi

Yorumlar


  1. Huzeyfe ONAL | (Ağustos 17th, 2009 9:26 pm)

    Ozellikle FreeBSD ile ilgili soru soranlardan sistemlerinde calistirilmasi istenecek bir script. Soruyu cevaplamadan once bu scriptin sonuclarini gormek faydali olacaktir.

    [Cevapla]

    Şerife tarafından yanıtlandı.

    merhaba,

    verdiğiniz linke ulaşılamıyor

    [Cevapla]

    Cagri Ersen tarafından yanıtlandı.

    Evet malesef kırık; yazarına yorum yolu ile bildirdim, umarım yakında düzeltir.

    [Cevapla]

  2. pc-bsd | (Mart 20th, 2012 3:52 pm)

    http://opensource-tr.org/destek/thread-321.html
    burada anlatıldığı gibi kurabilirsiniz

    [Cevapla]

Trackbacks

Yorumda bulunun.