wsadmin: jacl: AdminApp 列表<范围 ?>WebSphere 5.x

发布于 2024-12-16 11:57:43 字数 244 浏览 3 评论 0原文

我试图列出安装在特定服务器上的应用程序,下面的命令在 WAS 6.x 和 7 上运行良好,但是我无法在 WAS 5.x 上执行相同的操作

wsadmin> $AdminApp list /WebSphere:cell=cell01,node=node01,server=server1/

。此外,$AdminApp 帮助列表不显示可选范围参数。

您能指教一下吗?

谢谢

I am trying to list applications installed on particular server below command works fine on WAS 6.x and 7 however I cannot make the same on WAS 5.x

wsadmin> $AdminApp list /WebSphere:cell=cell01,node=node01,server=server1/

Also, $AdminApp help list does not show optional scope parameter.

Could you please advise ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

皇甫轩 2024-12-23 11:57:43

我现在无法访问 v5 进行测试,但类似这样的操作可能会起作用:

proc listAppsByTarget {target} {
  global AdminApp
  set result []

  regsub -all / $target "" target
  foreach app [$AdminApp list] {
    foreach line [split [$AdminApp view $app -MapModulesToServers] "\r\n"] {
      if [regexp "^Server:  ${target}($|,)" $line] {
        lappend result $app
        break
      }
    }
  }

  return $result
}

这将打印具有针对指定服务器的模块的任何应用程序。像这样使用:

wsadmin>listAppsByServerTarget /WebSphere:cell=cell,node=node,server=server1/
DefaultApplication

I don't have access to v5 right now to test, but something like this might work:

proc listAppsByTarget {target} {
  global AdminApp
  set result []

  regsub -all / $target "" target
  foreach app [$AdminApp list] {
    foreach line [split [$AdminApp view $app -MapModulesToServers] "\r\n"] {
      if [regexp "^Server:  ${target}($|,)" $line] {
        lappend result $app
        break
      }
    }
  }

  return $result
}

This will print any application that has a module targetted to the specified server. Used like this:

wsadmin>listAppsByServerTarget /WebSphere:cell=cell,node=node,server=server1/
DefaultApplication
勿忘初心 2024-12-23 11:57:43

我找到了方法,但是它不是相同的输出,需要对其进行解析才能获取详细信息。

wsadmin > $AdminControl queryName type=Application,node=node01,process=server1

如果有其他方法请告诉我。

I found the way, however it's not the same output, it needs to be parsed to get the details.

wsadmin > $AdminControl queryName type=Application,node=node01,process=server1

In case there is another way please let me know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文