lscfg -vl vpath - error


 
Thread Tools Search this Thread
Operating Systems AIX lscfg -vl vpath - error
# 1  
Old 12-09-2010
lscfg -vl vpath - error

Hello all,

I need to run successfully this command :

Code:
1:root@abcd:/root # lscfg -vl vpathXY
lscfg: device vpathXY not found.
1:root@abcd:/root # echo $?
1

If I run it on another server I will get no output which is ok :

Code:
1:root@efgh:/root # lscfg -vl vpathAB
1:root@efgh:/root # echo $?
0

I have checked:

datapath query device
datapath query adapter
lsdev -Cc disk
lsdev -Cc adapter

All looks ok , everything available.

Do yo have any idea how to get it fixed ?

Thank you.
# 2  
Old 12-09-2010
try
Code:
lsdev|grep -i vpath

# 3  
Old 12-09-2010
Thank you for reply ....

Yes , it works but I have to run a script and that script runs

Code:
lscfg -vl vpathXY

and if it gives error the script would stop. I can not modify that script.
# 4  
Old 12-09-2010
Can I assume that this would actually be something like
Code:
lscfg -vl vpath23

rather than vpathXY?

Does the device exist in the list from Vit0_Corleone? You could also try
Code:
lsvpcfg

which will list all vpath devices you have and the hdisks they are made from.

If you do not have vpathXY, you will have to form it from the hdisks presented. Using
Code:
cfgmgr -S

may suffice.


Can you elaborate on why you can't change the script or why it must be so prescriptive?




Robin
Liverpool/Blackburn
UK
# 5  
Old 12-10-2010
Quote:
Originally Posted by rbatte1
Can I assume that this would actually be something like
Code:
lscfg -vl vpath23

rather than vpathXY?

Does the device exist in the list from Vit0_Corleone? You could also try
Code:
lsvpcfg

which will list all vpath devices you have and the hdisks they are made from.

If you do not have vpathXY, you will have to form it from the hdisks presented. Using
Code:
cfgmgr -S

may suffice.


Can you elaborate on why you can't change the script or why it must be so prescriptive?




Robin
Liverpool/Blackburn
UK

Thank you for your replay.

The script has been modified. Now it works fine.

Problem solved.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

unknow pci device as seen by lsslot or lscfg

on a p5 520, running aix 7.1 with the latest TL and SP.. had a 133 MHz Sun PCI 1G or quad 4 x 100 Meg Ethernet card installed.. but it shows unknown type using using lscfg or lsslot Is there addtional drivers to be installed ??? did the same thing on a SYMBIOS Ultra320 diff... (2 Replies)
Discussion started by: ppchu99
2 Replies

2. UNIX for Dummies Questions & Answers

> 5 ")syntax error: operand expected (error token is " error

im kinda new to shell scripting so i need some help i try to run this script and get the error code > 5 ")syntax error: operand expected (error token is " the code for the script is #!/bin/sh # # script to see if the given value is correct # # Define errors ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies

3. AIX

lscfg -vl vpath - error

Hello all, I need to run successfully this command : 1:root@abcd:/root # lscfg -vl vpathXY lscfg: device vpathXY not found. 1:root@abcd:/root # echo $? 1 If I run it on another server I will get no output which is ok : 1:root@efgh:/root # lscfg -vl vpathAB 1:root@efgh:/root # echo... (0 Replies)
Discussion started by: phobus
0 Replies

4. AIX

vpath and sharks

Hello everyone: just want to know how to get the name of the shark in which the vpath is? thanks (2 Replies)
Discussion started by: jcpetela
2 Replies

5. AIX

AIX vpath lun

Hi everyone, how can I check if I have LUNs in a server and the LUNīs vpath in AiX? thx (5 Replies)
Discussion started by: jcpetela
5 Replies

6. AIX

lscfg

I'm using the command "lscfg -vpl rmt*" to view all of my tape devices. However, it only works intermittently. Able to run it (sometimes) on both 5.2 and 5.3. Any ideas? (2 Replies)
Discussion started by: jwholey
2 Replies

7. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

8. Shell Programming and Scripting

vpath directive in make

Hi all, I need to check the contents of my vpath directive in my file. Is it possible to check the contents of the vpath directive as we do for a variable like @echo '$vpath' . Please let me know the above is correct or suggest me the correct one. Thanks in advance. -Jerry (6 Replies)
Discussion started by: jerryragland
6 Replies

9. AIX

vpath to an hdisk

Is there a simply way for me to map a vpath to an hdisk on AIX 5.2? (5 Replies)
Discussion started by: 2dumb
5 Replies

10. AIX

vpath fbvol relationship

Hi, I have a question about AIX vpaths and the fbvols you create via dscli on a DS8100 storage. Is there any command or any way to look which fbvol corresponds which vpath on operating system like the command fget_config -Av on a FastT storage system? I tried the datapath query device, datapath... (1 Reply)
Discussion started by: samaks
1 Replies
Login or Register to Ask a Question