Skip to content

Access cloudlab webconsole from commandline (Linux)

arkivm edited this page Aug 12, 2019 · 2 revisions

In firefox


  • Install Cookie quick manager addon for firefox (or any similar addon that supports viewing cookies)

  • Login to cloudlab and view cookies under cloudlab.us tab

    • We need four cookies that would serve as login information
      MyEmailCookie
      NewHashCookie
      NewLoginCookie
      NewMyUidCookie
      
  • flatten the cookies under .www.cloudlab.us as key=value pairs

    MyEmailCookie=login%40email.com; NewHashCookie=zzz; NewMyUidCookie=yyy; NewMyUidCookie=xxx;
    
  • Click console log from clouldlab web interface, wait for a few seconds to get the new url on the tab where console log is loading. It should be in this format https://www.emulab.net/spewconlog.php3?node_id=pc815&key=xyz

In commandline


  • Use curl and pass these cookies to access console log
     curl -s -o console.log --cookie "MyEmailCookie=login%40email.com; NewHashCookie=zzz; NewMyUidCookie=yyy; NewMyUidCookie=xxx;" https://www.emulab.net/spewconlog.php3?node_id=pc815&key=xyz
    

Clone this wiki locally