How do I run sun diagnostics using obdiag?



  • There are many ways of running diagnostics sun systems, it depends on which level you want to run them, at the OpenBoot Prom (OBP), one way is using obdiag, at the ok prompt type obdiag, note that some system may not have obdiag, most new systems do

    ok obdiag
    
    
     _____________________________________________________________________________
    |                                 o b d i a g                                 |
    |_________________________ _________________________ _________________________|
    |                         |                         |                         |
    |  1 flashprom@2,0        |  2 i2c@0,320            |  3 ide@d                |
    |  4 lpfc@1               |  5 lpfc@1               |  6 network@0            |
    |  7 network@1            |  8 network@1            |  9 network@2            |
    | 10 network@2            | 11 network@3            | 12 rmc-comm@0,3e8       |
    | 13 rtc@0,70             | 14 scsi@2               | 15 scsi@2,1             |
    | 16 serial@0,2e8         | 17 serial@0,3f8         | 18 usb@a                |
    | 19 usb@b                |                         |                         |
    |_________________________|_________________________|_________________________|
    |       Commands: test test-all except help what setenv set-default exit      |
    |_____________________________________________________________________________|
    |                   diag-passes=1 diag-level=max test-args=                   |
    |_____________________________________________________________________________|
    
    
    obdiag>
    

    You can test individual components or all of them

    To test all the components do this

    obdiag> test-all
    Hit the spacebar to interrupt testing
    Testing /pci@1e,600000/isa@7/flashprom@2,0 ............................ passed
    Testing /pci@1e,600000/isa@7/i2c@0,320 ................................ passed
    Testing /pci@1e,600000/ide@d .......................................... passed
    Testing /pci@1c,600000/lpfc@1 ......................................... passed
    Testing /pci@1d,700000/lpfc@1 ......................................... passed
    Testing /pci@1e,600000/pci@2/pci@0/network@0 Register tests: passed
    Internal loopback test: passed
    /pci@1e,600000/pci@2/pci@0/network@0: 1000 Mbps full duplex link up
    .......................... passed
    Testing /pci@1e,600000/pci@2/pci@0/network@1 Register tests: passed
    Internal loopback test: passed
    /pci@1e,600000/pci@2/pci@0/network@1: 100 Mbps half duplex link up
    .......................... passed
    Testing /pci@1f,700000/network@1 ...................................... passed
    Testing /pci@1c,600000/network@2 ...................................... passed
    Testing /pci@1e,600000/pci@2/pci@4/network@2 Register tests: passed
    Internal loopback test: passed
    /pci@1e,600000/pci@2/pci@4/network@2: Timed out waiting for Auto-Negotation to complete
    /pci@1e,600000/pci@2/pci@4/network@2: Cannot establish link via Auto-Negotation
    Please check cable and/or connection
    /pci@1e,600000/pci@2/pci@4/network@2: link down
    .......................... passed
    Testing /pci@1e,600000/pci@2/pci@4/network@3 Register tests: passed
    Internal loopback test: passed
    /pci@1e,600000/pci@2/pci@4/network@3: 100 Mbps half duplex link up
    .......................... passed
    Testing /pci@1e,600000/isa@7/rmc-comm@0,3e8 ........................... passed
    Testing /pci@1e,600000/isa@7/rtc@0,70 ................................. passed
    Testing /pci@1f,700000/scsi@2 ......................................... passed
    Testing /pci@1f,700000/scsi@2,1 ....................................... passed
    Testing /pci@1e,600000/isa@7/serial@0,2e8 ............................. passed
    Testing /pci@1e,600000/isa@7/serial@0,3f8 ............................. passed
    Testing /pci@1e,600000/usb@a .......................................... passed
    Testing /pci@1e,600000/usb@b .......................................... passed
    Pass:1 (of 1) Errors:0 (of 0) Tests Failed:0 Elapsed Time: 0:0:1:39
    To test a single compenent, type test followed by the number of the component, in the menu above
    
    obdiag> test 14
    


© Lightnetics 2024