HPE StoreVirtual Storage / LeftHand
cancel
Showing results for 
Search instead for 
Did you mean: 

CLIQ getPerformanceStats ;XML attribute "encording" is always UTF-8, but contents is Shift-JIS.

菅野健一
Occasional Visitor

CLIQ getPerformanceStats ;XML attribute "encording" is always UTF-8, but contents is Shift-JIS.

Hello,all

 

I have get LEFTHANDs performance data by ;

 

>cliq getperformancestats login=192.168.0.10 keyfile=secret.key output=xml

 

All counter is collect, except one thing.

Althogh XML encoding is UTF-8, but contents is Shift-JIS.

 

Is my command option or parameter wrong?

 

XML is following;

----

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gauche version="1.0">

<response description="操作は成功しました。" name="CliqSuccess" processingTime="60996" result="0">
<counter name="NsmCpuBusy" units="Percent" value="2.127663"/>
<counter name="NsmCpuIdle" units="Percent" value="97.872337"/>

....

----

 

I cannot open this XML by IE wth error "Invalid Code"

 

 

Regards.

3 REPLIES
Ravi_K
HPE Pro

Re: CLIQ getPerformanceStats ;XML attribute "encording" is always UTF-8, but contents is S

Hi

 

Can you try using Username and password . I have pasted the syntax and description below

 

This command returns performance monitoring statistics.

Availability

: Windows, SAN/iQ

Version

: 8.0

Request Syntax

cliq getPerformanceStats login= userName= passWord=

login

Required The IP address or DNS-resolvable names of one or more storage systems

userName

Required The authentication user name for the storage system

passWord

Required The password for the storage system

keyFile

Required The encrypted key file (this is specified instead of the username and password

parameters)

interval

Optional The interval in between counter sampling in milliseconds. Defaults to 6000.Note:

Because the internal sampling frequency is 6 seconds, it's not recommended to set this

value less than 6000

Example

cliq getPerformanceStats login=10.1.2.3 userName=admin

passWord=secret

cliq getPerformanceStats

 

Performance can also be captured from CMC , i have attahced a small performance guide for your understanding.

 

Regards

Ravi

 

菅野健一
Occasional Visitor

Re: CLIQ getPerformanceStats ;XML attribute "encording" is always UTF-8, but contents is S

Hi,Ravi_K

 

I can get performance counter value correctly, but only "encording" is wrong.

XML Contents are encorded by Shift-JIS , so XML attribute shuld be "encording=Shift-JIS", not "UTF-8".

Is there a option or parameter to force fix encording?

 

I tried "chcp 437" for english code page.

Then content response are changed to english.

But volume names contain "Shift-JIS" charactors, so it is insufficient.

 

Thank you.

Ravi_K
HPE Pro

Re: CLIQ getPerformanceStats ;XML attribute "encording" is always UTF-8, but contents is S

Hi

 

Sorry, even I didn't find much information on it.

 

I have attached a cliq guide for your reference, not sure if you referred already

 

Regards

Ravi