Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
Unified Computing UCS Manager Developer Center
Overview
UCS Manager XML Schema
UCS Automation Tool (goUCS)
Server and Host Management API
UCS Standalone C-Series Servers
Cisco Standalone C-Series CIMC XML API
goUCS Automation Tool
Cisco Standalone C-Series HUU Utilities
Documentation
Community
Testing
UCS Management Ecosystem
Management with HP Software
HP Operations Manager (HPOM)
HP Operations Orchestration (HPOO)
Management with Microsoft Software
Microsoft System Center
Cisco UCS PowerTool for UCSM
SDK
System Management Resources
Altiris
UCS Management with VMware Software
OpenStack
UCS Labs
Labs Wiki
VM-FEX
Overview
Getting Started
Resources
Flexpod
Overview
Getting Started
Resources
Everything
This Site
Blogs
Cisco UCS for RackTables
Jeffrey Silberman
25 Oct 2012
Cisco UCS PowerTool Examples
Eric Williams
20 Jul 2012
ANNOUNCEMENT: goUCS version 2.0 Released
Eric Williams
08 Mar 2012
Getting to Know your UCS Fabric Interconnect Neighbors
John McDonough
10 Nov 2011
SCOM MP version 2.0 for Cisco UCS is now available
Chakri Avala
01 Sep 2011
Showing 1 - 5 of 16 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
3
4
of 4
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to Technical Discussions
Odd truncation in UCS API?
Threads [
Previous
|
Next
]
Phillip Pollard
Posts:
2
Join Date:
11/27/12
Recent Posts
Odd truncation in UCS API?
Answer
11/28/12 12:05 AM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I am using the perl module Cisco::UCS to communicate with a UCS blade center version 2.0(2q).
I was running into trouble, and when I finally got down to debugging it I found that all the API responses I were receiving from the UCS were being truncated at 65536 characters/bytes.
It is a usual HTTPS transaction. The query returns as a valid HTTP response (200) and all other interactions are the same. There just seems to be a hard size limit on the XML response.
I've verified there are no network firewalls or such between me and the UCS.
When I run the same script on the current UCS emulator (version 2.0(3c)), I do not have this issue.
Has anyone seen this or do they have suggestions?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Eric Williams
Posts:
42
Join Date:
3/31/10
Recent Posts
RE: Odd truncation in UCS API?
Answer
12/5/12 4:48 AM as a reply to Phillip Pollard.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Looks to be a bug with the Perl module you are using. I have had responses of much larger XML responses than that doing direct calls w/ tools like curl. Perform a configResolveClass w/ inHierarchical set to true on class "topSystem" on a UCS domain, and you will get the entire XML database returned. It can be a few MB of data, and I have never had issues getting truncation before.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Phillip Pollard
Posts:
2
Join Date:
11/27/12
Recent Posts
RE: Odd truncation in UCS API?
Answer
12/5/12 6:32 PM as a reply to Eric Williams.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I suspected the same and dug all the way back to using LWP directly. I'd be really surprised with that being distrbuted with a truncation error, but you never know.
Do you have a sample of that curl to "grab all" that you talk about? That'll help me figure out of this bug is the module or not.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Eric Williams
Posts:
42
Join Date:
3/31/10
Recent Posts
RE: Odd truncation in UCS API?
Answer
12/5/12 6:59 PM as a reply to Phillip Pollard.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Here you go. First you need to login and get yoru cookie via the API with the curl commands below (which assumes HTTP communication):
$ cat aaa.sh
#!/bin/bash
curl -H "Content-Type: text/xml" -N -s -d "<aaaLogin inName="admin" inPassword="abc123" />" http://1.2.3.4/nuova
$ ./aaa.sh
<aaaLogin cookie="" response="yes" outCookie="1354316387/74eed11a-35d2-48a1-b569-f75c25ed1482" outRefreshPeriod="600" outPriv="admin,read-only" outDomains="org-root" outChannel="noencssl" outEvtChannel="noencssl" outSessionId="" outVersion="2.1(1a)"> </aaaLogin>
Then take the cookie and use it with the following script as illustrated below:
$ cat topsys.sh
#!/bin/bash
COOKIE=$1
curl -H "Content-Type: text/xml" -N -s -d '<configResolveClass cookie="$COOKIE" classId="topSystem" inHierarchical="true" />' http://1.2.3.4/nuova
$ ./topsys.sh "1354316387/74eed11a-35d2-48a1-b569-f75c25ed1482" > topsys.out
As you can see the file I was returned was 1.9 MB:
$ ls -alh topsys.out
-rw-r--r-- 1 ericwill staff 1.9M Dec 5 12:56 topsys.out
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available