-
Notifications
You must be signed in to change notification settings - Fork 6
2.0 pfdcm hello
janakitti edited this page Jan 26, 2021
·
2 revisions
This page describes the hello
command to pfdcm
. It is used to simply test if a pfdcm
service is running.
- This page assumes that
pfdcm
is listening on:${HOST_IP}:4055
.
pfdcm --forever --httpResponse
The msg
payload of the REST interaction with pfdcm
is:
{ "action": "hello",
"meta": {
"askAbout": "sysinfo",
"echoBack": "Hi there!",
}
}
Assuming satisfied preconditions, let's say hello
to pfdcm
.
pfurl --verb POST \
--raw \
--http ${HOST_IP}:4055/api/v1/cmd \
--jsonwrapper 'payload' \
--msg '{
"action": "hello",
"meta": {
"askAbout": "sysinfo",
"echoBack": "Hi there!"
}
}'
--30--