How to list deployments on a particular server?
Using wlst, before my script deploys an app, I want to check to see if it is deployed in the target and, if needs be, undeploy first.
The problem is that the script below does not show the target for the existing deployment. I only want to undeploy if the app is deployed to my server.
app_map = ls('/AppDeployments', returnMap='true')
if app_map.size() > 0:
print 'Found a previous version. Undeploying...'
for bean in app_map:
if bean.startswith('MyApp'):
undeploy(bean, targets='MyNewServer', block='true')
print 'App successfully removed.'
How can I narrow down the ls() list to applicaitons deployed to my server only?
If you are trying to see the deployment status of your application on a particular server, you will probably need to use the domainRuntime() MBean tree (instead of the domainConfig() tree):
For example:
domainRuntime()
cd('ServerRuntimes/<the_server_name_your_are_interested_in>/ApplicationRuntimes/<name_of_your_application>/ComponentRuntimes/<app_component_name/)
cmo.getDeploymentState()
Similar Messages
-
Urgent: How to list all alias for a server throw DNS query?
Hi
Is there anyone know how to list all alias for a server by asking the network DNS. Is that possible?
It doesn't work with InetAddress it return a single result.
Best regardInetAddress will not get you the aliases, but you can certainly find all the different IP addresses for a specific host name using the getAllByName() method.
You won't be able to get the aliases since those IP addresses (assuming there are more than 1) will all be cached as mapping to the name you passed to the getAllByName() method and you can't clear the map cache until the JVM exits.
So your best hope is to get a list of IP's and either exit your app and restart with a new mode, or save them to a file for another app to read. -
How to implement tooltip for the list items for the particular column in sharepoint 2013
Hi,
I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
Any help will be appreciatedWe can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/ -
How to recursively find shortcuts whose target point to a particular server IP
I have a rather large directory containing multiple subfolders containing subfolders. Is there a script that will search through the entire directory structure, and give me a list of shortcuts whose target point to a particular server's IP address?
This script uses PowerShell.
# List all .lnk files and their image paths
#Replace variables IPAddress and Path with values for your environment.
$IPAddress = "IP address to filter on"
Function Get-Shortcuts
$Path = "Directory_to_Search"
$Items = Get-ChildItem $Path -Recurse -Include *.lnk, *.url
ForEach ($Item in $Items) {
$Shell = New-Object -ComObject WScript.Shell
$Properties = @{
ShortcutName = $Item.Name
Target = $Shell.CreateShortcut($Item).targetpath
New-Object PSObject -Property $Properties
[Runtime.InteropServices.Marshal]::ReleaseComObject($Shell) | Out-Null
Get-Shortcuts | Where {$_.Target -like "*$IPAddress*"}
###Adapted from http://www.computerperformance.co.uk/powershell/powershell_create_shortcut.htm -
Sunone Messaging Server 6.1--How to list all mail user's last login time
hi,i want to know how to list all the mail user's last login time.
There are more than 100000 mailbox accounts on our mail server,
i want to know which account is not used for more than 2 or 3 years.
thanks.http://wikis.sun.com/display/CommSuite/imsconnutil
Somchai. -
How to get the list of file from application server
Hi Expert.
I want to get the file list from dicrectory in application server
best regards.
AlexHi.
Yes, You are right, i can get the file list by AL11.
But i need get the list in ABAP program.
So i need a function modul to get the list. If you has some sample code, it should be very nice.
Best.
Alex -
How to insert sharepoint list item attachment to sql server db programatically
Hi,
I need to insert sharepoint list item attachments to sql server db programatically. Could some one suggest some approach and if any one work on it please provide the code. Thanks in advancehi,
you can do it using powershell. Use the below script to loop through all the items attachments inside list.
$web = $site.RootWeb<br />
$Lists = $Web.Lists[$ListName]
$Library = $web.Lists[$LibName]
foreach($listItem in $Lists.Items)
if($listItem.Attachments.Count -gt 0)
Write-Host "**************************************************"
Write-Host $listItem.Attachments.Count"Attachment(s) available in the ListItem:" $listItem.Title
Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
$i=0
foreach($attachment in $listItem.Attachments)<br />
$i++
Write-Host $i".Attachment Name:" $listItem.Attachments.UrlPrefix$attachment
$file = $web.GetFile($listItem.Attachments.UrlPrefix+$attachment)
Write-Host "Adding Files to Library:"$Library.Title
$bytes = $file.OpenBinary()
Write-Host "Successfully Added"<br /> Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
Write-Host "**************************************************"
And use the below script to insert into SQL.
#Connect to DB
$DB = “server=MyInstanceName;integrated security=sspi;database=Bob”
$conn = new-object System.Data.SqlClient.SqlConnection($DB)
#Build the command and parameters
$cmd = New-Object System.Data.SQLClient.SQLCommand
$cmd.CommandType = [System.Data.CommandType]‘StoredProcedure‘
$cmd.Parameters.Add(“@Col1″, [System.Data.SqlDbType]‘VarBinary‘)
$cmd.Parameters[“@Col1″].Size = -1
$cmd.Parameters[“@Col1″].Value = $bytes
$sql = "INSERT INTO <table> (Col1) VALUES " + $cmd.Parameters[“@Col1″]
#Execute the command
$conn.Open()
$cmd.ExecuteNonQuery()
P.S. There may be some syntax error you have to make it work but the concept is right.
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
How many number of times a particular report was executed
Hi..My requirement is to find how many number of times a report/tcode was executed in a particular period of time.I tried using STAD,STAT AND ST03 ..but i am not able to find how many number of times the particular report was executed ..is there any other tcode or table or FM ..that would solve this problem..its bti urgent..wud reward points for all useful answers could u let me know under what name or field int eh out put this particular info that i am looking for wud be displayed?
Hi,
The following code i found from this forum, may this will help you.
* internal tables for use counter
data: begin of list occurs 5.
include structure sapwlserv.
data: end of list.
data: begin of applicat occurs 0.
include structure sapwlustcx.
data: end of applicat.
data: begin of applica_ occurs 0.
include structure sapwlustcx.
data: end of applica_.
data: begin of applicau occurs 0,
entry_id like sapwlustcx-entry_id,
account like sapwlustcx-account,
count like sapwlustcx-count,
: end of applicau.
data: wa_applicau like applicau.
*& Form MONI
form moni.
data: l_host like sapwlserv-hostshort.
m_start = p_usedt.
*** get server
call function 'SAPWL_SERVLIST_GET_LIST'
tables
list = list.
do.
loop at list.
*** loop on server
check not list-instshort is initial.
l_host = list-instshort.
*** get statistics per month and server
perform workload using m_start l_host.
endloop.
add 31 to m_start.
if m_start > sy-datum.
exit.
endif.
enddo.
sort applica_ by entry_id.
sort applicau by entry_id count descending.
endform. " MONI
*& Form WORKLOAD
form workload using p_start like sy-datum
p_host like sapwlserv-hostshort.
refresh: applica_.
*** read application statistic from MONI
call function 'SAPWL_WORKLOAD_GET_STATISTIC'
exporting
periodtype = 'M'
hostid = p_host
startdate = p_start
only_application_statistic = 'X'
tables
application_statistic = applica_
exceptions
unknown_periodtype = 1
no_data_found = 2
others = 3.
sort applica_ by entry_id account.
loop at applica_ where entry_id(1) ge 'Y'. "#EC PORTABLE
clear wa_applicau-entry_id.
wa_applicau-entry_id(25) = applica_-entry_id.
wa_applicau-account = applica_-account.
wa_applicau-count = applica_-count.
collect wa_applicau into applicau.
endloop.
sort applicau by entry_id count descending.
applica_-ttype = space.
applica_-account = space.
modify applica_ transporting ttype account
where ttype ne space.
*** collect only enhancements statistic
if p_temp = 'X'.
loop at applica_.
applica_-entry_id+25(48) = space.
collect applica_ into applicat.
endloop.
else.
loop at applica_ where entry_id(1) ge 'Y'. "#EC PORTABLE
applica_-entry_id+25(48) = space.
collect applica_ into applicat.
endloop.
endif.
endform. " WORKLOAD
aRs
Points are always welcome -
How to find out about the SMTP Server
Hi,
I have been trying to configure groupware in the portal - in particular I want to enable the sending of emails through the portal. I already have a how-to-guide that that seems to explain the steps quite well. However, it mentions that I need to know the SMTP Server of the email. Can you tell me how to find out about the SMTP Server? Where do I need to look for the name of it?
Thank you and regards,
KatharinaHi Katharina,
you need the SMTP server of your company. This means you can't look for it in the portal, but have to ask the responsible person in your company.
Kind regards,
dominik -
Domain administrator service accounts limit access to a particular server/s
We need to adjust these to adjust our service accounts and would like them to be restricted to a particular server and restrict their logon or access. Any
suggestions on how to manage this through Active Directory at an enterprise level? We want to lock down the accounts to specific servers but we can't use local admins for these particular group of accounts.
For the time being I was thinking about using AD to "logon on to" and enter the server names to limit the access but I was didn't know if there was any
better approach to the solution. Any suggestion or any other ways to configure? Caveats?> For the time being I was thinking about using AD to "logon on to" and
> enter the server names to limit the access but I was didn't know if
> there was any better approach to the solution. Any suggestion or any
> other ways to configure? Caveats?
Funny I wrote a post on user privilege assignment some days ago :)
Unfortunately, it is available in german only, but maybe google/bing can
translate good enough to make sense:
http://evilgpo.blogspot.de/2015/04/wer-bin-ich-und-was-darf-ich.html
Greetings/Grüße,
Martin
Mal ein
gutes Buch über GPOs lesen?
Good or bad GPOs? - my blog…
And if IT bothers me -
coke bottle design refreshment (-: -
How to display HTML file from Unix server on UI at runtime
Hi Experts,
My requirement is to display HTML files, related to some particular person, on UI. The file is existing on a separate UNIX server and a file related to one person may have a lot of attached files as well , as is the case generally with HTML files, including pictures etc. So it is no use transferring file on my CRM system, as the files are kept separately on this UNIX server which is particularly for this kind of storage.
I am able to show files residing on MIME repository ( I created some new HTML files ) of my CRM system on UI. but I don't know how to go ahead with this particular requirement.
One idea is that I can map one folder of my application server to that unix server so that I can see the HTML files in this particular folder. but I don't know how to map MIME repository folder to application server directory or directly to the UNIX server .
Please advise. Is my approach correct or is there any other way ?
thanks in advance.
Regards,
VikasMaybe this is too simple, but have you got an HTTP server on the UNIX machine? You could simply link the URL into you CRM application and display the contents directly from UNIX.
cheers Carsten -
How to list the uploaded files in jsp
hello every body .
I wanted to request to plese let me know the method as to how get the uploaded files on the server to a jsp page . i am able to upload the files but not able to get those files listed on the web page . please help me ...........i tried this also and it didn't wok instead my page got filled with these lines
The file named CSAJSP-Chapter12.pdf is successfully uploaded [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0 [Ljava.lang.String;@1ab11b0
. I am not able to make out any thing . plese suggest me some solution -
How to list printers on the client machine to print the documents in ADF
Hi,
I have a requirement to print multiple documents stored on the server. I am trying to find out how to list the printers or get a default printer on the client machine and print the documents using ADF.
Thanks
SukarnaI tried that solution. but I am not getting any printer list.
public void printDocument(ActionEvent actionEvent){
BindingContainer bindings =
BindingContext.getCurrent().getCurrentBindingsEntry();
PrintService[] service = PrintServiceLookup.lookupPrintServices(null, null);
if (service.length == 0){
JOptionPane.showMessageDialog(null, "No Printer Selected");
The printer Service is not returing any data.
Thanks
Sukarna
Edited by: 911653 on Oct 5, 2012 9:01 AM -
How to execute CGI Programs in Tomcat Server
Hi,
I am working on executing Perl Scrtipts(or CGI programs) in Tomcat Server.
I have downloaded ActivePerl 5.8.0 6.0.3 build.I have modified some .jar files in tomcat\server\lib.
I have changed conf\web.xml to access the CGIServlet.class that is in servlets-cgi.jar.
My example.cgi is
#!c:\Perl\bin\perl.exe
print
"Content-type: text/plain\n\n";
foreach $var (
sort keys %ENV) {
print
"$var=\"$ENV{$var}\"\n";
@values = split(
/&/,$ENV{'QUERY_STRING'});
foreach $i (@values) {
($varname, $mydata) = split(
/=/,$i);
print "$varname = $mydata\n";
and my test.html is
<HTML>
<HEAD>
<TITLE>Environment Variables using GET</TITLE>
</HEAD>
<BODY>
<FORM ACTION="cgi-bin/example.cgi" METHOD="POST">
Press submit for a list of environment variables. <BR>
First Name: <input type="text" name="fname" size=30><p>
Last Name: <input type="text" name="lname" size=30><p>
<input type="submit">
</FORM>
</BODY>
</HTML>
here I have changed url mapping in web.xml to cgi-bin.
The test.html produces two text fields first and last name on submit:
it accesses:http://localhost:8080/smalltownpapers/cgi-bin/example.cgi?fname=Tim&lname=Eden
this should print some environmental variables but it is producing an empty page.
Tomcat is not showing any errors or Tomcat is not at all listening.
Can any one help me to solve this and how to execute Perl scripts in Tomcat server
Thanks,
Regards
MurthySorry, I've never done this. I went to the Tomcat site and pulled down the CGI docs, which you might have seen:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html
No other help available from me. Sorry. -
How to list dependencies of stored procedure in a package in oracle
hi gurus,
can any body help me to solve the below issue?
how to list dependencies of stored procedure in a package in oracle?
advanced thanks...It sounds like you're going to have trouble because you're trying to track dependencies at a more fine-grained level than Oracle does (at least prior to 11g, which I know does finer-grained dependency tracking for columns, so there may be something that would help you there).
In Oracle, the entity is the package body. The procedure within the package does not have dependencies and does not depend on anything, it is part of the package body, which does have dependencies. You can see what tables are used by the package body via DBA_DEPENDENCIES. But if you're trying to track the dependencies for a particular procedure in a package, you'd either have to manually examine the code or you'd have to write your own PL/SQL parser.
Justin
Maybe you are looking for
-
Problem with Non Cumilative key figs at report level.
Hi Gurus, I got an issue with the below keyfigures when I tried to display them in the report Stock Overview. 0TOTALSTCK 0VALSTCKVAL 0QMSTOCK 0TRANSSTOCK 0BLOCKEDSTK 0CNSSTCKQTY These keyfigs are non-cumulative keyfigures. I wonder why these keyfigur
-
When i use IE, it's OK and i am able to use the hotmail.
-
Finding Renamed Photos!!
How can I rename a photo in iphoto, and have it show up as the new name in finder so that I don't have to sort through all these numeric jpegs to find the right one so I can attach photos to email, etc.... I can rename it in the info box while in iph
-
IM services not enabled
-
Printer compatible with mavericks????
Finally my old Ricoh MP 161....past to history because of Mavericks.... So I was thinking what kind of drivers/printer is compatible with Mavericks??? Any idea????