{"action":"closed","issue":{"url":"https://api.github.com/repos/openlava/openlava/issues/62","labels_url":"https://api.github.com/repos/openlava/openlava/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/openlava/openlava/issues/62/comments","events_url":"https://api.github.com/repos/openlava/openlava/issues/62/events","html_url":"https://github.com/openlava/openlava/issues/62","id":38036789,"number":62,"title":"Accessing status of host","user":{"login":"AndyrewK","id":6002784,"avatar_url":"https://avatars.githubusercontent.com/u/6002784?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyrewK","html_url":"https://github.com/AndyrewK","followers_url":"https://api.github.com/users/AndyrewK/followers","following_url":"https://api.github.com/users/AndyrewK/following{/other_user}","gists_url":"https://api.github.com/users/AndyrewK/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyrewK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyrewK/subscriptions","organizations_url":"https://api.github.com/users/AndyrewK/orgs","repos_url":"https://api.github.com/users/AndyrewK/repos","events_url":"https://api.github.com/users/AndyrewK/events{/privacy}","received_events_url":"https://api.github.com/users/AndyrewK/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-07-16T23:56:41Z","updated_at":"2016-01-20T15:11:15Z","closed_at":"2016-01-20T15:11:15Z","body":"Hello,\r\n\r\nI am trying to access the status of my host in a bash script and if it is unavail then I get the corresponding hostname and perform an lsrmhost on it. What would be the best way to do this? I would like to do it in bash and not install the python wrap around. I was thinking I could print lsload to file then determine from the file. But I think you might have a more elegant solution.\r\n\r\nRegards\r\n\r\nAndrew"}}