Script Examples; Curl Examples - Cisco C880 M5 Configuration Manual

Hide thumbs Also See for C880 M5:
Table of Contents

Advertisement

SCCI
OpCode
0x0251
0x0252
5.4.4

Script Examples

5.4.4.1

cURL examples

The open source command-line tool cURL allows you to transfer data specified with
URL syntax. You can download the latest version of the source code as well as
precompiled versions for different operating systems from http://curl.haxx.se/.
The following are some examples of how to use cURL to send a configuration file to
the iRMC.
For details on the cURL command line options please refer to the cURL
documentation.
HTTP Access with Basic Authentication (default) and the default iRMC S5
l
admin account:
curl --basic -u admin:admin --data @Config.pre
http://<iRMC IP address>/config
HTTP Access with Digest Authentication and the default iRMC admin account:
l
curl --digest -u admin:admin --data @Config.pre
http://<iRMC IP address>/config
HTTPS Access with no certificate check (-k) and Digest authentication and the
l
default iRMC admin account:
curl --digest -k -u admin:admin --data @Config.pre
https://<iRMC IP address>/config
HTTPS Access with a LDAP user account.
l
Please note that for LDAP users you have to specify Basic authentication:
curl --basic -k -u LDAPuser:LDAPpassword --data @Config.pre
https://<iRMC IP address>/config
Cisco C880 M5 Configuration Guide
SCCI Command String
ConnectRemoteCdImage Connect or disconnect a CD/DVD .iso image
ConnectRemoteHdImage Connect or disconnect a hard disk image on a
Meaning
on a remote image mount (NFS or CIFS
h
)
remote image mount (NFS or CIFS share).
5.4 SCCI
72

Advertisement

Table of Contents
loading

Table of Contents