HPE Network Automation Software (NA) CLI/API Command Reference

Software Version: 10.20

Document Release Date: July 2016
Software Release Date: July 2016


New Commands in NA 10.20 Revised Commands in NA 10.20
  • mod caseinsensitive
  • show caseinsensitive
  • None

    Command comparison is relative to NA 10.11.

    Contents

    NOTE: Return type of STATUS means that the command returns no Text or ResultSet. Use getReturnStatus() to determine the command results.

    NOTE: The Perl API does not exactly match the NA command-line interface documented here. For information about the differences, see “Perl Documentation” in the NA API User Guide.


    acquire resource id

    Acquire a resource identity from a resource identity pool.

    Synopsis

    acquire resource id [-poolid <Resource identity pool ID>] [-name <Name>] [-id <ID>]

    Description

    Acquire a resource identity from a resource identity pool. If resource identity ID or name is not provided, the next available resource identity in a pool identified by a pool ID is acquired. Resource identity can be identified either by ID or combination of name and resource identity pool ID. If resource identity ID is specified, name and resource pool ID are ignored.

    Return Type

    VO:ResourceIdentityVO with columns:

    Examples

    Contents


    activate device

    Mark a device as activated.

    Synopsis

    activate device [-ip <IP address>] [-host <Hostname>] [-fqdn <Fully Qualified Domain Name>] [-deviceid <Device ID>]

    Description

    Return Type

    STATUS

    Examples

    Contents


    add advanced diagnostic

    Add a new advanced diagnostic.

    Synopsis

    add advanced diagnostic -name <Name> [-description <Description>] [-family <Device Family>] -language <Script Language> [-parameters <Parameters>] -script <Script Text> [-sitename <Site name>]

    Description

    Return Type

    STATUS

    Examples

    Contents


    add advanced script

    Add a new advanced script.

    Synopsis

    add advanced script -name <Name> [-description <Description>] [-scripttype <Script Type>] [-family <Device Family>] -language <Script Language> [-parameters <Parameters>] -script <Script Text> [-sitename <Site name>]

    Description

    Return Type

    STATUS

    Examples

    Contents


    add authentication

    Add device password information.

    Synopsis

    add authentication -loc <Location> [-ip <IP address>] [-host <Hostname>] [-fqdn <Fully Qualified Domain Name>] [-deviceid <Device ID>] [-snmpro <Read only community string(s)>] [-snmprw <Read write community string(s)>] [-snmpv3user <SNMPv3 Username>] [-snmpv3authpw <SNMPv3 Authentication Password>] [-snmpv3encryptpw <SNMPv3 Encryption Password>] [-user <Username>] [-passwd <Password>] [-enablepasswd <Enable password>] [-connectionmethods <Connection methods>] [-accessvariables <Access variables>] [-start <Task start date>] [-appendsnmpro] [-appendsnmprw] [-sync] [-group <Group name>] [-site <SiteName>] [-rule <Rule name>] [-rulehostname <Rule hostname>] [-ruledevicegroup <Rule device group>] [-iprangestart <Rule ip start range>] [-iprangeend <Rule ip end range>] [-taskname <Task Name>]

    Description

    This command can modify passwords on a specific device or device group, or merely update what the system knows of a device's or network's password information. The -ip option provides information specific to the device. Otherwise, the command adds a network-wide password rule to the system. When using this command to modify passwords on a device, the modification operation is actually a scheduled task.

    Return Type

    String

    Examples

    Contents


    add command script

    Add a new command script.

    Synopsis

    add command script -name <Name> [-description <Description>] [-scripttype <Script Type>] -mode <Mode> [-driver <Driver List>] -script <Script Text> [-sitename <Site name>]

    Description

    Return Type

    STATUS

    Examples

    Contents


    add device

    Add a device to the system.

    Synopsis

    add device -ip <IP address> [-hostname <Host name>] [-comment <Comment>] [-description <Device name>] [-model <Device model>] [-vendor <Device vendor>] [-domain <Domain name>] [-serial <Serial number>] [-asset <Asset tag>] [-location <Location>] [-status <Status>] [-nopoll <Do not poll>] [-consoleip <Console IP address, if using console server>] [-consoleport <Console Port>] [-tftpserverip <TFTP server IP address, if using NAT>] [-natip <NAT IP address>] [-useconsoleserver <true or false>] [-accessmethods <Comma-separated list of access methods>] [-hierarchylayer <Hierarchy layer>] [-origin <Device Origin>] [-forcesave <true or false>]

    Description

    Return Type

    Integer

    Examples

    Contents


    add device context

    Add Device Context

    Synopsis

    add device context -deviceid <Device ID> -contextvariables <Context Variables> [-taskname <Task name>]

    Description

    For drivers that support it, add a virtual context to a device

    Return Type

    VO:ScheduleTaskVO with columns:

    Examples

    Contents


    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

    Return Type

    STATUS

    Examples

    Contents


    add device relationship

    Add a new Device relationship between two devices.

    Synopsis

    add device relationship -origindeviceid <Originating Device ID> -destdeviceid <Destination Device ID> -relationshiptypeid <Relationship Type ID>

    Description

    Adds a new device relationship between the two given devices.

    Return Type

    VO:DeviceRelationshipVO with columns:

    Examples

    Contents


    add device template

    Add a new device template.

    Synopsis

    add device template -hostname <Device name> [-driver <Driver name>] [-comment <Comment>] [-description <Description>] [-model <Device model>] [-vendor <Device vendor>] [-location <Location>] [-customname <Custom data column name>] [-customvalue <Custom data value>] [-customnames <Custom data column names>] [-customvalues <Custom data values>] [-accessmethods <Comma-separated list of access methods>] [-hierarchylayer <Hierarchy layer>] [-sitename <Site Name>]

    Description

    Return Type

    STATUS

    Examples

    Contents


    add device to group

    Add a device to a device group.

    Synopsis

    add device to group [-ip <IP address>] [-host <Hostname>] [-fqdn <Fully Qualified Domain Name>] [-deviceid <Device ID>] -group <Device group>

    Description

    Return Type

    STATUS

    Examples

    Contents


    add diagnostic

    Add a new custom diagnostic script.

    Synopsis

    add diagnostic -name <Name> [-description <Description>] -mode <Mode> [-driver <Driver List>] -script <Script Text> [-sitename <Site name>]

    Description

    Return Type

    STATUS

    Examples

    Contents


    add event

    Add an event.

    Synopsis

    add event -message <Event> [-ip <IP address>] [-host <Hostname>] [-fqdn <Fully Qualified Domain Name>]

    Description

    An email message (containing the event) will be the result of an added events if the system is configured to send email for added events.

    Return Type

    STATUS

    Examples

    Contents


    add event rule

    Add an event rule. However, with the E Network Automation Software Premium edition license, you cannot add rules for the occurrence of the following events: