Absent Member.. warrenmyers Absent Member..
Absent Member..
353 views

Create Device Group in NA 10.x with OO?

Jump to solution

In going through the HPE Solutions CP, I don't see anything related to Device Groups for NA.

How would you look for, update, or create a Device Group in NA with OO?

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Established Member.. mherculea
Established Member..

Re: Create Device Group in NA 10.x with OO?

Jump to solution

Hi,

 

Yes. It is possible.

Export locally the  NA wsdl file api.wsdl.axis2 (or use the direct NA URL that exposes the wsdl).  

Then using the OO ws-wizard create your operations based on the file. You'll need the following: login, add device group and logut.

Create a 3 step flow. Carry the sessionID login result as imput to the 'add device group' and 'logout' when flow is sucessfull or on failure.

 

The imputs to the add device group as  HP Network Automation Software CLI/API Command Reference

add device group

Add a device group to the system.

Synopsis

add device group -name <Name> [-type <Type>] [-comment <Comment>] [-shared <Shared>] [-criteria <Criteria>] [-searchgroups <Searchgroups>] [-limitsearchgroups <Limitsearchgroups>] [-partitions <Partitions>]

Description

-name - The name of the device group to be added. To add a group to a specific site, prefix the group name with "SITENAME:".
-type - The type of group to be added. The valid values for this option are "static" and "dynamic". The default value is "static".
-comment - Additional information about the device group.
-shared - 1 if the group is shared, 0 if it is not.
-criteria - The search criteria expressed in XML format. This parameter is ignored if the -type parameter is "static".For information on the syntax of the XML, see the "Defining the Device Groups Using XML" chapter of the Administration Guide.
-searchgroups - The list of groups that must be used along with the search criteria. Multiple values must be separated by a comma. This parameter is ignored if the -type parameter is "static".
-limitsearchgroups - The filter condition to be used in conjunction with the -searchgroups parameter. The valid values are "any", "none", and "all". This parameter is ignored if the -type parameter is "static".
-partitions - The list of partitions to be considered to apply the filter. This parameter is ignored if the -type parameter is "static".
Return Type

STATUS

 Examples

add device group -name "border routers" -type dynamic -comment "The group containing all border routers."
add device group -name "Site 2:Edge Routers" -type static
 

 

Cheers,

 

Marius Herculea
HP SW Technical Consultant

Cloud and Automation Professional Services

0 Likes
2 Replies
Established Member.. mherculea
Established Member..

Re: Create Device Group in NA 10.x with OO?

Jump to solution

Hi,

 

Yes. It is possible.

Export locally the  NA wsdl file api.wsdl.axis2 (or use the direct NA URL that exposes the wsdl).  

Then using the OO ws-wizard create your operations based on the file. You'll need the following: login, add device group and logut.

Create a 3 step flow. Carry the sessionID login result as imput to the 'add device group' and 'logout' when flow is sucessfull or on failure.

 

The imputs to the add device group as  HP Network Automation Software CLI/API Command Reference

add device group

Add a device group to the system.

Synopsis

add device group -name <Name> [-type <Type>] [-comment <Comment>] [-shared <Shared>] [-criteria <Criteria>] [-searchgroups <Searchgroups>] [-limitsearchgroups <Limitsearchgroups>] [-partitions <Partitions>]

Description

-name - The name of the device group to be added. To add a group to a specific site, prefix the group name with "SITENAME:".
-type - The type of group to be added. The valid values for this option are "static" and "dynamic". The default value is "static".
-comment - Additional information about the device group.
-shared - 1 if the group is shared, 0 if it is not.
-criteria - The search criteria expressed in XML format. This parameter is ignored if the -type parameter is "static".For information on the syntax of the XML, see the "Defining the Device Groups Using XML" chapter of the Administration Guide.
-searchgroups - The list of groups that must be used along with the search criteria. Multiple values must be separated by a comma. This parameter is ignored if the -type parameter is "static".
-limitsearchgroups - The filter condition to be used in conjunction with the -searchgroups parameter. The valid values are "any", "none", and "all". This parameter is ignored if the -type parameter is "static".
-partitions - The list of partitions to be considered to apply the filter. This parameter is ignored if the -type parameter is "static".
Return Type

STATUS

 Examples

add device group -name "border routers" -type dynamic -comment "The group containing all border routers."
add device group -name "Site 2:Edge Routers" -type static
 

 

Cheers,

 

Marius Herculea
HP SW Technical Consultant

Cloud and Automation Professional Services

0 Likes
Absent Member.. warrenmyers Absent Member..
Absent Member..

Re: Create Device Group in NA 10.x with OO?

Jump to solution

Didn't figure I'd need to hit a WSDL, but that'll work

Any way of getting this RFE'd into an upcoming CP for OO so that extra WSDL importing isn't needed?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.