Google Groups không còn hỗ trợ đăng ký sử dụng hoặc đăng nội dung mới trên Usenet. Bạn vẫn có thể xem nội dung cũ.

How to print http ports with jacl(wsadmin) in was 6.X?

244 lượt xem
Chuyển tới thư đầu tiên chưa đọc

thomas...@hotmail.com

chưa đọc,
11:00:47 15 thg 2, 200715/2/07
đến
Hello Everybody,

I am currently developing a general jacl script for printing useful information about every application running in a Websphere installation. The information consists of application name, virtual host, server name etc... So far I havent managed to figure out how to display the
http ports. In WAS 5 printing the ports was easy:

>set server [$AdminConfig getid /Server:GetServicesSrv/]
>$AdminConfig list EndPoint $server

but it won`t work in Was 6.X. Could somebody give me a clue about how to do it?
I have tried to navigate across the element hierachy with the command

>$AdminConfig attributes XXX

beginning with

$AdminConfig attributes Server

in order to see what elements XXX has related to it(the first element to scan being 'Server' is supposed to be an obvious choice since the http ports are configured on server level).

I would appreciate any help, also hints about how to make more efficient searches with AdminConfig are welocme...

Regards,
Tom

thomas...@hotmail.com

chưa đọc,
11:51:37 15 thg 2, 200715/2/07
đến
I just figured out that by executing the commands

>set server [$AdminConfig getid /Server:server1/]
>$AdminConfig showall $server

I can get most of the information, for example the bootstrap port, the soap connector port, the CSIV2_XXX ports and the ORB port but Im still missing the http and https ports... any hints? On which level/in which object are they configured?


Sven Vermeulen

chưa đọc,
05:58:08 16 thg 2, 200716/2/07
đến

thomas...@hotmail.com schreef:

They are probably identified by the WC_defaulthost and
WC_defaulthost_secure endpoints.

Wkr,
Sven Vermeulen

thomas...@hotmail.com

chưa đọc,
16:40:26 19 thg 2, 200719/2/07
đến
Hello,

Almost finished the scripting assignment, I´ll send everything programmed during the two last days as a file attachment in the case somebody finds the information useful. Note the procedure prueba, which is the main test method.

I arranged the information displayed by separating the information with tabs and carriage returns. This makes is easier to copy and paste the information into an Excel file.

Regards,
Tom

thomas...@hotmail.com

chưa đọc,
16:41:55 19 thg 2, 200719/2/07
đến
..and now the attached file:)

Mark Lewis

chưa đọc,
08:46:22 20 thg 2, 200720/2/07
đến
thomas...@hotmail.com wrote:
> ..and now the attached file:)

Hi Tom,

Your attachment didn't make it through to my newsreader. It sounds like
you've solved your problem OK but perhaps this is useful for somebody
else anyway... Here is a bit of jacl that should interrogate the
endpoints for each server on WAS 6.x:

set nodes [$AdminConfig list Node]
foreach node $nodes {
set nodeName [$AdminConfig showAttribute $node "name"]

set serverEntries [$AdminConfig list ServerEntry $node]
foreach serverEntry $serverEntries {
set serverName [$AdminConfig showAttribute $serverEntry "serverName"]
puts ""
puts "Node:$nodeName/Server:$serverName"

set namedEndPoints [$AdminConfig list NamedEndPoint $serverEntry]
foreach namedEndPoint $namedEndPoints {
set endPointName [$AdminConfig showAttribute $namedEndPoint
"endPointName"]
set endPoint [$AdminConfig showAttribute $namedEndPoint "endPoint"]
set host [$AdminConfig showAttribute $endPoint "host"]
set port [$AdminConfig showAttribute $endPoint "port"]
puts "$endPointName: $host:$port"
}
}
}

0 tin nhắn mới