IDGLabs.COM - tips, tools and resource

Knowledge Sharing - Want to participate in the discussion?

Archive for the ‘Solaris’ Category

Solaris Package

Package Manager

- pkginfo -l (Anzeige der installierten Packages)
- pkgchk -v

- pkgadd -R -d (Package installieren)
- pkgrm

RedHat Package Manager

rpm -qi get info
rpm -ivh install a package
rpm -Uvh rpm -e

upgrade a package
remove a package:

rpm -ql which files belong to a package
rpm -qilp look in a rpm filename that isnt installed
will give you a of all files that have changed in one form or another since the package it is associated was installed.
$ rpm -Va | awk ”{print $2}” | xargs rpm -qf | sort -u &> /tmp/file1

the way to compile a package:

gunzip < file.tar.gz | tar xvf -
./ to the package
make to compile the package.
make check to run any self-tests
make install
to install the programs
make clean
to remove the program binaries

Tags: , , , , , ,
  • 0 Comments
  • Filed under: Command List
  • Admin Command solaris

    $ shutdown -g0 -i0
    $ reboot (entspricht init 6)

    LAN konfigurieren

    Konfiguration der LAN-Interfaces

    $ ifconfig -a

    *

    Netmask setzen: siehe //netmasks
    *

    Jedes LAN-Interface hat //hostname.le0 mit Hostnamen
    *

    LAN-Setup: //rcS.d/S30rootusr.sh (Interfaces konfigurieren)
    //rc2.d/S72inetsvc (LAN konfigurieren)

    Phys Addressen nachschauen

    $ arp -a

    Net to Media Table

    Device IP Address Mask Flags Phys Addr
    —— ——————– ————— —– —————
    le0 rabbit 255.255.255.255 00:60:08:57:17:86
    le0 quorum 255.255.255.255 SP 08:00:20:89:27:03
    le0 arkum 255.255.255.255 00:a0:24:4b:60:1c

    Tags: , , , , ,

    Kernel Analyse

    Welche Kernel- sind geladen ?

    $ modinfo

    Kernel Konfiguration

    //system

    Logfile von syslog

    /var/adm/messages

    Konfiguration des syslog Daemon

    //syslog.conf

    Tags: , , ,

    Monitor Mode (OK Prompt)

    In single user mode booten

    OK -s

    Kernel zwingen /devices neu aufzubauen nach dem Anschluss von neuer

    OK -r

    Detaillierter Bootvorgang

    OK -v

    Vom -ROM aus booten: Notboot !

    OK cdrom

    Angeschlossene -Geräte testen

    OK probe-

    System Devices, e.g. SUNW,hme = Fast Ethernet PCI Adapter

    OK show-devs

    Network Devices

    OK show-nets

    Network Activity

    OK apply

    Monitor Variablen ändern, anzeigen

    OK eeprom
    OK eeprom -mode=38400,8,n,1,h

    Tags: , , , , , , , , , , , , ,

    Anzeige der installierten Packages

    $ pkginfo

    Check ob Package SUNWpcnfd correct installiert ist

    $ pkgchk -v SUNWpcnfd

    Package installieren (Path ist meistens /cdrom/cdrom0/….)

    $ pkgadd -d SUNWpcnfd

    Das Package SUNWpcnfd entfernen

    $ pkgrm SUNWpcnfd

    Tags: , , , ,

    Share Your Score

    Advertise