Skip to content

Instantly share code, notes, and snippets.

@jorisbontje
Created May 27, 2012 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jorisbontje/2811226 to your computer and use it in GitHub Desktop.
Save jorisbontje/2811226 to your computer and use it in GitHub Desktop.
Export the Cloudera Manager configuration
#!/bin/bash
USERNAME=admin
PASSWORD=admin
SCM_URL=http://localhost:7180
COOKIES_FILE=cookies.txt
EXPORT_FILE=export.txt
wget -q --post-data="j_username=${USERNAME}&j_password=${PASSWORD}" --save-cookies ${COOKIES_FILE} --keep-session-cookies -O /dev/null ${SCM_URL}/j_spring_security_check
wget -q -O ${EXPORT_FILE} --load-cookies ${COOKIES_FILE} ${SCM_URL}/cmf/exportCLI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment