各位iOS玩家,iOS总k1有没有检测出模拟器k1

WSMA Configuration Guide, Cisco IOS Release 15.1M - Web Services Management Agent [Support] - Cisco
WSMA Configuration Guide, Cisco IOS Release 15.1M
Book Contents
Book Contents
Available Languages
Chapter: Web Services Management Agent
Chapter Contents
Configuring Web Services Management Agent
First Published: February 27, 2009
Last Updated: March 22, 2010
The Web Services Management Agent (WSMA) defines a mechanism through which a network device can be managed, configuration data information can be retrieved, and new configuration data can be uploaded and manipulated. WSMA uses Extensible Markup Language (XML)-based data encoding, that is transported by the Simple Object Access Protocol (SOAP), for the configuration data and protocol messages.
You can use WSMA over Secure Shell Version 2 (SSHv2), HTTP, HTTPS, or Transport Layer Security (TLS) to access the entire Cisco&command-line interface (CLI). Multiple WSMA clients can connect to the WSMA server running on Cisco IOS software.
You can also use WSMA over SSHv2, HTTP, HTTPS, or TLS to initiate secure connections from Cisco IOS software to applications over trusted and un-trusted networks.
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the .
Use Cisco&Feature Navigator to find information about platform support and Cisco&IOS and Catalyst&OS software image support. To access Cisco&Feature Navigator, go to . An account on Cisco.com is not required.
oEvery WSMA agent must be associated with a WSMA profile to perform any operations. If WSMA agents are not properly associated with profiles, the WSMA agents cannot send or receive any messages.
oWSMA over SSHv2 requires that a vty line be available for each WSMA session.
oWSMA over TLS requires a Certificate Authority (CA) server be available on the network.
oSSHv1 is not supported, only SSHv2 is supported.
oYou must be running a crypto image in order to configure SSH, TLS, or HTTPS.
oNotification services are not supported for WSMA over HTTP in listener mode.
oWSMA keepalive messages must be configured for Config, Exec and Filesys services for WSMA over HTTP in initiator mode.
Before configuring WSMA, you should understand the following concepts:
Web Services Management Agent (WSMA) is a family of embedded agents, used by the point-to-point management application to fully manage a device.
The current set of services provided by the WSMA is as follows:
The Configuration WSMA service provides services to change the configuration on Cisco IOS devices and validates and applies a set of configuration commands to Cisco IOS software. Any non-interactive configuration CLI command that can be applied using the Cisco IOS console can also be applied using this WSMA. This service is available for all configuration CLI commands on the Cisco IOS device. It treats a set of commands as a single operation.
There are three types of configuration requests which can occur.
oconfigTest—Validates the syntax of the configuration data but does not apply the data to the running configuration.
oconfigApply—modifies the running configuration with the supplied configuration data. Use the action-on-fail attribute to specify the error handling to perform, if an error is encountered when applying the configuration. The level of error information returned in the response can be controlled using the details attribute.
oconfigPersist—copies the running configuration to the startup configuration so that it persists across reloads.
The service allows you to specify the CLI commands using either the XML Programmatic Interface (XML-PI) mode, or as direct CLI commands. Configuration WSMA service requests use the following modes and attributes:
oblock mode—use the &cli-config-data-block& tag to encapsulate a multiline block of CLI commands.
ocmd mode—use the &cli-config-data& to encapsulate a block of configuration settings where each CLI line is individually delimited by &cmd& tags.
oXML-PI mode—use the &xml-config-data& tag to encapsulate processing instructions. This is format compatible with Cisco Enhanced Device Interface (EDI).
oAction-on-fail—use this attribute to specify the action to perform when an error is encountered. You can specify the following action values:
–stop— stops the execution on the first error but preserves the system state. This means the configuration could be partially applied.
–continue—ignores the error(s) and continues implementing instructions.
–rollback—stops processing at the first error and restores configuration to the state before any configuration was applied. This is only enabled if the archive Cisco IOS CLI is configured.
oDetails—Use this attribute to control the level of error details. You can specify one of the following values:
–brief—provides minimal detail in error responses
–errors—provides details on all error encountered
–all—provides the maximal level of details on errors
For more information on the request and response messages for this service, see the WSMA configuration schema at.
The Exec WSMA provides services to retrieve operational data from the Cisco IOS device and handles executive mode command line operations on Cisco IOS devices, such as show commands and other diagnostic commands. Interactive Exec commands have Expect and Response tags to allow you to configure the exchange sequence. The service can also retrieve show command operational data in XML-PI format and it allows remote reloading of the Cisco IOS device.
Exec WSMA service requests consist of a single Exec mode command encapsulated in an &execCLI& tag with the following tags and attributes:
omaxWait—the time interval to accumulate data and wait for the Exec command to complete. Once the interval expires the operation stops and all accumulated data is sent in the response.
omaxResponseSize—the maximum number of bytes to accumulate in the body of the response. The default is 0 (infinity), and the range is 0 to 2^31-1. If the response exceeds the specified size, the operation stops and all accumulated data is sent in the response.
oformat—to get the results of Exec commands in XML-PI format specify the path to the spec file on the Cisco IOS file system. To use the global spec file command in the Cisco IOS file system and still get XML-PI format results use the attribute format=&&.
oxsd—If this value is set to 1 then the XML schema of the Exec command instead of the output of the Exec command.
ocmd—this mandatory tag contains the Exec command to run.
odialogue—this optional tag is only used for interactive Exec commands. It specifies an expect and reply sequence. It includes a repeat attribute that is used if there are multiple expect and reply sequences which are identical.
oexpect—the prompt the system expects. The value does not have to be an exact match to the specified string. The string match has two attributes:
–match—set to leading, trailing, embedded, or exact.
–caseSensitive—set to true to do case sensitive match.
oreply—the answer to the prompt if it matches.
The order and number of the dialogue elements must match the actual prompts seen or the Exec call will fail. All dialogues must be run otherwise an error message is seen.
For more information on the request and response messages for this service, see the WSMA Exec schema at.
The Filesystem WSMA service provides services to manage files on the Cisco IOS device. It is responsible for copying and validating files between local and remote file systems. This agent can be used to do directory listings, upgrade the IOS image running on the device and delete files. File copies can be validated using a MD5 checksum if available.
There are three types of filesystem requests:
ofileList is the equivalent of asking for a directory listing.
ofileDelete specifies a list of files to be deleted using the deleteFileList attribute.
ofileCopy enables the copying of files to and from the local file system. The file is copied outside of the WSMA transport mechanism, using the protocol specified in the srcURL attribute. This copy process is similar to copying a file using the Exec CLI shell, however this process performs additional validation checks which are not available in the Exec shell.
For more information on the request and response messages for this service, see the WSMA filesystem schema at.
The Notification WSMA service collects configuration-change events and forwards the details to the management application which has subscribed to get the notifications.
Multiple management applications can receive the notifications by connecting to a listener profile. Each management application must explicitly subscribe to the notifications, and can turn notification on or off on the profile without affecting the operation of other connected management applications. If a connection drops notifications are turned off.
Notifications are not cached or stored. If no management application is connected when an event happens then there is no record of that event.
Notifications requests have three attributes:
ocorrelator—used to co-ordinate the acknowledgement to the request.
otype—a string representing the types of notifications to enable on the session. Currently, the only supported string is configChange.
oactivate—turns notification on or off by sending the value 0 (off) or 1 (on).
For more information on the request and response messages for this service, see the WSMA notification schema at.
When a new WSMA session is established, the Cisco IOS device sends a Hello message containing the WSMA ID and a list of WSMA services available on the session.The remote management application can query this information by sending a WSMA Hello Request to the Cisco IOS device.
This service is implicitly enabled on every WSMA profile.
For more information on the request and response messages for this service, see the WSMA hello schema a.
If a WSMA profile is configured to use keepalive messages, and if no WSMA service request has been received for the configured keepalive interval, the Cisco IOS Device sends a Keepalive request on the WSMA session. If the number of keepalive requests sent exceeds the configured retries, the WSMA session is closed.
A keepalive request has one attribute, correlator. The correlator attribute is a number that starts at 1 and increments each time a keepalive request is sent on a session. The correlator value used in a keepalive response must match the value in a keepalive request.
For more information on the request and response messages for this service, see the WSMA keepalive schema at.
WSMA profiles abstract away the working of the transport layer from the WSMA. The transport protocol and an encapsulation together form a WSMA profile. Any WSMA agent must be associated with a specific WSMA profile to perform valid operations. WSMA profiles demultiplex requests to the appropriate WSMA.
WSMA profiles work as a transport termination point, and allow transport and XML encapsulation parameters to be configured.
oThe configurable encapsulations for WSMA are SOAP 1.1 and SOAP 1.2.
oThe transportation mechanism for WSMA include SSH, HTTP, HTTPS, and TLS. This mechanism opens listening sockets for listeners on the router or connecting sockets for clients on the router.
The service listener is a type of WSMA profile that listens for incoming connections and accepts devices from allowed addresses or accepted user IDs. The accepted addresses are configured by defining an access list.
Accepted user IDs are configured by defining the transport method that the service listener listens for. The transport method (SSH, HTTP, or TLS) enforces the specific user ID that is accepted.
Note WSMA listener profiles cannot access Cisco IOS devices that are located behind a firewall.
The service initiator is a type of WSMA profile that initiates secure connections from Cisco IOS devices to management applications over trusted and un-trusted networks.
The service initiator creates a dynamic socket that attempts to stay connected to a configured server address. Each initiator can be configured with retry, keepalive, timeout and reconnect settings. In addition, each initiator can specify a backup connection to use if the primary connection fails.
The service initiator allows WSMA to initiate connections to devices behind a firewall or NAT, and in Zero Touch Deployment (ZTD) networks.
SOAP is an industry-standard protocol to exchange XML data between applications. It defines a common mechanism to handle corrupted XML messages. It has a header mechanism to collate metadata associated with a transaction.
SOAP 1.1 and SOAP 1.2 have different schema definitions. They can co-exist with no impact on the other. Cisco IOS software has both SOAP 1.1 and SOAP 1.2 libraries. SOAP has mechanisms to handle XML framing and operational errors in a generic manner allowing greater interoperability of XML-based applications.
To run the WSMA over SSHv2 feature, the WSMA agent needs to be configured to use a service profile that is using SSH as a transport method.
shows a basic WSMA over SSHv2 network configuration. The client and server exchange keys for security and password encryption. The user ID and password of the SSHv2 session running WSMA are used for authorization and authentication purposes. The user privilege level is enforced and the client session may not have full access to the WSMA operations if the privilege level is not high enough. If authentication, authorization, and accounting (AAA) is configured, the AAA service is used as if a user had established an SSH session directly to the device. Using the existing security configuration makes the transition to WSMA almost seamless. Once the client has been successfully authenticated, the client invokes the SSH connection protocol and the SSH session is established. After the SSH session is established, the user or application invokes WSMA as an SSH subsystem. The default name for the subsystem is &wsma.&
Figure&1 WSMA over SSHv2
SSHv2 runs on top of a reliable transport layer and provides strong authentication and encryption capabilities. SSHv2 provides a means to securely access and securely execute commands on another computer over a network.
Service listeners do not support SSHv1. The configuration for the SSHv2 server is similar to the configuration for SSHv1. Use the ip&ssh version command to specify which version of SSH that you want to configure. If you do not configure this command, SSH by default runs i that is, both SSHv1 and SSHv2 connections are honored.
Note SSHv1 is a protocol that has never been defined in a standard. If you do not want your router to fall back to the undefined protocol (version 1), you should use the ip ssh version command and specify version 2.
Use the ip ssh rsa keypair-name command to enable an SSH connection using Rivest, Shamir, and Adelman (RSA) keys that you have configured. If you configure the ip ssh rsa keypair-name command with a key-pair name, SSH is enabled if the key pair exists, or SSH will be enabled if the key pair is generated later. If you use this command to enable SSH, you do not need to configure a hostname and a domain name.
To run the WSMA over HTTP feature, the WSMA agent needs to be configured to use a service profile which is using either HTTP or HTTPS as a transport. For HTTPS, the client and server exchange keys for security and password encryption. The user ID and password of the HTTP or HTTPS session running WSMA are used for authorization and authentication purposes. The user privilege level is enforced and the client session may not have full access to the WSMA operations if the privilege level is not high enough. If AAA is configured, the AAA service is used as if a user had established an SSH session directly to the device. Using the existing security configuration makes the transition to WSMA almost seamless. After the HTTP or HTTPS session is established, the user or application invokes WSMA as a HTTP path. The default name for the path is &/wsma.&
When using HTTP as the transport for a initiator profile, the WSMA Notification service is available without additional configuration. However, to use the Config, Exec and Filesys services, you must first configure keepalive messages on the initiator profile. When keepalive messages are configured the Cisco IOS device can periodically send a request to the remote WSMA application, and this allows the remote HTTP server the opportunity to send a WSMA request.
When using HTTP as the transport for a listener profile, the WSMA Notification service is not supported since the Cisco IOS device acting as a HTTP server cannot send HTTP requests, it can only respond to HTTP requests.
HTTP is a reliable request/response protocol that runs on top of a reliable transport layer. HTTPS provides strong authentication and encryption capabilities.
HTTP is configured with the ip http server command and HTTPS is configured using the ip&http secure-server command.
Access Lists
You can optionally configure access lists for use with a service listener. An access list is a sequential collection of permit and deny conditions that applies to IP addresses. The Cisco IOS software tests addresses against the conditions in an access list one by one. The first match determines whether the software accepts or rejects the address. Because the software stops testing conditions after the first match, the order of the conditions is critical. If no conditions match, the software rejects the address.
The two main tasks involved in using access lists are as follows:
1. Creating an access list by specifying an access list number or name and access conditions.
2. Applying the access list to interfaces or terminal lines.
For more information about configuring access lists, see the
section of the
To run the WSMA over TLS feature, the WSMA agent needs to be configured to use a service profile which is using TLS as a transport. The TLS protocol uses endpoint authentication and encryption to provide secure connections over any network. Encryption protects against eavesdropping, and digital certificates (signed by a trusted CA) protect against tampering and message forgery by authenticating the endpoints.
The WSMA listener and initiator profiles use the TLS server and client adapters to create and accept TLS connections. The TLS server uses a default port (13000) to listen for incoming connections, similarly the TLS client uses the same default port to initiate connections. The default port setting can be overridden by changed the profile configuration.
Trusted Certificates
The WSMA over TLS feature requires a CA server to be available on the network. The CA's public key is made known to the client, and the public key must correspond to the private key used to sign the server's certificate. The Cisco IOS Device and the remote WSMA application use the CA server to validate the certificates sent between them.
The WSMA IDs allow Cisco IOS networking devices to have unique IDs. This is important in a Network Address Translation (NAT) or Dynamic Host Configuration Protocol (DHCP) network where all the device IP addresses are locally significant. In this type of deployment, the WSMA ID can be used to give each device a globally unique ID.
The WSMA ID can be explicitly configured based on other properties of the device such as:
oThe hardware serial number
oThe hostname
oThe IP address of an interface
oThe MAC address of an interface
oA user-defined string
Whenever the WSMA ID changes, all WSMA sessions are disconnected. This is to protect the management applications from having to deal with synchronizing the state dynamically.
WSMA security is integrated with AAA configuration of Cisco IOS software. The AAA associations configured on the transport layer are used by WSMA
WSMA is designed for point-to-point operation and works over an encrypted transport. The security on the transport layer identifies and authenticates the users.
Web Services Security Header (WSSE) is the SOAP security extension.
The WSMA profiles can be configured to expect or ignore additional security headers in the SOAP messages depending on the deployment mode. If WSMA is configured to contain a security header, the format of the header is as per the SOAP security extension, WSSE.
SOAP enforces authentication using the WSSE header. If there are any authentication errors, they are reported as SOAP faults. The authenticated message is passed on to the WSMA which checks for the authorization level of the user before applying any operation. Authorization errors are reported as a WSMA error response.
If WSMA profiles are configured not to contain the WSSE, then the security header is ignored and the transport login credentials are used for authentication. If WSSE is expected, then the details of the security header are used to authenticate the user. If the security header is missing, the incoming message is discarded and a SOAP fault is issued.
WSMA over TLS Authentication and Authorization
Unlike SSH or HTTPs connections, TLS connections do not require that a user logs into to CISCO IOS device. In addition, TLS certificates provide host-level authentication but do not always provide user-level authentication. Therefore, the WSSE header (if configured) is used to authenticate and authorize different users from a specified host.
For TLS listener profiles, all WSMA requests are authenticated using the SOAP WSSE header. After the request is authenticated, the user is authorized to perform operations based on the configured privilege level. The user can be configured on the Cisco IOS device or an the AAA server. The identity of the remote host is validated using the TLS client-side certificate.
For TLS initiator profiles, the identity of the remote endpoint is verified using the CA server as part of the TLS connection setup. After a connection is established, all incoming WSMA requests are authenticated using the WSSE header. After the request is authenticated, the user is authorized to perform operations based on the configured privilege level. The user can be configured on the Cisco IOS device or an the AAA server.
If the WSSE SOAP header is disabled for a TLS listener or initiator profile, user-level authentication is not possible, and the following process is used to decide the authorization level to assign to the profile:
oThe authorization level set using the no wsse authorization level command is used for all agents associated with the profile.
oIf no authorization level is set, the default privilege level is used. The default privilege level is set to 1 (the minimum level).
Each WSMA service publishes its XML schema. It describes the XML messages that the specific WSMA service is capable of understanding and executing. The WSMA schema defines the entire data required to execute an operation and ensures operations can be performed identically regardless of the type of transport used to carry the message.
A full list of WSMA schema (XSD) files is available from theFTP site.
The Cisco Zero Touch deployment (ZTD) solution enables the router to retrieve configuration files from the remote DHCP server during the initial router deployment. You need a bootstrap configuration to communicate between the router and the remote server. The bootstrap configuration provides specific information about a device. This bootstrap configuration can be pre-installed on the device or can be retrieved from the DHCP server. Another method of retrieving the bootstrap configuration information, using the DHCP Option 43, is introduced in Cisco IOS Release 15.1(1)T. To accommodate situations where routers cannot have a pre-installed bootstrap configuration, a deployment model which uses DHCP Option 43 messages is used. Cisco recommends the usage of DHCP Option 43 message based on RFC 2132. You can use the DHCP Option 43 message to provide vendor-specific information in the form of ASCII codes to the DHCP server.
The DHCP Option 43 message supplies the necessary information that is normally provided in the bootstrap configuration to the DHCP client. When the DHCP client issues a DHCP IP address request to the DHCP server, the DHCP server sends out the IP address and a DHCP Option 43 message, if the DHCP Option 43 message is pre-configured on the DHCP server. Within this DHCP Option 43 message, pre-defined parameterized WSMA commands are provided to the DHCP client. A timer for three minutes is set. After the timeout , if the file download is successful, the process is complete. If the file download fails, check if the WSMA DHCP Option 43 message generated is correct and fix it if there is problem. Power cycle the router to retry the WSMA DHCP Option 43 message processing.
At router system initiation time, there are following two ways to initiate the DHCP IP address request to enable the DHCP Option 43 message to be sent to the router:
1. If the router is enabled with startup configuration, ZTD can be enabled by using the ip address dhcp and the wsma dhcp configuration commands.
2. If the router is not enabled with startup configuration, the Autoinstall feature automatically initializes the ip address dhcp configuration command, which enables the ZTD. For more information about the Autoinstall feature, see the
module in the .
The values configured using the wsma id, wsma agent, and wsma profile initiator commands are used as parameters to construct the DHCP Option 43 message to enable ZTD. The DHCP Option 43 message provides these pre-defined parameterized commands to the DHCP client, which enables the client to decode and read the messages sent by the DHCP Server.
Constructing a DHCP Option 43 message
The DHCP Option 43 message is presented in the type/value (TV) format. The DHCP Option 43 is used by clients and servers to exchange vendor- specific information. When you use the vendor-specific option (Option 43), you must specify the data using hexadecimal ASCII values. For more information on the option command refer to .
Note The maximum DHCP Option 43 size is 2500 bytes.
Following are the parameters used by the WSMA to construct the DHCP Option 43 message to enable ZTD:
&DHCP-typecode&&feature-opcode&&version&&debug-option&;&arglist&
describes the parameters and their syntax.
Table&1 Parameters of DHCP Option 43 Message
DHCP-typecode
Specifies the DHCP suboption type. The DHCP suboption type for WSMA is 4.
feature-opcode
There are two types of feature op-codes—Active (A) and Passive (P). The feature op-code for WSMA is Active (A) template. This code initiates a connection to the management server and sends a hello message to it. If the management server cannot be reached, the router keeps trying to connect until it gets through.
Indicates the version of template to be used by WSMA.
debug-option
Indicates if debug messages have to be generated during the processing of the DHCP Option 43 messages. Debug OFF is recommended for normal processing and debug ON can be used for debugging the processing of DHCP Option 43 message. The following are the two debug options:
o D—debug option is ON
o N—debug option is OFF
Delimiter used to separate the parameters.
List of named arguments for the command, separated by semi-colon. To use the default value for an argument, you need not specify values for that parameter. Include a parameter and its value only when its default value does not serve the need.
Letter codes are used to identify the arguments. Name and value pairs can be listed in any order and are delimited by a semi-colon.
lists the arguments for configuring the WSMA ID and the initiator profile parameters used for configuring the WSMA configuration agent.
Table&2 Argument Lists for WSMA Active Template A (WSMA Indicators)
(Optional) Indicates the WSMA ID. The default is hostname.
1- Indicates a custom string to be used.
2- Indicates the MAC-address of the interface used.
3-Indicates the hardware serial number to be used.
4-Indicates Unified Display Interface (UDI).
Router(config)#
wsma&id&string&881-ap
Router(config)# wsma&id&udi
Remote server IP ADDR
(Required). Indicates an IPv4 or IPv6 address or hostname. Set the DNS-server option for DHCP, if you use hostname.
I10.10.10.1-
Router(config-wsma-init)#
transport&tls&10.10.10.1
Remote server part
(Optional) Indicates the remote server part. Default port is 13000.
Router(config-wsma-init)#
transport&tls&10.10.10.1.10090
Transport protocol for WSMA Initiator
(Required) Indicates the transport protocol for WSMA initiator.
Router(config)#
wsma&profile&intiator&zero-touch
Router(config-wsma-init)#
transport tls 10.10.10.1 10090
Encapsulation
(Optional) Indicates the encapsulation of a WSMA profile. The default is SOAP 11.
Router(config-wsma-listener)#
encap soap12
Max message C
(Optional) Indicates maximum size limit for incoming messages. The default is 50KB.
Numeric string between 1K and 2000K
Router(config-wsma-listen)#
max-message 50
CA Server IP address
(Required) Indicates the IP address or host name of Certificate Authority (CA) server for the TLS or HTTPS protocol.
Router(ca-trustpoint)# enrollment
url http://10.1.43.216:80
Source interface
Indicates the source interface name. It is applicable for TLS protocol.
Router(config-wsma-initiator)#
transport tls name1 11011 source
fastethernet 0/1
(Required) Specifies the User name for SSH protocol. It is not applicable for TLS protocol.
Router(config-wsma-initiator)#
transport ssh user1 11011 path
remote-cmd-text user username
User Password
(Required) Specifies the password for accessing the SSH protocol. It is not applicable for TLS protocol.
Router(config-wsma-initiator)#
transport ssh user1 11011 path
remote-cmd-text user username
Connect string/path
(Required) Specifies a connect string command for SSH, or path for HTTPS and HTTP. It is not applicable for TLS protocol.
Router(config-wsma-initiator)#
transport https user1 11011 path
remote-cmd-text user username
idle-timeout
(Optional) Specifies the timeout value in minutes. The default value is 1.
Router(config-atm-vc)#
idle-timeout 30
domain-name
(Optional) Specifies the name of the domain that hosts the DHCP client. This parameter is applicable for TLS protocol.
example.com
Router(config)#
ip domain list example.com
fingerprint
(Optional) Specifies a fingerprint that can be matched against the fingerprint of a certification authority (CA) certificate during authentication. It is applicable for TLS protocol.
T96E50E2C126
3BFD40FE663D
Router(ca-trustpoint)# fingerprint
96E50E2C126CCBFD40FE663
(Optional) Specifies a host name and a domain name. It is applicable for TLS protocol.
example.com
Router(ca-trustpoint)#
fqdn dp-7214.examplecom
Keepalive-interval
(Optional) Specifies the number of keepalive intervals.
Router(config-wsma-initiator)#
keepalive 600
Keepalive-retries
(Optional) Specifies the number of keepalive retries.
Router(config-wsma-initiator)#
keepalive 600 retries 5
Crypto cmd wait time
(Optional) Specifies the time taken in seconds before a crypto command is executed.
1- 15 seconds
2-30 seconds
3-45 seconds
4-60 seconds
5-120 seconds
6-180 seconds
Default gateway
Specifies the system's default gateway which needs to be configured.
Router(config)# ip route 0.0.0.0
0.0.0.0 10.1.43.254
Note Backup servers are not available. Type 6 encryption cannot be provided for zero touch due to additional initial configuration required on the Cisco IOS device. The router tries to reconnect every 60 seconds for 15 minutes. If the server cannot be reached within the specified time, the router accepts reconfiguration via DHCP Option 43 message.
In this example, in response to a DHCP IP address request sent by the DHCP client, the DHCP server sends an Option 43 message such as 4A1N;I10.10.10.1;K1 to the DHCP client. The DHCP client forwards the Option 43 message to the WSMA. The WSMA verifies if the Option 43 message is allowed to process. Option 43 messages are allowed to process by the WSMA if the wsma dhcp command is enabled on the WSMA.
The ASCII data shown in this Option 43 message consists of TV values shown in :
Table&3 TV Values for Sample Option 43 Command
A1N;I10.10.10.1;K1
This message is decoded into tokens using the arguments list from . The parameters mapped for the 4A1N;I10.10.10.1;K1 message using the arguments list are as follows:
A—Active template code
1—Version number of the Active template
N—Debug option which is OFF
;—Delimiter before the arglist
I10.10.10.1—IP address of the Management server
K1—Transport protocol for Initiator used in TLS
The WSMA constructs the following commands and sends to the remote management server to request the initial configuration file. A timer is set for five minutes.
Router(config)# wsma agent config profile zero-touch
Router(config)# wsma profile initiator zero-touch
Router(config-wsma-initiator)# transport tls 10.10.10.1
Router(config-wsma-initiator)# no wsse authorization level 15
The initial configuration file that is downloaded is checked. If the file download is successful, the process is complete.
In this example, in response to a DHCP IP address request sent by the DHCP client, the DHCP server sends an Option 43 message such as 4A1N;A.10.1;E11024;K1 to the DHCP client. The DHCP client forwards the Option 43 message to the WSMA. The WSMA verifies if the Option 43 message is allowed to process. Option 43 messages are allowed to process by the WSMA if the wsma&dhcp command is enabled on the WSMA.
The ASCII data shown in this Option 43 message consists of TV values shown in :
Table&4 TV Values for Sample Option 43 Command
4A1N;A.10.1;E11024;K1;
This message is decoded into tokens using the arguments list from . The parameters mapped for the 4A1N;A.10.1;E11024;K1 message using the arguments list are as follows:
A—Active template code
1—Version number of the Active template
N—Debug option which is OFF
;—Delimiter before the arglist
881-ap-Active template string values
D10.10.10.1—IP address of the Management server
K1—Transport protocol for Initiator used in TLS
The following tokens are generated from the 4A1N;I10.10.10.1;K1 message:
o10.10.10.1
The WSMA constructs the following commands and sends to the remote management server to request the initial configuration file. A timer is set for five minutes.
Router(config)# wsma&agent&config&profile&zero-touch
Router(config)# wsma profile initiator zero-touch
Router(config-wsma-initiator)# transport tls 10.10.10.1
Router(config-wsma-initiator)# no wsse authorization level 15
This section contains the following tasks:
o, (required)
o, (required)
o, (required)
o (required)
o (required)
o, (optional)
o (required)
o, (required)
o, (required)
o, (required)
o, (optional)
o, (optional)
o (required)
o, (optional)
Perform this task to configure your router for SSHv2 using a hostname and domain name.
2. configure terminal
3. hostname hostname
4. ip domain-name name
5. crypto key generate rsa
6. ip ssh [timeout seconds | authentication-retries integer]
7. ip ssh version 2
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
hostname hostname
Router(config)# hostname host1
Configures a hostname for your router.
ip domain-name name
Router(config)# ip domain-name domain1.com
Configures a domain name for your router.
crypto key generate rsa
Router(config)# crypto key generate rsa
Enables the SSH server for local and remote authentication.
ip ssh [timeout seconds | authentication-retries integer]
Router(config)# ip ssh timeout 120
(Optional) Configures SSH control variables on your router.
ip ssh version 2
Router(config)# ip ssh version 2
Specifies the version of SSH to be run on your router.
Router(config)# end
Exits global configuration mode.
Perform this task to enable the HTTP server. The HTTP server is disabled by default. Once the HTTP server is enabled, you can configure optional server characteristics. For more information on configuring optional server characteristics for HTTP server, refer to && module.
2. configure terminal
3. ip http server
4. ip http authentication {aaa | local}
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
ip http server
Router(config)# ip http server
Enables the HTTP 1.1 server, including the Cisco web browser user interface.
Note If you are enabling the HTTP over Secure Socket Layer (HTTPS) server using the ip http secure-server command, you should disable the standard HTTP server using the no ip http server command. This command is required to ensure only secure connections to the server.
ip http authentication {aaa | local}
Router(config)# ip http authentication aaa
Specifies the authentication method for HTTP server users.
oThe ip http authentication enable command specifies that the enable password is used for authentication. This authentication method cannot be used to access the WSMA.
To disable the standard HTTP server and configure the HTTPS server with SSL 3.0, complete the procedure in this section.
If a certificate authority is to be used for certification, you should declare the CA trustpoint on the routing device before enabling the secure HTTP server. For more information on declaring CA trustpoints on the routing device, refer to && module.
2. show ip http server status
3. configure terminal
4. no ip http server
5. ip http secure-server
6. ip http secure-port port-number
7. ip http secure-ciphersuite [3des-ede-cbc-sha] [rc4-128-sha] [rc4-128-md5] [des-cbc-sha]
8. ip http secure-client-auth
9. ip http secure-trustpoint name
11. show ip http server secure status
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
Router# show ip http server status
Router# show ip http server status
(Optional) Displays the status of the HTTP server.
oIf you are unsure whether the secure HTTP server is supported in the software image you are running, enter this command and look for the line &HTTP secure server capability: {Present | Not present}&.
oThis command displays the status of the standard HTTP server (enabled or disabled).
configure terminal
Router# configure terminal
Enters global configuration mode.
no ip http server
Router(config)# no ip http server
Disables the standard HTTP server.
Note When enabling the HTTPS server you should always disable the standard HTTP server to prevent insecure connections to the same services. This is a precautionary step (typically, the HTTP server is disabled by default).
ip http secure-server
Router(config)# ip http secure-server
Enables the HTTPS server.
ip http secure-port port-number
Router(config)# ip http secure-port 1025
(Optional) Specifies the port number that should be used for the HTTPS server. The default port number is 443. Valid options are 443 or any number in the range 1025 to 65535.
ip http secure-ciphersuite [3des-ede-cbc-sha] [rc4-128-sha] [rc4-128-md5] [des-cbc-sha]
Router(config)# ip http secure-ciphersuite rc4-128-sha rc4-128-md5
(Optional) Specifies the CipherSuites (encryption algorithms) that should be used for encryption over the HTTPS connection.
oThis command allows you to restrict the list of CipherSuites that the server offers the connecting clients. For example, you may want to allow only the most secure CipherSuite to be used.
oUnless you have a reason to specify the CipherSuites that should be used, or you are unfamiliar with the details of these CipherSuites, you should leave this command unconfigured and let the server and client negotiate the CipherSuite that they both support (this is the default).
ip http secure-client-auth
Router(config)# ip http secure-client-auth
(Optional) Configures the HTTP server to request an X.509v3 certificate from the client in order to authenticate the client during the connection process.
oIn the default connection and authentication process, the client requests a certificate from the HTTP server, but the server does not attempt to authenticate the client. Authenticating the client provides more security than server authentication by itself, but not all clients may be configured for CA authentication.
ip http secure-trustpoint name
Router(config)# ip http secure-trustpoint trustpoint-01
Specifies the CA trustpoint that should be used to obtain an X.509v3 security certificate and to authenticate the connecting client's certificate.
oUse of this command assumes you have already declared a CA trustpoint using the crypto pki trustpoint command and associated submode commands.
oUse the same trustpoint name that you used in the associated crypto pki trustpoint command.
Router(config)# end
Ends the current configuration session and returns you to privileged EXEC mode.
show ip http server secure status
Router# show ip http server secure status
Displays the status of the HTTP secure server configuration.
To use the TLS protocol to connect to the remote host, the Cisco IOS router (acting as the TLS client) must validate the signed certificate of the WSMA application host (acting as the TLS server). To allow the router to validate the certificate and trust all certificates signed by the CA, you must configure a trustpoint for the CA on the router and instruct the router to download a self-signed certificate from the CA which authenticates the CA to the router.
To enable certificate validation on the Cisco IOS router, perform the following tasks:
2. configure terminal
3. crypto pki trustpoint name
4. enrollment url url
6. crypto pki authenticate name
8. show run
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
crypto pki trustpoint name
Router(config)# crypto pki trustpoint my_CA
Declares the CA that the router should use and enters ca-trustpoint configuration mode.
enrollment url url
Router(ca-trustpoint)#enrollment url http://myCAurl:80
Specifies the URL of the CA.
Router(ca-trustpoint)# exit
Exits ca-trustpoint configuration mode and returns you to global configuration mode.
crypto pki authenticate name
Router(config)# crypto pki authenticate my_CA Certificate has the following attributes: Fingerprint MD5: AC3B4A2B FD027F65 0B4650BF 018B1F79 Fingerprint SHA1: BC3FFDC 1E8E79B3 0150DEBF B887CD15 % Do you accept this certificate? [yes/no]: yes Trustpoint CA certificate accepted.
Authenticates the CA to the router by obtaining the self-signed certificate of the CA that contains the public key of the CA.
oBecause the CA signs its own certificate, you should manually authenticate the public key of the CA by contacting the CA administrator when you perform this command.
oAfter the router obtains the certificate, it displays a prompt asking you to accept the certificate.
Router(config)# end
Ends the current configuration session and returns you to privileged EXEC mode.
Router# show run
Displays the status of the server configuration, including CA and certificate details.
To configure CA certificates for WSMA listener mode using the TLS protocol on the Cisco IOS router, you must configure a trustpoint for the CA on the router and instruct the router to download a self-signed certificate from the CA which authenticates the CA to the router. You must then instruct the router to request it's own certificate signed by the CA.
To enable certificates for WSMA listener mode, perform the following tasks:
2. configure terminal
3. crypto pki trustpoint name
4. enrollment url url
enrollment terminal
6. crypto pki authenticate name
7. crypto pki enroll name
8. crypto pki import name certificate
10. show run
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
crypto pki trustpoint name
Router(config)# crypto pki trustpoint my_CA
Declares the CA that the router should use and enter ca-trustpoint configuration mode.
enrollment url url
enrollment terminal
Router(ca-trustpoint)#enrollment url http://myCAurl:80 OR Router(ca-trustpoint)#enrollment terminal
Specifies the URL of the CA.
oUse the enrollment terminal command to specify manual cut-and-paste certificate enrollment.
Router(ca-trustpoint)# exit
Exits ca-trustpoint configuration mode and returns you to global configuration mode.
crypto pki authenticate name
Router(config)# crypto pki authenticate my_CA Certificate has the following attributes: Fingerprint MD5: AC3B4A2B FD027F65 0B4650BF 018B1F79 Fingerprint SHA1: BC3FFDC 1E8E79B3 0150DEBF B887CD15 % Do you accept this certificate? [yes/no]: yes Trustpoint CA certificate accepted.
Authenticates the CA to the router by obtaining the self-signed certificate of the CA that contains the public key of the CA.
oBecause the CA signs its own certificate, you should manually authenticate the public key of the CA by contacting the CA administrator when you perform this command.
oIf you specified manual cut-and-paste certificate enrollment in step 4, you will now be prompted to enter the encoded CA certificate.
oAfter the router obtains the certificate, it displays a prompt asking you to accept the certificate.
crypto pki enroll name
Router(config)# crypto pki enroll my_CA % Start certificate enrollment .. % Create a challenge password. You will need to verbally provide this password to the CA Administrator in order to revoke your certificate. For security reasons your password will not be saved in the configuration. Please make a note of it. Password: Re-enter password: % The subject name in the certificate will include: routername.cisco.com % Include the router serial number in the subject name? [yes/no]: yes % The serial number in the certificate will be:
% Include an IP address in the subject name? [no]: Request certificate from CA? [yes/no]: yes % Certificate request sent to Certificate Authority % The 'show crypto pki certificate verbose my_CA' command will show the fingerprint.
Enrolls the router with the CA and requests certificates for this router from the CA.
oThe router prompts you to enter a challenge password and to select configuration options during the enrollment process.
crypto pki import name certificate
Router(config)# crypto pki import my_CA certificate
(Optional) Manually imports a certificate to the router.
oThis command is only required if you selected manual cut-and-paste in step 4.
oThe router displays a certificate request on the console terminal, the certificate request must be copied to the CA.
oThe CA creates a signed certificate for the router.
oThe signed certificate is imported into the router using this command.
Router(config)# end
Ends the current configuration session and returns you to privileged EXEC mode.
Router# show run
Displays the status of the server configuration, including CA and certificate details.
To display the status of the SSH connection on your router, use the show ssh and show ip ssh commands.
2. show ssh
3. show ip ssh
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
Router# show ssh
Displays the status of SSH server connections.
show ip ssh
Router# show ip ssh
Displays the version and configuration data for SSH.
The following sample output from the show ssh command displays status about SSHv2 connections.
Router# show ssh
Connection Version Mode Encryption
aes128-cbc
Session started
aes128-cbc
Session started
%No SSHv1 server connections running.
The following sample output from the show ip ssh command displays the version of SSH that is enabled, the authentication timeout values, and the number of authentication retries.
Router# show ip ssh
SSH Enabled - version 2.0
Authentication timeout: 120 Authentication retries: 3
The ip ssh version command can be used for troubleshooting your SSH configuration. By changing versions, you can determine which SSH version has a problem.
For more information about the ssh command, see the see the .
To enable a service initiator, perform the following task:
oIf you configure service initiator over HTPP or HTTPs, you must configure keepalive settings so that the Cisco IOS device can periodically send a HTTP Request to the remote WSMA application thus giving the remote WSMA application a chance to send WSMA requests.
oIf you configure service initiator over TLS, you must first configure the CA settings on the Cisco IOS device. For more information, see .
2. configure terminal
3. wsma profile initiator profile-name
4. encap {soap11 | soap12}
5. [backup] transport {http | https | ssh remote-host [initiator-port-number] path path-name [user username [0 | 6] password] } | tls remote-host [initiator-port-number] [localcert trustpoint-name] [remotecert trustpoint-name] [source source-interface]}
6. keepalive interval [retries number]
7. idle-timeout minutes
8. max-message message-size
9. backup hold time
10. backup excluded time
11. reconnect reconnect-time
12. stealth
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
wsma profile initiator profile-name
Router(config)# wsma profile initiator prof1
Creates a service initiator and enters the WSMA initiator configuration mode.
encap {soap11 | soap12}
Router(config-wsma-init)# encap soap12
(Optional) Configures an encapsulation for the service listener profile.
[backup] transport {http | https | ssh remote-host [initiator-port-number] path path-name [user username [0 | 6] password] } | tls remote-host [initiator-port-number] [localcert trustpoint-name] [remotecert trustpoint-name] [source source-interface]}
Router(config-wsma-init)# transport tls 192.2.1.10
Defines a transport configuration for the WSMA profile.
oThe port that the remote WSMA TLS application is listening on must be known. By default this is port 13000. If the server is listening on a port other than 13000, then the correct port must be configured using the initiator-port-number argument.
keepalive interval [retries number]
Router(config-wsma-init)# keepalive 100 retries 10
(Optional) Enables keepalive messages and configures interval and retry values for a WSMA profile.
oTo ensure that the Cisco ISO device allows the remote WSMA application to send WSMA requests, keepalive messages must be enabled on HTTP and HTTPs initiator connections.
idle-timeout minutes
Router(config-wsma-init)# idle-timeout 345
(Optional) Specifies the amount of time (in minutes) to keep the session alive in the absence of any data traffic.
max-message message-size
Router(config-wsma-init)# max-message 290
(Optional) Specifies the maximum receive message size (from 1 to 2000 kbytes).
backup hold time
Router(config-wsma-init)# backup hold 233
(Optional) Sets the time (in minutes) that the WSMA profile remains connected to the backup transport configuration.
backup excluded time
Router(config-wsma-init)# backup excluded 30
(Optional) Sets the time that the WSMA profile must wait before attempting to connect to the backup transport configuration, after a connection is lost.
reconnect reconnect-time
Router(config-wsma-init)# reconnect 434
(Optional) Specifies the time for the WSMA initiator profile to wait before attempting to reconnect a session.
Router(config-wsma-init)# stealth
(Optional) Configures the service to not send SOAP fault messages in response to corrupted XML messages.
Router(config-wsma-init)# wsse
(Optional) Enables the Web Services Security Header (WSSE) for a WSMA profile.
oBy default, WSSE is enabled. Enter the no wsse command to disable WSSE.
Router(config-wsma-init)# end
Ends the current configuration session and returns you to privileged EXEC mode.
To enable a service listener, perform the following task:
oIf you configure service listener over SSH, you must first configure SSH. For more information, see .
oIf you configure service listener over HTTP, you must first configure HTTP. For more information, see
oIf you configure service listener over TLS, you must first configure the CA settings on the router. For more information, see .
2. configure terminal
3. wsma profile listener profile-name
4. encap {soap11 | soap12}
5. transport {http | https [path path-name] | ssh [subsys subsys-name] | tls [listener-port-number] [localcert trustpoint-name] [disable-remotecert-validation | remotecert trustpoint-name]}
6. idle-timeout minutes
7. max-message message-size
8. keepalive interval [retries number]
9. acl acl-number
10. stealth
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
wsma profile listener profile-name
Router(config)# wsma profile listener prof1
Creates a service listener and enters the WSMA listener configuration mode.
encap {soap11 | soap12}
Router(config-wsma-listen)# encap soap12
(Optional) Configures an encapsulation for the service listener profile.
transport {http | https [path path-name] | ssh [subsys subsys-name] | tls [listener-port-number] [localcert trustpoint-name] [disable-remotecert-validation | remotecert trustpoint-name]}
Router(config-wsma-listen)# transport ssh subsys wsma
Defines a transport configuration for the WSMA profile.
idle-timeout minutes
Router(config-wsma-listen)# idle-timeout 345
(Optional) Specifies the amount of time (in minutes) to keep the session alive in the absence of any data traffic.
max-message message-size
Router(config-wsma-listen)# max-message 290
(Optional) Specifies the maximum receive message size (from 1 to 2000 kbytes).
keepalive interval [retries number]
Router(config-wsma-listen)# keepalive 100 retries 10
(Optional) Enables keepalive messages and configures interval and retry values for a WSMA profile.
oKeepalive messages are not sent on HTTP or HTTPs listener connections.
acl acl-number
Router(config-wsma-listen)# acl 34
(Optional) Defines the ACL group to use.
Router(config-wsma-listen)# stealth
(Optional) Configures the service to not send SOAP fault messages in response to corrupted XML messages.
Router(config-wsma-listen)# wsse
(Optional) Enables the Web Services Security Header (WSSE) for a WSMA profile.
oBy default, WSSE is enabled. Enter the no wsse command to disable WSSE.
Router(config-wsma-listen)# end
Ends the current configuration session and returns you to privileged EXEC mode.
Perform this task to enable a specific WSMA and associate it with a profile.
A WSMA initiator or listener profile must be configured and enabled.
2. configure terminal
3. wsma agent {config | exec | filesys | notify} profile profile-name
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
wsma agent {config | exec | filesys | notify} profile profile-name
Router(config)# wsma agent config profile prof1
Enables the WSMA and associates it with a profile.
Perform this task to assign unique WSMA IDs to Cisco IOS networking devices.
2. configure terminal
3. wsma id {hardware-serial | hostname | ip-address interface-type | mac-address interface-type | string value}
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
wsma id {hardware-serial | hostname | ip-address interface-type | mac-address interface-type | string value}
Router(config)# wsma id ip-address fastethernet
Assigns unique WSMA IDs to Cisco IOS networking devices.
Perform this task to monitor and maintain WSMA services:
2. show wsma agent {counters | schema} [config | exec | filesys | notify]
3. debug wsma agent [config | exec | filesys | notify]
4. clear wsma agent [config | exec | filesys | notify] counters
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
show wsma agent {counters | schema} [config | exec | filesys | notify]
Router# show wsma agent config counters
Displays the specified statistics counters, or schema for the WSMA.
debug wsma agent [config | exec | filesys | notify]
Router#debug wsma agent config
Enables debugging of WSMA.
clear wsma counters [config | exec | filesys | notify] counters
Router#clear wsma agent filesys counters
Clears WSMA statistics counters for all WSMA types.
The counters return the following information:
omessages received—The total number of messages that were passed from the service profile into the WSMA.
oreplies sent—The total number of reply messages sent to the services profile.
ofaults—The number of faults that prevented a received message producing a reply.
onotifications—The total number of notification messages sent to the services profile.
Router# show wsma agent counters
WSMA Exec Agent Statistics:
messages received 0, replies sent 0, faults 0
WSMA Config Agent Statistics:
messages received 4, replies sent 4, faults 0
WSMA Filesys Agent Statistics:
messages received 1, replies sent 1, faults 0
WSMA Notification Agent Statistics:
config silent
messages received 0, replies sent 0, notifications sent 0, faults 0
Router#show wsma agent config schema
New Name Space 'urn:cisco:wsma-config'
&VirtualRootTag& [0, 1] required
&WSMA-Config& [0, 1] required
&request& 1 required
&config-data& 1 required
&cli-config-data& [0, 1] required
&cmd& 1+ required
&cli-config-data-block& [0, 1] required
&xml-config-data& [0, 1] required
&Device-Configuration& [0, 1] required
&& any subtree is allowed
Perform this task to monitor and maintain WSMA profiles for initiators and listeners.
2. show wsma profile {connections | counters | schema} [name profile-name]
3. debug wsma profile [listener | initiator]
4. clear wsma profile [profile-name] {connections | counters}
Router&enable
Enables privileged EXEC mode.
oEnter your password if prompted.
show wsma profile {connections | counters | schema} [name profile-name]
Router# show wsma profile connections
Displays the specified service profile connections, statistics counters, or schema.
debug wsma profile [listener | initiator]
Router# debug wsma profile listener
Enables debugging of WSMA profiles.
clear wsma profile [profile-name] {connections | counters}
Router# clear wsma profile prof1 counters
Clears WSMA profile sessions or statistic counters.
Perform this task to enable a WSMA with permission to process the incoming DHCP Option 43 message.
Cisco IOS Subsystem
Ensure that the following Cisco IOS subsystems are supported:
oDHCP client
oWSMA TLS support
Software Requirements
oSSH client
oHTTP(S) 1.1 listener
oHTTP(S) 1.1 client
oXML parser
External Devices
oWSMA remote server for WSMA
oDHCP server with Option 43 message supported
2. configure terminal
3. wsma dhcp
DETAILED STEPS
Router& enable
Enables privileged EXEC mode.
oEnter your password if prompted.
configure terminal
Router# configure terminal
Enters global configuration mode.
Router# wsma dhcp
Enables WSMA with permission to process the incoming DHCP Option 43 message.
Router# exit
Exits global configuration mode.
An XML payload is typically wrapped in a SOAP message for data transportation. Without a correct design of SOAP messages, an XML payload may not be exchanged properly even if the payload follows a common XML schema. The XML payload over all transports is identical. WSMA supports both SOAP1.1 and SOAP1.2. The SOAP header supports two modes of security, no wsse and wsse.
Use the following XML to deliver WSMA payloads:
WSMA EXEC Request : Ping
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&request xmlns=&urn:cisco:wsma-exec& correlator=&01&&
&cmd&ping oz-dirt&/cmd&
&/execCLI&
&/request&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA EXEC Response:Ping
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&response xmlns=&urn:cisco:wsma-exec& correlator=&01& success=&1&&
&dialogueLog&
&sent&ping oz-dirt&/sent&
&received&Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.1.4, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms&/received&
&/dialogueLog&
&/execLog&
&/response&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA Config Request: CMD Data Model
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&request xmlns=&urn:cisco:wsma-config& correlator=&4.1&&
&configApply details=&all&&
&config-data&
&cli-config-data&
&cmd&no cns config partial mixy&/cmd&
&cmd&no stupid&/cmd&
&cmd&no cns exec 80 &/cmd&
&/cli-config-data&
&/config-data&
&/configApply&
&/request&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA Config Response: CMD Data Model
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&response xmlns=&urn:cisco:wsma-config& correlator=&4.1& success=&1&&
&resultEntry lineNumber=&1& cliString=&no cns config partial mixy&&
&success change=&NO_CHANGE& mode=&IMMEDIATE& /&
&/resultEntry&
&&&&&&&&&&&&&&&&&&&&&resultEntry lineNumber=&2& cliString=&no stupid&&
&failure errorType=&TEMPORARY& errorCode=&PARSE_ERROR_NOMATCH& /&
&/resultEntry&
&resultEntry lineNumber=&3& cliString=&no cns exec 80 &&
&success change=&NO_CHANGE& mode=&IMMEDIATE& /&
&/resultEntry&
&/response&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA Config Request: Block Data Model
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&request xmlns=&urn:cisco:wsma-config& correlator=&5.1&&
&configApply details=&all&&
&config-data&
&cli-config-data-block&no cns config partial mixy
no cns exec 80&/cli-config-data-block&
&/config-data&
&/configApply&
&/request&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA Config Response: Block Data Model
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&response xmlns=&urn:cisco:wsma-config& correlator=&5.1& success=&1&&
&resultEntry lineNumber=&1& cliString=&no cns config partial mixy&&
&success change=&NO_CHANGE& mode=&IMMEDIATE& /&
&/resultEntry&
&resultEntry lineNumber=&2& cliString=&no stupid&&
&failure errorType=&TEMPORARY& errorCode=&PARSE_ERROR_NOMATCH& /&
&/resultEntry&
&resultEntry lineNumber=&3& cliString=&no cns exec 80&&
&success change=&NO_CHANGE& mode=&IMMEDIATE& /&
&/resultEntry&
&/response&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA Config Request: EDI Data Model
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&request xmlns=&urn:cisco:wsma-config& correlator=&6.1&&
&configApply details=&all&&
&config-data&
&xml-config-data&
&Device-Configuration&&cns operation=&delete& &
&config&&partial&&HostNameAddressConfigurationServer&mixy&/HostNameAddressConfigurationSer
ver&&PortNumberConfigServiceDefault80&80&/PortNumberConfigServiceDefault80&&/partial&&/con
fig&&/cns&&stupid operation=&delete& /&&cns operation=&delete&
&&exec&&P&80&/P&&/exec&&/cns& &/Device-Configuration&
&/xml-config-data&
&/config-data&
&/configApply&
&/request&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA Config Response: EDI Data Model
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap/envelope/&
xmlns:SOAP-ENC=&http://schemas.xmlsoap.org/soap/encoding/&
xmlns:xsd=&http://www.w3.org/2001/XMLSchema&
xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance&&
&SOAP:Body&
&response xmlns=&urn:cisco:wsma-config& correlator=&6.1& success=&1&&
&resultEntry lineNumber=&1& cliString=&no cns config partial mixy 80&&
&success change=&NO_CHANGE& mode=&IMMEDIATE& /&
&/resultEntry&
&resultEntry lineNumber=&2& cliString=&no stupid&&
&failure errorType=&TEMPORARY& errorCode=&PARSE_ERROR_NOMATCH& /&
&/resultEntry&
&resultEntry lineNumber=&3& cliString=&no cns exec 80&&
&success change=&NO_CHANGE& mode=&IMMEDIATE& /&
&/resultEntry&
&/response&
&/SOAP:Body&
&/SOAP:Envelope&]]&]]&
WSMA File List Request
&?xml version=&1.0& encoding=&UTF-8&?&
&SOAP:Envelope xmlns:SOAP=&http://schemas.xmlsoap.org/soap

我要回帖

更多关于 能用gg大玩家的模拟器 的文章

 

随机推荐