Scenario: Jenkins with authentication turned on and a user wanting to use Powershell to remotely execute a job
These 2 links provide most of the background and give examples for WGET. Jenkins authentication being managed by Crowd in this scenario
https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API
https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients
Invoke-WebRequest -Uri $url -Headers @{"Authorization" = "Basic "+[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($User+":"+$Password ))}
Friday, July 11, 2014
Tuesday, March 18, 2014
Linux: Checking Disk Space
Scenario: The monitoring system sends an email stating a Linux server is running low on disk space. I often had a hard time figuring out what part of the filesystem was growing and needed attention. I've used this a few times with good success.
cd /path/to/some/where
du -hsx * | sort -rh | head -10
Keep drilling down to find the root cause of the disk space issue.
cd /path/to/some/where
du -hsx * | sort -rh | head -10
Keep drilling down to find the root cause of the disk space issue.
Subscribe to:
Posts (Atom)