10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello all, I can get close to what I am looking for but cannot seem to hit it exactly and was wondering if I could get your help.
I have the following sample from textfile with many thousands of lines: File 1
PS001,001 HLK
PS002,004 L<G
PS004,002 XNN
PS004,006 BVX
PS004,006 ZBX=... (7 Replies)
Discussion started by: jvoot
7 Replies
2. UNIX for Beginners Questions & Answers
I cannot seem to get what should be a simple awk one-liner to work correctly and cannot figure out why. I would like to use patterns from a specific field in one file as regex to search for matching strings in the entire line ($0) of another file.
I would like to output the lines of File2 which... (1 Reply)
Discussion started by: jvoot
1 Replies
3. UNIX for Beginners Questions & Answers
Hello Everyone ,
Iam a newbie to shell programming and iam reaching out if anyone can help in this :-
I have two files
1) Insert.txt
2) partition_list.txt
insert.txt looks like this :-
insert into emp1 partition (partition_name)
(a1,
b2,
c4,
s6,
d8)
select
a1,
b2,
c4, (2 Replies)
Discussion started by: nubie2linux
2 Replies
4. Shell Programming and Scripting
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
5. Shell Programming and Scripting
Hi Friends ,
I have file1.txt
1|b|46|123|47673|348738
2|c|63|124|7346|4783
3|y|45|125|5555|78789
output should swap the 4th field to the first field.
output
123|1|b|46|47673|348738
124|2|c|63|7346|4783
125|3|y|45|5555|78789 (3 Replies)
Discussion started by: i150371485
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I'd like to swap the columns 1 and 2 of a space-delimited text file but only for the first 1000 rows. How do I go about doing that? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies
7. Shell Programming and Scripting
I have the following lines in a log file. It would be great if some one can help me to create a new file with the just entries in the below format.
66.150.161.195 HPSAC=Z05
66.150.161.196 HPSAC=A05
That is just extract the IP address and the string DPSAC=its value
66.150.161.195 -... (1 Reply)
Discussion started by: Tuxidow
1 Replies
8. Shell Programming and Scripting
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
Discussion started by: raidzero
11 Replies
9. Shell Programming and Scripting
Hello,
I'm looking for a way to change the IP addresses in a large host file with those of matching hostnames in another file.
For example, I have a file with
file1 contains lines like:
192.168.0.55 hostname hostname.network.lan
192.168.0.52 junkhost junkhost.network.dev... (2 Replies)
Discussion started by: PointyWombat
2 Replies
10. Shell Programming and Scripting
Hi
I have afile with 15fields,say f1,f2....f15 delimited on comma. How can i swap the f1,f15 fields using unix shell commands or any script?
Thanks (3 Replies)
Discussion started by: ksailesh
3 Replies
scsi_vhci(7D) Devices scsi_vhci(7D)
NAME
scsi_vhci - SCSI virtual host controller interconnect driver
DESCRIPTION
The scsi_vhci driver is a SCSA compliant pseudo nexus driver that supports Solaris operating system I/O multipathing services for SCSI-3
devices. This driver introduces a fundamental restructuring of the Solaris device tree to enable a multipath device to be represented as
single device instance rather than as an instance per physical path as in earlier Solaris versions.
The multipath SCSI target devices managed by this driver are identified and represented by using SCSI-3 VPD page(0x83) as the device's
unit address.
Symbolic links in /dev/[r]dsk continue to adhere to the cNtNdNsN format. cN is the logical controller number assigned to this driver
instance. tN is the global unique identifier (GUID) of the multipath target device (64/128 bits), represented as hexadecimal numbers.
The following is an example of a system with a A5000 storage array:
...
/dev/rdsk/c4t200000203709C3F5d0s0 -> ../../devices/scsi_vhci/
ssd@g200000203709c3f5:a,raw
...
/dev/rdsk/c4t200000203709C3F5d0s7 -> ../../devices/scsi_vhci/
ssd@g200000203709c3f5:h,ra
...
The following is an example of a system with a T300 storage array:
...
/dev/rdsk/c1t60020F200000033939C2C2B60008D4AEd0s0 -> ../../devices/
scsi_vhci/ssd@g60020f200000033939a2c2b60008d4ae:a,raw
...
/dev/rdsk/c1t60020F200000033939A2C2B60008D4AEd0s7 -> ../../devices/
scsi_vhci/ssd@g60020f200000033939a2c2b60008d4ae:h,raw
The scsi_vhci driver receives naming and transport services from one or more physical HBA (host bus adapter) devices. To support multi-
pathing, a physical HBA driver must comply with the multipathing services provided by this driver.
The scsi_vhci driver supports the standard functions provided by the SCSA interface.
Configuration
The scsi_vhci driver can be configured by defining properties in the scsi_vhci.conf file.
The scsi_vhci driver supports the following property:
device-type-scsi-options-list
To add a third-party (non-Sun) symmetric storage device to run under scsi_vhci (and thereby take advantage of Solaris I/O multipathing),
you add the vendor ID and product ID for the device, as those strings are returned by the SCSI Inquiry command. As shipped, the
scsi_vhci.conf file contains, in part:
# device-type-scsi-options-list =
# "SUN SENA", "symmetric-option";
# symmetric-option=0x1000000;
For example,to add a device from a vendor with the ID of "Acme" and a product ID of "MSU", you would add:
device-type-scsi-options-list =
"Acme MSU", "symmetric-option";
symmetric-option=0x1000000;
In addition to "Acme," you also might want to add another entry, for example, a device from "XYZ" vendor with a product ID of "ABC:"
device-type-scsi-options-list =
"Acme MSU", "symmetric-option",
"XYZ ABC", "symmetric-option";
symmetric-option=0x1000000;
FILES
/kernel/drv/sparcv9/scsi_vhci
64-bit kernel module (SPARC).
/kernel/drv/scsi_vhci
32-bit kernel module (x86).
/kernel/drv/scsi_vhci.conf
Driver configuration file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |PCI-based systems |
+-----------------------------+-----------------------------+
|Availability |SUNWckr |
+-----------------------------+-----------------------------+
SEE ALSO
eeprom(1M), prtconf(1M), attributes(5), fcp(7D), fctl(7D), fp(7D), ssd(7D), scsi_abort(9F), scsi_ifgetcap(9F), scsi_pkt(9S),
scsi_reset(9F), scsi_transport(9F), scsi_inquiry(9S), scsi_extended_sense(9S)
Writing Device Drivers
Small Computer System Interface-3 (SCSI-3)
NOTES
In previous releases, the scsi_vhci.conf file supported the mpxio-disable property, which allowed you to disable Solaris I/O multipathing
on a system-wide basis. This property is not present in the current release of the Solaris operating system. Multipathing is always
enabled in scsi_vhci. If you want to disable multipathing, use the mechanisms provided by the HBA drivers. See fp(7D).
In previous releases, Solaris I/O multipathing was also known as MPxIO and Sun StorEdge Traffic Manager (STMS).
SunOS 5.10 2 Dec 2004 scsi_vhci(7D)