AIX lsdevinfo

The lsdevinfo utility appears to an undocumented command. However it looks like it could come in handy occasionally. Here are some examples of using it on AIX 7.1:

 

# oslevel -s

7100-00-01-1037

 

# lslpp -w /usr/sbin/lsdevinfo

  File                                        Fileset               Type

  ----------------------------------------------------------------------------

  /usr/sbin/lsdevinfo                         bos.rte.methods       File

 

# lsdevinfo -h

 

Usage:

lsdevinfo [-q Criteria] [-F Format] [-R] [-c] [-h]

 

# lsdevinfo | more

device:

        name = "sys0"

        status = "1"

        chgstatus = "1"

        ddins = "planar_pal_chrp"

        aixloc = ""

        uniquetype = "sys/node/chrp"

        class = "sys"

        subclass = "node"

        type = "chrp"

        prefix = "sys"

        devid = "chrp"

        base = "1"

        hasvpd = "0"

        detectable = "0"

        busext = "0"

        fru = "1"

        led = "2065"

        catalog = "devices.cat"

        setno = "1"

        msgno = "1"

        driver = "planar_pal_chrp"

        define = "/usr/lib/methods/define_rspc -n"

        configure = "/usr/lib/methods/cfgsys_chrp"

        change = "/usr/lib/methods/chggen"

        unconfigure = "/usr/lib/methods/ucfgdevice"

        undefine = "/usr/lib/methods/undefine"

        start = ""

        stop = ""

        inventory = "0"

        syscons = "/dev/vty0"

        sysconsp = ""

        modelcode = "0x0800004c"

        keylock = "normal"

        maxbuf = "20"

        maxmbuf = "0"

        maxuproc = "128"

        autorestart = "true"

        iostat = "false"

        realmem = "6291456"

        conslogin = "enable"

        fwversion = "IBM,AM710_058"

        maxpout = "8193"

        minpout = "4096"

        fullcore = "false"

        pre430core = "false"

        ncargs = "256"

        pre520tune = "disable"

        max_logname = "9"

        platform_desc = "chrp"

        rtasversion = "1"

        modelname = "IBM,9179-MHB"

........

 

 

# lsdevinfo | grep -p hdisk0

device:

        name = "hdisk0"

        status = "1"

        chgstatus = "2"

        ddins = "scsidisk"

        aixloc = ""

        uniquetype = "disk/vscsi/vdisk"

        class = "disk"

        subclass = "vscsi"

        type = "vdisk"

        prefix = "hdisk"

        devid = ""

        base = "1"

        hasvpd = "0"

        detectable = "1"

        busext = "0"

        fru = "0"

        led = "9652"

        catalog = "vscsi_init.cat"

        setno = "2"

        msgno = "0"

        driver = "scsidisk"

        define = "/etc/methods/define"

        configure = "/etc/methods/cfgscsidisk"

        change = "/etc/methods/chgdisk"

        unconfigure = "/etc/methods/ucfgdevice"

        undefine = "/etc/methods/undefine"

        start = ""

        stop = ""

        inventory = "0"

        pv = "no"

        pvid = "00f6050a2cd79ef80000000000000000"

        model_name = "VCS_DEFLT_DISK  "

        queue_depth = "3"

        max_transfer = "0x40000"

        cfgmgr_psafe = ""

        unique_id = "48333321360050768019183002800000000000F1304214503IBMfcp05VDASD03AIXvscsi"

        sn_location = "609F"

        reserve_policy = "no_reserve"

        PCM = "PCM/friend/vscsi"

        safe_relocate = "0"

        kext_errsave = "yes"

        message_no = "1"

 

 

# lsdevinfo | grep -p cluster0

device:

        name = "cluster0"

        status = "1"

        chgstatus = "1"

        ddins = ""

        aixloc = ""

        uniquetype = "pseudo/node/cluster"

        class = "pseudo"

        subclass = "node"

        type = "cluster"

        prefix = "cluster"

        devid = ""

        base = "0"

        hasvpd = "0"

        detectable = "0"

        busext = "0"

        fru = "0"

        led = "8232"

        catalog = "devices.cat"

        setno = "170"

        msgno = "1"

        driver = ""

        define = "/usr/lib/methods/define -n"

        configure = "/usr/lib/methods/cfgcluster"

        change = "/usr/lib/methods/chgcluster"

        unconfigure = "/usr/lib/methods/ucfgdevice"

        undefine = "/usr/lib/methods/undefine"

        start = ""

        stop = ""

        inventory = "0"

        clvdisk = "60050768-0191-8300-2800-000000000f15"

        node_uuid = "60510e58-be33-11e0-8387-66da93d16b18"

 

# lsdevinfo -c

name="sys0",status="1",chgstatus="1",ddins="planar_pal_chrp",aixloc="",uniquetype="sys/node/chrp",class="sys",subclass="node",type="chrp",prefix="sys",devid="chrp",base="1",hasvpd="0",detectable="0",busext="0",fru="1",led="2065",catalog="devices.cat",setno="1",msgno="1",driver="planar_pal_chrp",define="/usr/lib/methods/define_rspc -n",configure="/usr/lib/methods/cfgsys_chrp",change="/usr/lib/methods/chggen",unconfigure="/usr/lib/methods/ucfgdevice",undefine="/usr/lib/methods/undefine",start="",stop="",inventory="0",syscons="/dev/vty0",sysconsp="",modelcode="0x0800004c",keylock="normal",maxbuf="20",maxmbuf="0",maxuproc="128",autorestart="true",iostat="false",realmem="6291456",conslogin="enable",fwversion="IBM,AM710_058",maxpout="8193",minpout="4096",fullcore="false",pre430core="false",ncargs="256",pre520tune="disable",max_logname="9",platform_desc="chrp",rtasversion="1",modelname="IBM,9179-MHB",systemid="IBM,02100488P",boottype="disk",dasd_spin_delay="5",SW_dist_intr="false",pci_full_cfg="1",cpuguard="enable",frequency="6400000000",capacity_inc="0.01",capped="false",dedicated="false",ent_capacity="0.50",min_capacity="0.10",max_capacity="0.50",variable_weight="128",cod_cust_info="",cod_mail="",cod_modelsys="",cod_proc="0",id_to_system="0X800000302B900000",id_to_partition="0X800000302B900043",ngroups_allowed="128",sed_config="select",nfs4_acl_compat="secure",enhanced_RBAC="true",log_pg_dealloc="true",ghostdev="0"

........................

 

# lsdevinfo -q name="cluster0"

device:

        name = "cluster0"

        status = "1"

        chgstatus = "1"

        ddins = ""

        aixloc = ""

        uniquetype = "pseudo/node/cluster"

        class = "pseudo"

        subclass = "node"

        type = "cluster"

        prefix = "cluster"

        devid = ""

        base = "0"

        hasvpd = "0"

        detectable = "0"

        busext = "0"

        fru = "0"

        led = "8232"

        catalog = "devices.cat"

        setno = "170"

        msgno = "1"

        driver = ""

        define = "/usr/lib/methods/define -n"

        configure = "/usr/lib/methods/cfgcluster"

        change = "/usr/lib/methods/chgcluster"

        unconfigure = "/usr/lib/methods/ucfgdevice"

        undefine = "/usr/lib/methods/undefine"

        start = ""

        stop = ""

        inventory = "0"

        clvdisk = "60050768-0191-8300-2800-000000000f15"

        node_uuid = "60510e58-be33-11e0-8387-66da93d16b18"

 

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Part 2, Monitoring memory usage (ps, sar, svmon, vmstat) and analyzing the results AIX7
Viewed 12227 times since Wed, Jun 19, 2019
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 43000 times since Fri, Aug 21, 2020
Many Choices for AIX File Integrity
Viewed 2475 times since Wed, May 30, 2018
List STALE partitions across Volume Groups for each Logical Volume in AIX
Viewed 2275 times since Tue, Jul 17, 2018
Install and configure yum on AIX
Viewed 4278 times since Thu, Feb 21, 2019
Remove disk from volumegroup in AIX
Viewed 6157 times since Tue, Apr 16, 2019
Kerberos authentication configuration for AIX servers
Viewed 10526 times since Mon, Jun 25, 2018
Backing up your VIOS configuration with viosbr.
Viewed 11265 times since Mon, May 28, 2018
Manages processor scheduler tunable parameters schedo AIX
Viewed 2391 times since Thu, Sep 20, 2018
Installation of the Virtual I/O Server directly from the HMC
Viewed 19169 times since Tue, Jun 4, 2019