Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

145 lines (96 sloc) 5.81 KB

Shell Resource Standard

Version 1.0.0


The Shell Resource Standard is a project used to define a standard for generic Shells that integrate with CloudShell, shells that don't match other CloudShell standards.

Revision History

Version Date Notes
1.0.0 2016-07-24 First release of the Shell Resource Standard



The Shell version follows Semantic Versioning Guidelines (see details in In short, the version structure is Major.Minor.Patch, for example “1.0.2”. A Path version is promoted when making backward-compatibility bug fixes, a Minor version is promoted when adding functionality in a backwards-compatible manner and a Major version is promoted when making a backwards incompatible changes.

Data Model

Families & Models

  • Generic Resource
  • Port
  • Power Port
  • Family: Generic Resource, Model: DUT
    • Family: Port, Model: Resource Port
    • Family: Power Port, Model: Generic Power Port

Family Rules

Family Rules
Generic Resource Searchable, Locked By Default
Port Searchable, Connectable, Locked By Default
Power Port Searchable, Connectable, Locked By Default

Resource Name and Address

Family Model Resource Name Resource Address
Generic Resource [The shell Model] The IP address of the resource
Port Resource Port The name of the interface as appears in the device. Any “/” character is replaced with “-“, spaces trimmed.] [ID]
Power Port Generic Power Port PP[ContainerID][ID] PP[ContainerID][ID]

Note: The [ID] for each sub-resource is taken from the device itself (corresponds to the names defined in the device).



  • Attributes which aren’t relevant to a devices won’t be populated by the driver.
  • All attributes which aren't user-input are "read only"
  • The attribute rules are as follows - all attributes which are user input should have the rule "Configuration" enabled, all attributes which aren't user input should have the rules "Settings" and "Available For Abstract Resources" enabled.
  • It is possible to customize the attribute rules selection after importing the Shell to CloudShell.
  • Attributes shouldn’t be removed.
  • Custom attributes should be added only to the root level model.
  • All attributes are of type String unless mentioned otherwise
Generic Resource
Attribute Name Details User input?
User User with administrative privileges Yes
Password Attribute of type Password Yes
Enable Password Attribute of type Password, The Enable password is required by some CLI protocols such as Telnet Yes
Power Management Attribute of type Boolean. Possible values – True, False, Used by the power management orchestration, if enabled, to determine whether to automatically manage the device power status Yes
System Name A unique identifier for the device, if exists in the device terminal/os No
Vendor No
Location The device physical location identifier. For example: Lab1/Floor2/Row5/Slot4 No
Backup Location Used by the save/restore orchestration to determine where backups should be saved Yes
Model The device model. This information is typically used for abstract resource filtering. No
SNMP Read Community Yes
SNMP Write Community Yes
SNMP V3 User Yes
SNMP V3 Password Yes
SNMP V3 Private Key Yes
SNMP Version Possible values – v1, v2c, v3 Yes
Sessions Concurrency Limit Attributes of type Numeric. Default is 1 (no concurrency) Yes
Console Server IP Address Yes
Console User Yes
Console Port Attributes of type Numeric Yes
Console Password Attribute of type Password Yes
CLI Connection Type Attribute of type Lookup. Possible values – Auto, Console, SSH, Telnet, TCP Yes
Resource Port
Attribute Name Details User input?
MAC Address No
IPv4 Address No
IPv6 Address No
Port Speed The port speed (e.g 10Gb/s, 40Gb/s, 100Mb/s) No
Generic Power Port
Attribute Name Details User input?
Model No
Serial Number No
Version No
Port Description No


Below is a list of all the commands that every shell supports.

When creating a new shell according to the standard it is OK not to implement all commands and/or implement additional command, but a command with a functionality that fits one of the predefined list commands should be implemented according to the standard.

Command outputs: On failure an exception containing the error will be thrown and the command will be shown as failed. A failure is defined as any scenario in which the command didn’t complete its expected behavior, regardless if the issue originates from the command’s input, device or the command infrastructure itself. On success the command will just return as passed with no output. The “Autoload” command has a special output on success that CloudShell reads when building the resource hierarchy. The “Save” command will return an output on success with the file name (exact syntax below).


Queries the devices and loads the structure and attribute values into CloudShell.

  • SNMP Based

Save & Restore in sandbox orchestration

Each shell must implement the save and restore commands and is responsible on saving and restoring its own state. The standard specifies the interface and functionality that shells expose to the sandbox orchestration. These two commands are hidden from the end user, their interface uses .json protocol and they should only be used by the sandbox orchestration via API.

orcestration_save (mode="shallow", custom_params = null)
orcestration_restore (saved_details)

**For more details about the save & restore implementation: See the save & restore standard. **

You can’t perform that action at this time.