White Papers
15 No Restrictions | Filter Dialects |
The above SOAP packet includes the Filter tag which specifies the instances of the indication provider required
when an event occurs. The WQL query can be modified to create a subscription for a particular job by adding
the clause, WHERE JOB_ID=<job id>. The job id is typically a response received from the server after the user
creates a job.
3.2 Usage from Different Consoles
3.2.1 Windows PowerShell
WinRM as a tool does not provide support for Ws-events. However, we can subscribe to events from
powershell.
A powershell example of subscription to events is given here..
Register-CimIndicationEvent -Query "SELECT * FROM
DCIM_LifecycleJobAlertIndication" -Namespace root/dcim -MessageData "New Event
Has Come" -Action {$Global:myevent = $event } -CimSession $Session -
SourceIdentifier "Test2"
The usage of query is the same for powershell.
3.2.2 Linux WS-Man CLI
The Linux WS-Man CLI provides support for WS-Events. The below command provides a subscription
request to iDRAC and creates a filter for the instances of the indication class where PerceivedSecurity
property is equal to 2. This filtration is possible by using dialects.
wsman subscribe 'http://schemas.dmtf.org/wbem/wscim/1/*' -x "SELECT * FROM
DCIM_LifecycleJobAlertIndication WHERE PerceivedSeverity='2'" -D
'http://schemas.dmtf.org/wbem/cql/1/dsp0202.pdf' -Z
'http://10.94.44.69:80/eventsink' -h 10.94.195.40 -P 443 -u root -p calvin -v -j
utf-8 -y basic -R -o -m 256 -N root/dcim -c dummy -V -r 600