Configuring Communication Services

Configuring XML API

This example configures SSH for the CIMC:

Server# scope

ssh

 

Server /ssh

#

set enabled yes

Server /ssh

*# set

ssh-port 22

Server

/ssh

*#

set

timeout 600

Server

/ssh

*#

commit

Server /ssh # show

Active Sessions Enabled

SSH Port

Timeout

----------

--------

--------------- -------

22

600

1

yes

Server /ssh #

Configuring XML API

XML API for CIMC

The Cisco CIMC XML application programming interface (API) is a programmatic interface to CIMC for a C-Series Rack-Mount Server. The API accepts XML documents through HTTP or HTTPS.

For detailed information about the XML API, see Cisco UCS Rack-Mount Servers CIMC XML API

Programmers Guide.

Enabling XML API

Before You Begin

You must log in as a user with admin privileges to perform this task.

Procedure

 

Command or Action

Purpose

Step 1

Server# scope xmlapi

Enters XML API command mode.

Step 2

Server /xmlapi # set enabled {yes no}

Enables or disables XML API control of CIMC.

Step 3

Server /xmlapi # commit

Commits the transaction to the system

 

 

configuration.

This example enables XML API control of CIMC and commits the transaction:

Server# scope xmlapi

Server /xmlapi # set enabled yes

Server /xmlapi *# commit

Server /xmlapi # show detail

XMLAPI Settings:

Enabled: yes

Active Sessions: 0

Max Sessions: 4

Server /xmlapi #

Cisco UCS C-Series Servers Integrated Management Controller CLI Configuration Guide, Release 1.5

OL-28893-01

135

Page 151
Image 151
Cisco Systems 57712, UCSCPCIEBTG manual Configuring XML API, XML API for Cimc, Enabling XML API, Server# scope xmlapi