Hello!
So I was playing with server automation and thought it would be kind of cool to get a tweet when a runbook finished and thought it could apply to baselines and other actions as well so… I wrote a Fixlet that tweets.
It is available here: https://bigfix.me/fixlet/details/6198 the powershell script was one I found online and the author is credited in the script. I modified the script slightly to pull out characters that the API didn’t like.
You can look at my test twitter account: https://twitter.com/apppkgr to see what it looks like when it’s working
It prompts the console operator for some text and prepends it with:
Action ID: 512 Action Name: Tweet (Windows) Info: (your text here)
Requirements:
- About halfway down youll have to fill out your twitter API info (or have it prompt the console operator for that info). You can follow this: https://developer.mulesoft.com/docs/display/current/Configure+Twitter+for+API+Access to enable API access to your twitter account.
Issues:
- I cannot figure out how to get the parent action information from the fixlet/action (essentially I couldn’t figure out how to get the name of the baseline the fixlet)
- API key is plain text in the fixlet
Due to issue #1 I couldn’t find a great use for this fixlet – I was hoping I could just add it to the end of a baseline or a server automation runbook and get a tweet when something is done. If anyone has any ideas for accomplishing that I’d love to hear them!
Let me know if you have any thoughts and thanks for reading!
Content