Solved

Listing Devices on Sun

Posted on 1997-03-03
1
309 Views
Last Modified: 2013-12-16
AIX has the lscfg command, and HP has the ioscan command.  Is there a similar command for Sun's SunOS and Solaris 2.5.1?
0
Comment
Question by:Tim.Yerks
1 Comment
 
LVL 2

Accepted Solution

by:
pxh earned 50 total points
ID: 1811809
Well, I don't know what the HP and AIX commands really do, but I hope this will answer your question nevertheless.

All devices are logged during startup. So you can always see either by reading /var/adm/messages what devices are there or using dmesg (which is a message buffer display).

Then there is the probe-scsi command in the boot monitor, which you may not like since you have to halt the machine (don't try
Stop-A, probe-scsi and go, it will most likely crash your system).

Last not least there exist public domain software, in particular sysinfo lists all the devices, here is an example for my Ultra 1:

        Device Information

SUNW,Ultra-1 is a "SUNW,501-2836"
    openprom is a "Open Boot PROM" device
    sbus0 is a "SBus" system bus
        SUNW,fdtwo0 (rfd0c) is a Floppy disk drive
        eeprom is a "EEPROM" device
        zs0 is a "Zilog 8530" serial communications chip
        zs1 is a "Zilog 8530" serial communications chip
        sc is a "Sun SCSI-2" SCSI controller disk controller
        espdma is a "SCSI DMA" pseudo device
            esp0 is a "Generic SCSI" SCSI controller disk controller
                c0t0d0 (sd0) is a "SUN2.1G" 2.0 GB disk drive
                c0t6d0 (sd6) is a disk drive
        ledma is a "LANCE Ethernet DMA" pseudo device
            le0 is a "AMD Lance Am7990" 10Mb/sec Ethernet network interface
        SUNW,bpp is a "Sun Bidirectional Parallel Port"
        cgsix0 is a "GX 8-bit Accelerated Color Graphics [cgsix]" frame buffer
    kbd is a "Sun Type-5 Unix" Keyboard

Probably sysinfo is your first choice.

Hope this helps,

    Peter <pxh@mpe-garching.mpg.de>

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
UNiX Script filesystem space usage 19 79
Remote Change Dates on AIX Automation 7 75
Problem logging tar errors 11 69
Unix Script: Loop over all days of a month 17 116
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question