White Papers

6 No Restrictions | Filter Dialects |
winrm e "http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/DCIM_NICView?__cimnamespace=root/dcim" -u:<user> -p:<password> -
r:https://<ip>/wsman -encoding:utf-8 -a:basic -SkipCNcheck -SkipCAcheck -
filter:"{SlotLength = "0004" }" -
dialect:http://schemas.dmtf.org/wbem/wsman/1/wsman/SelectorFilter
This example is a simple usage of a Selector Filter. The command indicates the required instances which
match the specified filter, such as SlotLength = “0004”.
2.2 Selector Filter
The selector filter is one of the simplest filter methods for consoles to filter the enumeration data. The
selector filter is supported for both Enumeration and Subscribe methods.
A sample SOAP request format is given here.
<s:Header>
<wsa:To> Service transport address </wsa:To>
<wsman:ResourceURI> Resource URI </wsman:ResourceURI>
...
</s:Header>
<s:Body>
<wsen:Enumerate>
<wsman:Filter
Dialect="http://schemas.dmtf.org/wbem/wsman/1/wsman/SelectorFilter">
<wsman:SelectorSet>
<wsman:Selector Name=”selector-name”>
selector-value
</wsman:Selector>
</wsman:SelectorSet>
</wsman:Filter>
...
</wsen:Enumerate>
</s:Body>
The highlighted section indicates the SOAP tag to describe a SelectorFilter in the request. Any console
aiming to filter their output should present this Filter tag to the WS-Man implementation.
The example included in section 2.1 is a simple usage of the filter. The command without the filter returns
all the instances of NICView class that represents the network devices in the server. If the server has four
network devices with multiple ports (N) 4 x N instances are returned. If the ports are further partitioned,
many instances are returned. To filter a particular instance from a large number of output instances, the