Topic : com.plugis.shell.B8:27:EB:E7:B3:4E
Cloud events :
- Type : com.plugis.shell.command
- parameters : {"command": ["df","-lh","/"]}
- sample :
nats pub -s 'https://nats1.plugis.com' 'com.plugis.shell.B8:27:EB:E7:B3:4E' '{"type": "com.plugis.shell.command","data": {"command": ["df","-lh","/"]}, "id": "123","source": "manual","specversion": "1.0"}'
event-sender -type 'com.plugis.shell.command' -data '{"command": ["hostname"]}' -topic "com.plugis.shell.B8:27:EB:E7:B3:4E" -request
event-sender -type 'com.plugis.shell.command' -data '{"command": ["hostname"]}' -topic "com.plugis.shell.B8:27:EB:E7:B3:4E" -request
restart remote-access service
event-sender -server "nats://nats1.plugis.com:443" -type 'com.plugis.shell.command' -data '{"command": ["sh","-c","sudo service remote-access restart"]}' -topic "com.plugis.shell.2C:94:64:02:4C:A3" -timeout 5 -request