Here is an example of how to do it using xsltproc. Suppose your XML document (file.xml) contains 2 records i.e.
and you have an XSL stylesheet called file.xsl (deliberately simplified) which contains
Using xsltproc to transform the document produces the required output
I need to know the way. I have got parsing down some nodes. But I was unable to get the child node perfectly. If you have code please send it. It will be very useful for me. (0 Replies)
Hi! I'm just new here and don't know much about shell scripting. I just want to ask for help in creating a shell script that will parse a string or value of the status in the xml file. Please sample xml file below. Can you please help me create a simple script to get the value of status? Also it... (46 Replies)
Hi All,
I have been working on something that doesn't seem to have a clear regex solution and I just wanted to run it by everyone to see if I could get some insight into the method of solving this problem.
I have a flat text file that contains billing records for users, however the records... (5 Replies)
Hi Everybody,
I have an XML file containing some data and i want to extract it, but the specific issue in my file is that the data is repeated some times like the following example :
<section1>
<subsection1>
X=...
Y=...
Z=...
<\subsection1>
<subsection2>
X=...
Y=...
Z=...... (2 Replies)
Enclosed is comma separated text file. I need to write a korn shell program that will parse the text file and insert the values into Oracle database.
I need to write the korn shell program on Red Hat Enterprise Linux server.
Oracle database is 10g. (15 Replies)
Hi All,
I need to parse some statistic data from the "measInfo" -eg. 25250000 (as highlighted) and return the result into line by line, and erasing all other unnecessary info/tag.
Thought of starting with grep "measInfoID="25250000" but this only returns 1 line. How do I get all the output... (8 Replies)
Hello !
I am very aware that this is not the first time this question is asked here, because I have already read a lot of previous answers, but none of them worked, so...
As said in the title, I want to read a csv file with a bash script.
Here is a sample of the file:
... (4 Replies)
Hi All,
Hope all you are doing good! Need your help. I have an XML file which needs to be converted CSV file. I am not an expert of awk/sed so your help is highly appreciated!!
XML file looks like this:
<l:event dateTime="2013-03-13 07:15:54.713" layerName="OSB" processName="ABC"... (2 Replies)
Hello gurus,
I have a csv file with bunch of datas in each column. (see attached)
Now I have an .xml file in the structure of below:
?xml version="1.0" ?>
<component id="root" name="root">
<component id="system" name="system">
<param name="number_of_A" value="8"/>
... (5 Replies)
Discussion started by: Zam_1234
5 Replies
LEARN ABOUT OPENSOLARIS
iscsitgtd
iscsitgtd(1M) System Administration Commands iscsitgtd(1M)NAME
iscsitgtd - iSCSI Target daemon
SYNOPSIS
iscsitgtd [-d door_file]
DESCRIPTION
The iscsitgtd daemon process implements the iSCSI configuration, control, and data paths, providing iSCSI Target Mode support in the
Solaris operating system.
The configuration and control path is by means of the Solaris Doors subsystem (see door_create(3C)), and provides the interface between
the iSCSI Target administration utility, iscsitadm(1M), persistence configuration data stored in the Service Configuration Facility (SCF)
of the service management facility (SMF). See smf(5).
The data path managed by the daemon exists between TPC/IP port 3260, and the files, block devices, or raw SCSI devices configured as iSCSI
target LUNs.
OPTIONS
The following options is supported:
-d door_file
Override the location of the Solaris Door used for configuration from /var/run/iscsi_tgt_door to a door of one's choosing.
Solaris Configuration Facility (SCF)
The following options are supported:
PGR-basedir
SCSI-3 PGR base directory for ZVOL failover. Set to /.
daemonize
Run as Solaris daemon process. Either true or false.
dbg-lvl
Runtime debug level to console.
qlog-lvl
Runtime logging to /tmp/target_log.
The following are the logging values, in hexadecimal.
0x00001 - Connection errors
0x00002 - Connection login errors
0x00004 - Connection Non-I/O errors
0x00008 - Connection I/O errors
0x00010 - Session errors
0x00020 - Session login errors
0x00040 - Session Non-I/O errors
0x00080 - Session I/O errors
0x00100 - Emulation errors
0x00200 - Emulation Non-I/O errors
0x00400 - Emulation I/O errors
0x01000 - General errors
0x02000 - General details
0x04000 - iSNS details
0x10000 - SCSI-3 PGR errors
0x20000 - SCSI-3 PGR Non-I/O errors
0x40000 - SCSI-3 PGR I/O errors
EXAMPLES
Example 1 Listing All iscsitgt Values
The following commands lists all iscsitgt values.
# svccfg -s iscsitgt listprop iscsitgt
Example 2 Setting SCF Options
The following command sets the PGR-basedir option.
# svccfg -s iscsitgt setprop iscsitgt/PGR-basedir = astring: "/"
The following command sets the dbg-lvl option.
# svccfg -s iscsitgt setprop iscsitgt/dbg-lvl = integer: 0x80ffffff
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWiscsitgtu |
+-----------------------------+-----------------------------+
|Interface Stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO iscsitadm(1M), door_create(3C), attributes(5), smf(5)NOTES
The iSCSI Target daemon, iscsitgtd, is managed by the service management facility, smf(5), under the fault management resource identifier:
svc:/system/iscsitgt:default
SunOS 5.11 16 Mar 2009 iscsitgtd(1M)