Script to find out important ports in an xml file.
Is there any script to find out important ports detail in the xml file ??
928983 wrote:
Is there any script to find out important ports detail in the xml file ??Use the grep command -- http://bit.ly/KqYTVf
Thanks,
Hussein
Similar Messages
-
How can I find out what port number my DB is using
How would one find out what port number a database is using? Is there a SQL command that will allow us to do this?
Thanks,
oracle_newbienewbie
Oracle databse assigns a dynamic port number for each established session. Usually, the common port is 1521 which is defined in you tnsnames.ora, however, this is used for requesting a dynamic port. Dynamic ports are within a ragne of 1000+. That's why it is hard to tell which port you are using at a certain time. You should have a network monitoring tool to check this accurately.
Regards
null -
How to find out important fields in table like MARA?
How to find out important fields in a table for example like MARA?
Details: In R/3 or ECC table for example MARA;
1) How to find out what are the important fields?
2)Does the table have only key figures not characteristics right?
3) There are so many tables in FI; Can you please tell me what are the important tables?
4) There is any easy automatic way to figure out that the particular datasource for example 2lis_02_item is pulling data from so and so table. I like to know the process not the results please.
Thanks in advance.
York.Hi York,
Let me go by points:
1. There is nothing like important fields ... The question could be Key fields ... the fields which identify a record uniquely ... If you go to SE11, and go inot the dispaly of MARA table ... you will see that there is tick mark under key to indicate that the field is a key field ... All the fields which are so marked would identify a record in the table uniquely. If your question is otherwise ... (Important fields) ... then it depends on the purpose you wnat to meet ... Some fields might be important for me but not for you ... so there is not hard nad fast rule for important fields.
2. No... Tables in R/3 or ECC would contain both Key figures and characteristics.
3. Important tables in FI would be BKPF, BSEG and BSET.
4. The procedure for finding out which table are used by say 2lis_02_item would be different from that of other non LO/LIS extractors.
In case of LO/LIS turn on the trace (below process) while populating the setup tables and for thoers while executing RSA3.
1. Open one session and go to ST05, click on "Activate Trace"
2. Open another session and execute the transaction you want to track for the tables it is going to hit.
3. Go to the session of point 1 above and click on DEACTIVATE TRACE
4. Click on DISPLAY Trace
This will show you all the tables that were hit while extracting data. Point to remember here is ... it will hit some standard tables as well ... so you will have to filter out what is relevant from what is not.
Hope this helps.
best regards,
Kazmi -
Is there a way to find out whether all of my music files have been imported to iTunes?
Is there a way to find out whether all of my music files on the computer have been imported to iTunes?
I want to consolidate my music files to tidy it all up into one place, and then delete the originals. I don't want to delete any music until I know that it's all been imported.
Thanks.Try iTunes Folder Watch and point it all the places you store media. When you're happy everything has been imported you can consolidate.
See also this post on Duplicates which includes a link to a backup tip.
tt2 -
Script to find out that users do not have inheritable permission checked
Hi all,
I just check our AD (windows 2003 R2) and some users have "allow inheritable permissions from the parent to propagate to this object and all child objects. include these with entries expilitly defined here" checked if I open active directory
users and computers console and highlight this user and go to properties and select security and click advanced). some users do not have ""allow inheritable permissions from the parent to propagate to this object and all child objects. " checked.
Is there a way to script to find out which users do not have "allow inheritable permissions from the parent to propagate to this object and all child objects. .." checked?
Thank you for your help.There are several ways to use ADO in a VBScript program. The alternative below uses an ADO command object, so we can specify a "Page Size". This overcomes the 1000 (or 1500) limit on records returned, as it turns on paging. I have also modified
the script for comma delimited output. This script should be run at a command prompt so the output can be redirected to a text file. For example:
cscript //nologo FindUsers.vbs > report.csv
The modified script follows:
Option Explicit
Dim adoCommand, adoConnection, strBase, strFilter, strAttributes
Dim objRootDSE, strDNSDomain, strQuery, adoRecordset, strNTName, strDN
Dim objUser, objSecurityDescriptor, intNTSecDescCntrl, strInheritable
Const SE_DACL_PROTECTED = &H1000
' Setup ADO objects.
Set adoCommand = CreateObject("ADODB.Command")
Set adoConnection = CreateObject("ADODB.Connection")
adoConnection.Provider = "ADsDSOObject"
adoConnection.Open "Active Directory Provider"
Set adoCommand.ActiveConnection = adoConnection
' Search entire Active Directory domain.
Set objRootDSE = GetObject("LDAP://RootDSE")
strDNSDomain = objRootDSE.Get("defaultNamingContext")
strBase = "<LDAP://" & strDNSDomain & ">"
' Filter on user objects.
strFilter = "(&(objectCategory=person)(objectClass=user))"
' Comma delimited list of attribute values to retrieve.
strAttributes = "distinguishedName,sAMAccountName"
' Construct the LDAP syntax query.
strQuery = strBase & ";" & strFilter & ";" & strAttributes & ";subtree"
adoCommand.CommandText = strQuery
adoCommand.Properties("Page Size") = 500
adoCommand.Properties("Timeout") = 30
adoCommand.Properties("Cache Results") = False
' Run the query.
Set adoRecordset = adoCommand.Execute
' Enumerate the resulting recordset.
' Write a header line.
Wscript.Echo """NT Name"",""Distinguished Name"",""Allow inheritable permissions"""
Do Until adoRecordset.EOF
' Retrieve values.
strNTName = adoRecordset.Fields("sAMAccountName").Value
strDN = adoRecordset.Fields("distinguishedName").Value
strDN = Replace(strDN, "/", "\/")
Set objUser = GetObject("LDAP://" & strDN)
Set objSecurityDescriptor = objUser.Get("ntSecurityDescriptor")
intNtSecDescCntrl = objSecurityDescriptor.Control
If (intNtSecDescCntrl And SE_DACL_PROTECTED) <> 0 Then
strInheritable = "Disabled"
Else
strInheritable = "Enabled"
End If
Wscript.Echo """" & strNTName & """,""" & strDN & """," & strInheritable
' Move to the next record in the recordset.
adoRecordset.MoveNext
Loop
' Clean up.
adoRecordset.Close
adoConnection.Close
Richard Mueller
MVP ADSI -
Script to find out patch of database
OS: Windows
Database: Oracle 9i realease 2
I learnt there is a script to find out the patch level of a database, can anyone advise please.That works, when the database is running. I don't know a script, but you may call an executable and catch the release number, for example:
rman
Recovery Manager: Release 10.2.0.2.0 - Production on Thu Oct 12 13:44:03 2006
But patching does not necessarily mean all components are always patched to the highest level.
Werner -
Script to find out table and index candidates to keep in the buffer pool
I am looking for a script to find out tables and indexes to keep in the buffer pool.
Could you help me on this ?
thanks...
Markusthis is more of a open question. As you know ur data well. We do not know whats ur data. cachin tables in buffer pool is okay, but it might age out after not being used...instead you can use the KEEP POOL...to cache small tables/popular tables into the keep pool...as keep pool guarantees full caching .....
here are some links on keep pool cacheing
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref410
http://www.dba-oracle.com/oracle_tips_cache_small_fts.htm
http://www.dba-oracle.com/t_script_automate_keep_pool_tables_indexes.htm
http://www.dba-oracle.com/oracle_news/news_caching_keep_pool_large_objects_clob_blob.htm
Edited by: user630084 on Apr 8, 2009 5:48 AM -
How to find out when a folder or a file has been renamed?
I need to find out when a folder and some files have been renamed.
This happened when Mac OS X was 10.6 (Leopard Snow), now the Max OS X is Lion.
I use standard HFS+ filesystem format.
In Lion apparently there is a file property "Date Added" that change if a file is renamed, but the same property seems to be unused (e.g. -/-) before Lion.
I have Time Machine backups that help me to know that rename happened within a certain week, but I was looking for something more accurate (at least day accuracy).
If file system metadata can't help, I'm wondering if there is some log that track the first time spotlight indexed a specific file.
Thank you
/AndreaMaybe you could keep tabs of the file size. If the file size grows (which it will do each time the writing process flushes that files output buffer), then the file was written to.
What I'd like to know is if there is some way to monitor the entire drive for changes and respond to stuff like that. I know that the Win32 API provides services that monitor the file system for changes, but I don't know if other OS's do... or if Java provides an interface to those features. -
Using HTTPService to import data from a XML file
Hello there!
I'm having some problem's with this import... If anyone can
help, I would appreciate it!
I'm using this type of information as data source:
public var dataCollection:ArrayCollection =
new ArrayCollection([
{ id: "P1", name: "Porto", type: "team", children: [
{ id: "R1", name: "Dr Silva", location: "Bloco 1", type:
"member" },
{ id: "R2", name: "Dra Neto", location: "Gabinete", type:
"member"
{ id: "P2", name: "Braga", type: "team", children: [
{ id: "R3", name: "Dr Santos", location: "Bloco 2", type:
"member" },
{ id: "R4", name: "Dra Sonia", location: "Piso 1", type:
"member"
But I want to import it from a XML file like this:
<?xml version="1.0" encoding="utf-8"?>
<items>
<item id="P1" name="Porto" type="team">
<children id="R1" name="Dr Silva" location="Bloco 1"
type="member" />
<children id="R2" name="Dra Neto" location="Gabinete"
type="member" />
</item>
<item id="P2" name="Braga" type="team">
<children id="R3" name="Dr Santos" location="Bloco 2"
type="member" />
<children id="R4" name="Dra Sonia" location="Piso 1"
type="member" />
</item>
</items>
I already import the file, but can not translate the data
into a array collection.
private function initApp():void {
var httpService:HTTPService = new HTTPService();
httpService.url = "dataprovider.xml";
httpService.resultFormat = "e4x";
httpService.addEventListener(FaultEvent.FAULT,
onFaultHttpService);
httpService.addEventListener(ResultEvent.RESULT,
onResultHttpService);
httpService.send();
private function onFaultHttpService(e:FaultEvent):void
Alert.show("Error reading data file.");
private function onResultHttpService(e:ResultEvent):void
//Convert the xml data to a array collection
Thank youHello Peter, and thank you for your reply's.
My problem is that I'm receiving the data from the external
file and I don't know how to get the children in place... I mean, I
also have some data being received form a file that I can convert
into an array collection, but the thing is, that file doesn't have
children structure...
It's something like this:
<?xml version="1.0" encoding="utf-8"?>
<items>
<item id="T1" resourceId="R1" name="Cardiologia"
startTime="25-3-09 8:0:0" endTime="25-3-09 8:30:0" />
<item id="T2" resourceId="R2" name="Raio-X"
startTime="25-3-09 9:0:0" endTime="25-3-09 9:15:0" />
<item id="T3" resourceId="R3" name="Analises"
startTime="25-3-09 12:0:0" endTime="25-3-09 12:45:0" />
<item id="T4" resourceId="R4" name="Consulta"
startTime="26-3-09 8:0:0" endTime="26-3-09 9:0:0" />
</items>
And I solve it with this (don't know if is the best):
private function onResultHttpServiceTask(e:ResultEvent):void
var a:Array = xmlListToObjectArray(e.result.item);
tasks = new ArrayCollection(a);
protected function
xmlListToObjectArray(xmlList:XMLList):Array
var a:Array = new Array();
for each(var xml:XML in xmlList)
var attributes:XMLList = xml.attributes();
var o:Object = new Object();
for each (var attribute:XML in attributes)
var nodeName:String = attribute.name().toString();
var value:*;
value = attribute.toString();
o[nodeName] = value;
a.push(new ObjectProxy(o));
return a;
But when the children "enter in action" I don't know how to
bring them to the array...
This code you send it's preaty much the thing I need, but the
thing is that I don't know how to call the children with data as
e:ResultEvent...
If you can help a bit more, I would really appreciate...
Thank You -
Write Out a DOM as an XML File in "pretty format"
Hi all,
I am using javax.xml.transform.Transformer to Write Out a DOM as an XML File. (URL: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPXSLT4.html) It runs very well but in the XML output, it is not "format".
I means, for example, there are a line like (on one line):
<p>Bonjour Madame, Monsieur,</p><p>Voici LOT<strong><label>LOT.VPLOT_CODE</label></strong>�du batiment<strong><label>BATIMENT.VPBAT_CODE</label></strong>�</p>
I would like to output like the IE show:
<p>Bonjour Madame, Monsieur,</p>
<p>Voici LOT
<strong>
<label>LOT.VPLOT_CODE</label>
</strong>
du batiment
<strong>
<label>BATIMENT.VPBAT_CODE</label>
</strong>
</p>
How can I set properties for that, please?
thanks a lot
best regards
Haichange System.out.print
to System.out.println
or insert "\n" whenever to want to start a new line"
for instance:
System.out.print("this line one.\nThis is line two");
will print
This is line one.
This is line two
or you can do
System.out.println("This is line one.");
System.out.println("this is line two"); -
Is there any script or batch program that can pick a xml file...
Hi,
Is there any script or batch program that can pick a .xml file from a folder and place it in a different folder on the same directory periodically without using an XI interface.
Thanks,
npHi Nadini,
Please refer below link for how to sechdule a batch file.
[Schedule Batch File-How to?|http://www.tech-archive.net/Archive/WinXP/microsoft.public.windowsxp.general/2006-04/msg01349.html]
And please refer below links for how to write a batch file and other one as batch file commands.
http://www.wikihow.com/Write-a-Batch-File
http://www.aumha.org/a/batches.php
these two links was a click away in google :).
regards
Aashish Sinha -
How to find out Import/Export - Set/Get Parameter
Hi All,
In many BAdi / User Exit - Many IMPORT and SET Parametrs is used eq. IMPORT flag = flag FROM MEMORY ID 'DELT'.
But I unable to find out where this Parameters is EXPORT . Which BAdi or Whic User Exit.
Same things for SET Parametrs .
Regad
DKHi,
One way could be to go in the debugger mode and create break point at statements.
Go into Breakpoints Menu -> BreakPoint at - Statment. Here enter IMPORT or EXPORT or Set or Get as per the requirement.
Code will stop evey time that particular statement is encountered.
Regards,
Pranav. -
How to find out import & export path for object migration between D Q & P?
Hi guys!
Is there a way, how to find out export and import path for object transport on XI?
Thanx!
OlianHi,
Have a look at these links.
When we do an export of the IR or the ID Oblects, a typical path at which it gets exported in the XI Server is as follow:
For IR Objects:
C:\usr\sap\PI1\SYS\global\xi\repository_server\export
For ID Objects:
"C:\usr\sap\PI1\SYS\global\xi\directory_server\export"
Now in case you need to import the ".tpz" that you have.... You need to place it in the path mentioned below and u will be able to do import it from IR or ID...
For IR Objects:
C:\usr\sap\PI1\SYS\global\xi\repository_server\import
For ID Objects:
"C:\usr\sap\PI1\SYS\global\xi\directory_server\import"
File Level transport in sap xi
Every SLD related transport details are explained here
Regarding transport of SLD objects
https://service.sap.com/~sapdownload/011000358700001684302005E/HowToSLDandXI.pdf
Regarding transport of XI objects
http://help.sap.com/saphelp_nw04/helpdata/en/93/a3a74046033913e10000000a155106/content.htm
Regards,
Akshay Jamgaonkar.
Reward points if find useful.
Message was edited by:
Akshay Jamgaonkar
Message was edited by:
Akshay Jamgaonkar -
Find out listener port number in linux?
hi, can anyone tell me how i find out the listener port number in linux?
sti..l getting the same error (please see below)
oracle@matt-desktop:~$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-JUL-2010 16:39:19
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 19-JUL-2010 16:39:21
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
The listener supports no services
The command completed successfully
oracle@matt-desktop:~$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-JUL-2010 16:39:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 19-JUL-2010 16:39:21
Uptime 0 days 0 hr. 0 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/matt-desktop/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle@matt-desktop:~$ cd $ORACLE_HOME/bin
oracle@matt-desktop:/u01/app/oracle/product/11.2.0/dbhome_1/bin$ ./emca -config dbcontrol db -repos create
STARTED EMCA at 19-Jul-2010 16:40:32
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: orcl
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
You have specified the following settings
Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
Local hostname ................ matt-desktop
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
Do you wish to continue? [yes(Y)/no(N)]: y
19-Jul-2010 16:40:56 oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log.
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_repos_create_<date>.log for more details.
19-Jul-2010 16:40:57 oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log for more details.
Could not complete the configuration. Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2010_07_19_16_40_32.log for more details.
oracle@matt-desktop:/u01/app/oracle/product/11.2.0/dbhome_1/bin$
=========================================================
========================================================
The log file is 571 lines...
is it anything to do with this stage: --->
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_1 ]:
im not actually entrering anything, im just clicking enter??
Edited by: user9200169 on 19-Jul-2010 08:45 -
6509:How can I find out which port ping is going thru
I am trying to find out on which port <targetIP> is connected to. I know there may be a hub between the switch port and the <targetIP>.
From my Telnet-session-6509, I do:
traceroute <targetIP>
and also
ping <targetIP>
I got responses OK for both, traceroute shows only 1 line, which is the <targetIP>. That means there is no router on the way.
Then I do:
#show mac-address-table | include <targetIP>
I've got no output.
Can someone tell me what I am missing? I see that the show mac-address-table | include <targetIP> doesn't show a mac address entry associated with this(in which table I could use to see the respective switch port traffic is flowing). I thought that when getting the ICMP replies from <targetIP> the switch would record the MAC address in the CAM table.
Can you please let me know how I can find out in which switch port this respective -> Possible Hub--> <targetIP> is plugged into?Hi
The switch should record the mac-address in the CAM table. Is this the command you used
#show mac-address-table | include
because the mac-address table does not include IP addresses.
You need to do this
1) ping
2) sh arp | include
From the above command you should be able to get the mac-address
3) sh mac-address-table address "mac-address"
HTH
Jon
Maybe you are looking for
-
the problem has been going on for a few days now and today i tried turning the ipod on and the apple sign flashed for a few seconds before shutting off again. thanks for any help!
-
Hi all, While carrying out production order settlement for a production order, the system is determining the wrong GL A/C. Well it's deriving the GL A/C which does not exist. I need to change this assignment to a valid GL A/C. How am I suppose to fix
-
Could not complete your request because an adjustment or fill layer cannot be converted to the desti
Getteing the following message when dragging layers between files - Could not complete your request because an adjustment or fill layer cannot be converted to the destination document mode. Original file was client created and supplied. I have issola
-
Do we apply CPU or PSU patches to the database or to the oracle binaries. If we apply to oracle binaries does it effect to all the databases. Is there any pathes that are only for database. Please let me know. Thank you!
-
Hi all, I have installed 10g app server and also new to 10g. My doubt is , is there any way to created domain in 10g app server as in weblogic . Please reply to this. Srini