从 UNIX 的指令行中如何使服务器加以启用或失去功效

Kbase 文章编号:1529336
文章涉及的内容是:BusinessObjects Enterprise XI

遇到的问题

从 UNIX 的指令行中如何使服务器加以启用或失去功效。

解决方案

在通过 UNIX 指令行使服务器加以启用和失去功效时,请遵循如下步骤:
如要显示服务器是否被启用或失去功效,请在中运行:

./ccm.sh -display -cms vanrdsol03:6768

在启用服务器时:

./ccm.sh -enable <HOSTNAME>.<Server Name>.<Type of Server> -cms <HOSTNAME>:<PORT>

例如:

./ccm.sh -enable vanrdsol03.eventserver.eventserver -cms vanrdsol03:6768 

注意

为了找到主机名称,运行 "hostname" 指令
要想找到端口,请使用以下 grep CMSPORTNUMBER ccm.config 指令:

如要使服务器失去功效:

./ccm.sh -disable <HOSTNAME>.<Server Name>.<Type of Server> -cms <HOSTNAME>:<PORT>

例如:

./ccm.sh -disable vanrdsol03.eventserver.eventserver -cms vanrdsol03:6768

如要启用多个服务器:

./ccm.sh -enable all -cms <HOSTNAME>:<PORT>

如要使多个服务器失去功效:

./ccm.sh -disable all -cms <HOSTNAME>:<PORT>
 
注意

还需要明确用户名、密码和认证,否则它们会分别默认为“管理员"、空的密码和secEnterprise。

例如:
./ccm.sh -enable vanrdsol03.eventserver.eventserver -cms vanrdsol03:6768 -username jsheldon -password banana -authentication secEnterprise

注意

每次当执行 ccm.sh 脚本时,都会创建出日志。这些可从 /logging 目录中看到。

 
文件类型: Knowledge Base Article
产品主版本: BusinessObjects Enterprise XI

 

如何采用 Java SDK 为 BusinessObjects XI Release 2 中的Open Document 方法以及 URL 报表创建一个登录记号

Kbase 文章编号:951347
文章涉及的内容是:BusinessObjects Enterprise XI

遇到的问题

在使用 BusinessObjects Enterprise XI Release 2 中的 Open Document 方法和 URL 报表时,你可以利用一个登录记号通过 Enterprise 的资格认证。假如你没有为 Open Document URL 创建一个登录记号的话,你将被提示登录到 Enterprise 系统中。

如何采用 Java SDK 创建登录记号呢?

解决方案

如要创建一个登录记号,请采用此示例代码:

<%@page import="com.crystaldecisions.sdk.framework.*" %>

<%@page import="com.crystaldecisions.sdk.occa.infostore.*" %>

<%@page import="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr" %>

<%

//CMS logon information

String cms = "CMSServerName";//Enterprise CMS Server

String webServer = "WebAppServer";//Infoview Web Application Server

String userid = "Administrator";

String pwd = "";

String auth = "secEnterprise";

String reportName = "World Sales Report"; //Hard coded for this example

//Token specific information

String clientMachineName = "";

int validMinutes = 30;

int validNumOfLogons = 100;

//Log onto the CMS and create a logon token

ISessionMgr entSessionMgr = CrystalEnterprise.getSessionMgr();

IEnterpriseSession entSession = entSessionMgr.logon(userid, pwd, cms, "secEnterprise");

ILogonTokenMgr logonTokenMgr = entSession.getLogonTokenMgr();

String logonToken = logonTokenMgr.createLogonToken(clientMachineName, validMinutes, validNumOfLogons);

//Get the report id to redirect to

String infoStoreQuery = "select si_id from ci_infoobjects where si_kind='CrystalReport' and si_instance=0 and si_name='" + reportName + "'";

IInfoStore infoStore = (IInfoStore) entSession.getService("", "InfoStore");

IInfoObjects infoObjects = infoStore.query(infoStoreQuery);

if ( infoObjects.isEmpty() ) {

out.println("[" + reportName + "] not found.");

} else {

IInfoObject report = (IInfoObject) infoObjects.get(0);

String rptID = "" + report.getID();

//BOE XI R2 URL

String urlRedirection = "http://" + webAppServer + ":8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?iDocID="

+ rptID + "&sType=rpt&sIDType=InfoObjectID&token=" + logonToken;

response.sendRedirect(urlRedirection);

}

%>

更多信息
--------------------
请阅读 BusinessObjects Enterprise XI Open Document 白皮书,了解更多关于 URL 参数的信息:
http://support.businessobjects.com/communityCS/TechnicalPapers/boe_xi_opendocument.pdf
请阅读 BusinessObjects Enterprise XI Release 2 Open Document 白皮书,了解更多有关 URL 参数的信息:
http://support.businessobjects.com/communityCS/TechnicalPapers/be_xi_r2_opendocument.pdf
文件类型: Knowledge Base Article
产品主版本: BusinessObjects Enterprise XI
 
 
2007年12月刊
联系我们

北京:
北京市朝阳区建国门外大街甲12号
新华保险大厦7层701室
(100022)
电话:+8610 5865 7388

上海:
上海市南京西路1266号
恒隆广场23楼2302 - 2304室
(200040)
电话:+8621 6122 6088

广州:
广州市天河区天河路208号
粤海天河城大厦2405室
(510620)
电话:+8620 8510 2988

售后技术支持热线:800 990 8009

联系我们 | RSS 订阅 | 职业发展 | 我的资料 | 新闻稿 | 保密政策 | 使用条款
Copyright © 2007 Business Objects SA
All Rights Reserved