Get Model Number - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API

Get Model Number

Example: get motherboard model number
Request
curl -k -X GET -H 'password: admin123' https://localhost/api/2.0/sys/pcamap/modelNum.php
Reply
{"modelNum":"CS-E340W-G32-C-K9","success":"true","getAt":"2013-06-18 13:18:18"}
Get System Serial Number
Example: get system serial number
Request
curl -k -X GET -H 'password: admin123'
https://localhost/api/2.0/sys/pcamap/systemSerialNum.php
Reply
{"systemSerialNum":"123","success":"true","getAt":"2013-06-18 13:19:23"}
Get Model Revision Number
Example: get model revision number
Request
curl -k -X GET -H 'password: admin123'
https://localhost/api/2.0/sys/pcamap/modelRevisionNum.php
Reply
{"modelRevisionNum":"123","success":"true","getAt":"2013-06-18 13:20:00"}
Get Version ID
Example: get version id
Request
curl -k -X GET -H 'password: admin123' https://localhost/api/2.0/sys/pcamap/versionId.php
Reply
{"versionId":"111","success":"true","getAt":"2013-06-18 13:20:38"}
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
PCAMAP Information
4-65

Advertisement

Table of Contents
loading

Table of Contents