|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.capsd.SmbUtils
This class contains several static convience methods utilized by Capsd while doing data collection via jCIFS and the SMB (Server Message Block) protocol.
Constructor Summary | |
SmbUtils()
|
Method Summary | |
(package private) static java.lang.String |
getAuthenticationDomainName(jcifs.netbios.NbtAddress[] addresses,
java.lang.String cname)
This method attempts to determine the authentication domain for a remote host. |
(package private) static java.lang.String |
getOsLabel(java.lang.String nativeOS,
jcifs.netbios.NbtAddress[] addresses,
boolean isSamba,
boolean hasExchange)
Returns the operating system label to be associated with a node in 'node' table in the databse. |
(package private) static java.lang.String |
getSmbURL(SmbAuth smbAuth,
java.lang.String cname)
Convenience method which takes an SmbAuth object with userid and password information and the NetBIOS name for a remote server and builds the appropriate SMB url string which can be used to enumerate the server's shares. |
(package private) static boolean |
isNTServer(jcifs.netbios.NbtAddress[] addresses)
This method is responsible for taking an array of jCIFS NbtAddress objects associated with a particular node and determining if that node is an NT server versus an NT workstation based on the services it has registered. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WORKSTATION_SERVICE
public static final int MESSENGER_SERVICE_A
public static final int MASTER_BROWSER_G
public static final int MESSENGER_SERVICE_B
public static final int RAS_SERVER_SERVICE
public static final int NETDDE_SERVICE
public static final int FILE_SERVER_SERVICE
public static final int RAS_CLIENT_SERVICE
public static final int MS_EXCHANGE_INTERCHANGE
public static final int MS_EXCHANGE_STORE
public static final int MS_EXCHANGE_DIRECTORY
public static final int MODEM_SHARING_SERVER_SERVICE
public static final int MODEM_SHARING_CLIENT_SERVICE
public static final int SMS_CLIENT_REMOTE_CONTROL
public static final int SMS_ADMIN_REMOTE_CONTROL_TOOL
public static final int SMS_CLIENTS_REMOTE_CHAT
public static final int SMS_CLIENTS_REMOTE_TRANSFER
public static final int DEC_PATHWORKS_TCPIP_SERVICE_A
public static final int DEC_PATHWORKS_TCPIP_SERVICE_B
public static final int MS_EXCHANGE_MTA
public static final int MS_EXCHANGE_IMC
public static final int NETWORK_MONITOR_AGENT
public static final int NETWORK_MONITOR_APPLICATION
public static final int MESSENGER_SERVICE
public static final int DOMAIN_NAME
public static final int DOMAIN_MASTER_BROWSER
public static final int DOMAIN_CONTROLLERS
public static final int MASTER_BROWSER_U
public static final int BROWSER_SERVICE_ELECTIONS
public static final int INTERNET_INFORMATION_SERVER_G
public static final int INTERNET_INFORMATION_SERVER_U
public static final int LOTUS_NOTES_SERVER_SERVICE
public static final int LOTUS_NOTES_IRIS_MULTICAST
public static final int LOTUS_NOTES_IRIS_NAME_SERVER
public static final int DCA_IRMALAN_GATEWAY_SERVER_SERVICE
Constructor Detail |
public SmbUtils()
Method Detail |
static java.lang.String getAuthenticationDomainName(jcifs.netbios.NbtAddress[] addresses, java.lang.String cname)
addresses
- List of NbtAddress objects associated with the remote host.cname
- NetBIOS name of the remote host.
static java.lang.String getOsLabel(java.lang.String nativeOS, jcifs.netbios.NbtAddress[] addresses, boolean isSamba, boolean hasExchange)
MSExchangePlugin
class.
nativeOS
- OS string returned by jCIFS following SMB session
establishment with the remote host.addresses
- array of NbtAddress objects associated with the remote host
being tested.isSamba
- true if it has been derived that the remote system
is running Samba.hasExchange
- true if the service supports microsoft exhange.
static boolean isNTServer(jcifs.netbios.NbtAddress[] addresses)
addresses
- Array of NbtAddress objects associated with the remote host
being tested.
static java.lang.String getSmbURL(SmbAuth smbAuth, java.lang.String cname)
smbAuth
- SMB Authentication object w/ userid/password infocname
- NetBIOS address of remote server
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |