How to check if rsc is physically exist


 
Thread Tools Search this Thread
Operating Systems Solaris How to check if rsc is physically exist
# 1  
Old 11-30-2009
How to check if rsc is physically exist

I have a bunch of servers that cant connect via rsc, but supposingly they can connect...
Any chance I can check if the rsc card is physically exist in the server by some command? Some of the machines are in overseas, and I won't go datacenter to check anyways...
Many Thanks!
# 2  
Old 11-30-2009
prtdiag -v will show you if the RSC card exists
# 3  
Old 11-30-2009
Thanks incredible Smilie

I got below result from prtdiag -v, seems doesnt shows rsc card details but confirmed this machine has rsc installed...any thoughts? Many thanks again...

Code:
bash-2.05$ prtdiag -v
System Configuration:  Sun Microsystems  sun4u Sun Fire V890
System clock frequency: 150 MHz
Memory size: 40960 Megabytes
========================= CPUs ===============================================
           Run   E$  CPU    CPU
Brd  CPU   MHz   MB Impl.   Mask
--- ----- ---- ---- ------- ----
 A  0, 16 1500 32.0 US-IV+   2.1
 B  1, 17 1500 32.0 US-IV+   2.1
 A  2, 18 1500 32.0 US-IV+   2.1
 B  3, 19 1500 32.0 US-IV+   2.1
 C  4, 20 1500 32.0 US-IV+   2.1
 D  5, 21 1500 32.0 US-IV+   2.2
 C  6, 22 1500 32.0 US-IV+   2.1
 D  7, 23 1500 32.0 US-IV+   2.2
========================= Memory Configuration ===============================
           Logical  Logical  Logical
      MC   Bank     Bank     Bank         DIMM    Interleave  Interleaved
 Brd  ID   num      size     Status       Size    Factor      with
----  ---  ----     ------   -----------  ------  ----------  -----------
  A    0     0      1024MB   no_status     512MB     8-way        0
  A    0     1      1024MB   no_status     512MB     8-way        0
  A    0     2      1024MB   no_status     512MB     8-way        0
  A    0     3      1024MB   no_status     512MB     8-way        0
  B    1     0      1024MB   no_status     512MB     8-way        1
  B    1     1      1024MB   no_status     512MB     8-way        1
  B    1     2      1024MB   no_status     512MB     8-way        1
  B    1     3      1024MB   no_status     512MB     8-way        1
  A    2     0      1024MB   no_status     512MB     8-way        0
  A    2     1      1024MB   no_status     512MB     8-way        0
  A    2     2      1024MB   no_status     512MB     8-way        0
  A    2     3      1024MB   no_status     512MB     8-way        0
  B    3     0      1024MB   no_status     512MB     8-way        1
  B    3     1      1024MB   no_status     512MB     8-way        1
  B    3     2      1024MB   no_status     512MB     8-way        1
  B    3     3      1024MB   no_status     512MB     8-way        1
  C    4     0      1024MB   no_status     512MB     8-way        2
  C    4     1      1024MB   no_status     512MB     8-way        2
  C    4     2      1024MB   no_status     512MB     8-way        2
  C    4     3      1024MB   no_status     512MB     8-way        2
  D    5     0      2048MB   no_status    1024MB     8-way        3
  D    5     1      2048MB   no_status    1024MB     8-way        3
  D    5     2      2048MB   no_status    1024MB     8-way        3
  D    5     3      2048MB   no_status    1024MB     8-way        3
  C    6     0      1024MB   no_status     512MB     8-way        2
  C    6     1      1024MB   no_status     512MB     8-way        2
  C    6     2      1024MB   no_status     512MB     8-way        2
  C    6     3      1024MB   no_status     512MB     8-way        2
  D    7     0      2048MB   no_status    1024MB     8-way        3
  D    7     1      2048MB   no_status    1024MB     8-way        3
  D    7     2      2048MB   no_status    1024MB     8-way        3
  D    7     3      2048MB   no_status    1024MB     8-way        3
========================= IO Cards =========================
 
                         Bus  Max
     IO   Port Bus       Freq Bus  Dev,
Brd  Type  ID  Side Slot MHz  Freq Func State Name                                                                                                            Model
---- ---- ---- ---- ---- ---- ---- ---- ----- --------------------------------                                                                                ----------------------
I/O  PCI   9    B    4    33   33  4,0  ok    network-pci100b,35.30                                                                                           SUNW,pci-ce

No failures found in System
===========================

========================= Environmental Status =========================
System Temperatures (Celsius):
-------------------------------
Device          Temperature     Status
---------------------------------------
CPU0             61             OK
CPU1             59             OK
CPU2             61             OK
CPU3             64             OK
CPU4             66             OK
CPU5             63             OK
CPU6             63             OK
CPU7             62             OK
MB               33             OK
IOB              27             OK
DBP0             27             OK
DBP1             27             OK
=================================
Front Status Panel:
-------------------
Keyswitch position: NORMAL
System LED Status:
                   GEN FAULT                REMOVE
                    [OFF]                    [OFF]
                   DISK FAULT               POWER FAULT
                    [OFF]                    [OFF]
                   LEFT THERMAL FAULT       RIGHT THERMAL FAULT
                    [OFF]                    [OFF]
                   LEFT DOOR                RIGHT DOOR
                    [OFF]                    [OFF]
=================================
Disk Status:
          Presence      Fault LED       Remove LED
DISK   0: [PRESENT]        [OFF]           [OFF]
DISK   1: [PRESENT]        [OFF]           [OFF]
DISK   2: [PRESENT]        [OFF]           [OFF]
DISK   3: [PRESENT]        [OFF]           [OFF]
DISK   4: [PRESENT]        [OFF]           [OFF]
DISK   5: [PRESENT]        [OFF]           [OFF]
DISK   6: [PRESENT]        [OFF]           [OFF]
DISK   7: [PRESENT]        [OFF]           [OFF]
DISK   8: [PRESENT]        [OFF]           [OFF]
DISK   9: [PRESENT]        [OFF]           [OFF]
DISK  10: [PRESENT]        [OFF]           [OFF]
DISK  11: [PRESENT]        [OFF]           [OFF]
=================================
Fan Bank :
----------
Bank                        Speed         Status        Fan State
                           ( RPMS )
----                       --------      ---------      ---------
CPU0_PRIM_FAN                2040        [ENABLED]          OK
CPU1_PRIM_FAN                2127        [ENABLED]          OK
CPU0_SEC_FAN                    0        [DISABLED]         OK
CPU1_SEC_FAN                    0        [DISABLED]         OK
IO0_PRIM_FAN                 3000        [ENABLED]          OK
IO1_PRIM_FAN                 2857        [ENABLED]          OK
IO0_SEC_FAN                     0        [DISABLED]         OK
IO1_SEC_FAN                     0        [DISABLED]         OK
IO_BRIDGE_PRIM_FAN           3614        [ENABLED]          OK
IO_BRIDGE_SEC_FAN               0        [DISABLED]         OK
=================================
Power Supplies:
---------------
Supply     Status     Fan Fail  Temp Fail  CS Fail  3.3V   5V   12V   48V
------  ------------  --------  ---------  -------  ----   --   ---   ---
PS0      GOOD                                         6     5     3     7
PS1      GOOD                                         6     5     3     7
PS2      GOOD                                         6     5     3     7

========================= HW Revisions =======================================
System PROM revisions:
----------------------
OBP 4.22.34 2007/07/23 13:01
IO ASIC revisions:
------------------
                     Port
Brd  Model            ID  Status Version
---- --------------- ---- ------ -------
IB-1 unknown          8    ok     7
IB-1 unknown          9    ok     7


Last edited by DukeNuke2; 12-01-2009 at 04:07 AM..
# 4  
Old 11-30-2009
Indeed prtdiag isn't the right tool for that.

You can first check if the SUNWrsc package is there. If it isn't there, the RCS board is unlikely to be there too.

If SUNWrsc is installed, run (ksh):
Code:
# /usr/platform/$(uname -i)/rsc/rscadm show

That should show the RSC configuration or an error message if that board is missing.
# 5  
Old 12-01-2009
The RSC package can be installed even though there might not be any RSC card there physically..
So you're trying to use the "show" option here to see if it yields any output?
# 6  
Old 12-01-2009
As I wrote, there will always be an output, whether regular or an error message.
# 7  
Old 12-01-2009
You can look to see if the /dev entry exists:

root# ls -l /dev/rsc-control
lrwxrwxrwx 1 root root 58 Aug 10 2006 /dev/rsc-control -> ../devices/pci@9,700000/ebus@1/rsc-control@1,3062f8:sspctl


You can also look at prtconf -vP and look for lines like these:

rsc-control, instance #0
Device Minor Nodes:
dev=(37,16384)
dev_path=/pci@9,700000/ebus@1/rsc-control@1,3062f8:sspctl
spectype=chr type=minor
dev_link=/dev/rsc-control
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Check if 10 files exist

Hi All, Whenever i get 10 files(file names like sales*) then another file need to create. May i know how to implement this in KSH. (4 Replies)
Discussion started by: siddireddy
4 Replies

2. Shell Programming and Scripting

Check if file exist

Hi, I created following script to check if file exist: #!/bin/bash SrcDir=$1 SrcFileName=$2 SrcTimePeriod=$3 if ;then echo 1 else echo 0 fi I ran it like: /apps/Scripts/FileExist.sh /apps/Inbox file1 2nd_period_2010 Even file exist at that location, my above command is... (4 Replies)
Discussion started by: palak08
4 Replies

3. Shell Programming and Scripting

Check if file exist

Hi, I am trying to create a bash script which will check if file exist then remove that file else do nothing. I have to do same process for three files in same script. I have written code for one file and trying to run it. if then rm -r /user1/abc/File1 fi When I run this code it... (1 Reply)
Discussion started by: palak08
1 Replies

4. Shell Programming and Scripting

Check file exist issue

I have created two scripts, one with hardcoded and another one with extract from file instead of hardcoded, script:1 -------- #!/bin/ksh filename="$one/file1.dat" if then echo "$filename has arrived." >> $logfile else echo "$filename has NOT yet arrived." >> $logfile fi :> Result:... (4 Replies)
Discussion started by: gksenthilkumar
4 Replies

5. Shell Programming and Scripting

Check if file exist

Hi Does anybody know how I can check if a file exists i.e. see bellow, this doesn't work by the way and if tried countless variations on this file1=$one/file111.txt if then echo "Present" else echo "Not present" fi result : Not present (file is already present, eventhough its... (3 Replies)
Discussion started by: gksenthilkumar
3 Replies

6. Shell Programming and Scripting

Check Word if exist on file or not

Hello, I want to check if some word exist or not on some file By Example : word is : nixcraft file called : /root/shell.txt and i want to check if nixcraft word exist on /root/shell.txt file with if statement or another tool Any Ideas (5 Replies)
Discussion started by: LinuxCommandos
5 Replies

7. Shell Programming and Scripting

check the directory exist

I have the below script to check whether directory is exist or not , now I sure the directory /abc NOT exist , but when run the script , it still pop the result is "the directory exist" , could suggest what is wrong ? thx ll -d /abc > /dev/null 2>&1 if then echo "the directory exist !!" ... (7 Replies)
Discussion started by: ust
7 Replies

8. Shell Programming and Scripting

To check whether a directory is exist and if it is not, create it

Hi, I want to write a shell script to check whether a directory (say A) is existing in a given location and if it is not, create it. (3 Replies)
Discussion started by: sabya
3 Replies

9. Shell Programming and Scripting

how to check if directory/file exist using c/c++

Hi there,, how to check if directory/file exist using c/c++ under unix/linux? I can use access() under Window MFC. Thanks. Steven (1 Reply)
Discussion started by: steven88
1 Replies

10. UNIX for Dummies Questions & Answers

how to check if the file exist or not?

say i would like to check if the file is existed before i use rm command. How can i do it? i know if i can use find, but i would like to have a good interface (in a shell script) thks (3 Replies)
Discussion started by: gusla
3 Replies
Login or Register to Ask a Question