Brocade Network Advisor SMI Agent Developers Guide v12.3.0 User Manual

Page 18

Advertising
background image

2

Brocade Network Advisor SMI Agent Developer’s Guide

53-1003159-01

Admin Domains and Brocade Network Advisor SMI Agent

1

Admin Domains and Brocade Network Advisor SMI Agent

The Brocade Network Advisor SMI Agent does not support Admin Domains though they are
supported in Brocade Network Advisor. It is recommended to exclude fabrics containing Admin
Domains using the Resource Grouping option in the user dialog box that can be launched from the
Configuration Tool.

Connecting to the Brocade Network Advisor SMI Agent

This section describes how to connect to the Brocade Network Advisor SMI Agent when security is
enabled and when security is not enabled.

Connecting the Brocade Network Advisor SMI Agent
when security is enabled

Connect with the Brocade Network Advisor SMI Agent as shown in the following sample Java code.
The code samples use the Java Web Start (JWS) client library. Other client libraries might differ
slightly in syntax.

On Windows and Linux:

String strCIMOMIP = "https://localhost";

String strNameSpace = "root/brocade1";

String strUser = "BNA UserName";

String strPasswd = "BNA Password";

String nsStr = protocolType + "://" + hostname + ":" + portNum + "/" +

strNameSpace;

CIMNameSpace objCIMNameSpace = new CIMNameSpace(strCIMOMIP, strNameSpace);

UserPrincipal objUserPrincipal = new UserPrincipal(strUser);

PasswordCredential objPasswordCredential = new PasswordCredential(strPasswd);

CIMClient m_objClient = new CIMClient(objCIMNameSpace, objUserPrincipal,

objPasswordCredential);

CIMNameSpace objCIMNameSpace = new CIMNameSpace (nsStr);

NOTE

The existing mutual authentication certificate is retained while migrating to Network Advisor 12.3.0
from any previous versions. The user has to manually generate and import the mutual
authentication certificate using SMIA configuration tool, in case the default certificate is used.

Connecting the Brocade Network Advisor SMI Agent
when security is not enabled

You can connect to the SMI Agent using any UserPrincipal and PasswordCredential, as these are
not validated by the SMI Agent when security is not enabled.

For more information on authentication, refer to the authentication section in the Brocade Network
Advisor User Manual
.

Advertising