Hi , i have a requirement where i want Documentum servers Ip address , i scaned a documentation of DfClient and DfClientX , but i have not found any useful
method for getting servers IP address.
Regards
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
IDfTypedObject obj=docbaseMap.getServerMap(0);System.out.println(obj.getString("r_host_name"));System.out.println(obj.getString("i_host_addr"));
Get r_host_name from dm_server_config
Using java.net:
java.net.InetAddress inetAdd = java.net.InetAddress.getByName(hostname);
through this i am getting IP address , but i want to know can we get r_host_name from server_config without establishing the session.if we can then how to get it
You can't get r_host_name without a session. Your best bet in case you don't want to establish a session could be using IDfGetDocbasemap:
IDfClient client = DfClient.getLocalClient();IDfDocbaseMap docbaseMap = client.getDocbaseMap();
There should be a method that gives you at least the hostname.
There is method in IDfDocbaseMap but it is Deprecated
String getHostName()
String
getHostName()
Deprecated. This internal attribute is not meaningful here,
Also i can get hostname from dfc.propperties file , but is there any API to get the location of DFC.properties