[c-nsp] WSMA .odm / spec files
Phil Mayers
p.mayers at imperial.ac.uk
Wed Oct 19 12:17:26 EDT 2011
All,
I'm playing with ODM (IOS exec/config over SOAP) in 15.0SY on our Sup2T.
The docs say:
"""
To use the global spec file command in the Cisco IOS file system and
still get XML-PI format results use the attribute format=""
"""
...but if I send a WSMA execCLI request with:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" >
<SOAP:Body>
<request xmlns="urn:cisco:wsma-exec" correlator="14">
<execCLI format="">
<cmd>sh int status</cmd>
</execCLI>
</request>
</SOAP:Body>
</SOAP:Envelope>
...debugging logs:
000243: Oct 19 17:13:47.107 BST: wsma_infra_WSMA: No WSSE. Priv granted
= 15, View num = 0
000244: Oct 19 17:13:47.107 BST: WSMA-exec: sh int status | format
000245: Oct 19 17:13:47.111 BST: wsma_infra_WSMA: Sending Response...
...and the client gets the error:
%unable to find the specified cli, spec file: built-in, cli
Where do these mysterious default "spec" files live, or where can I get
them from? Or how do I write one?
If I omit the format="" I get plain old IOS-style output, which is OK I
guess - but getting it as XML/tabular would be nice.
Cheers,
Phil
More information about the cisco-nsp
mailing list