We had a problem on a server df would hang and we knew that a cifs / samba share died and recovered. Trying unmount / with any parameters -l -f failed. Experience and google told us we need to reboot. This is a remote server and we know the shutdown hangs on going down so…
Year: 2013
Listing SIDs in Windows
In windows (again I know …. ) sometimes you get reference to removed users ( and sometimes not so removed) in mmc and secpol looking like this : S-1-5-21-123456789-3881959548-123456789-500 To check the SIDs of users for some obscure bug like I had today use: wmic useraccount get name,sid That’s it .. ( ofcourse you can…
Check if Windows Drive exists
In windows (yes I know) you can check if a drive exists by using IF EXIST E:\NUL echo yep it does .. that’s it . nJoy 😉
Create a modal pop-up in linux
zenity –info –text ‘You alert message’ This works on ubuntu and mint .. YMMV Simple nJoy 😉
Querying network card information and status
Great tool for checking ethernet NIC information in linux: ethtool In ubuntu you might need to install it like so : sudo apt-get install ethtool The tool is easy to use: Use ifconfig -a to list nics then root@wo1:~# ethtool p4p1 Settings for p4p1: Supported ports: [ TP ] …
Vmware Client Automating connections
This is a hint from Andrew Thanks.. C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe -i yes -s 10.21.68.8 -u root -p password Works ! In a batch: start “VMLauncher” /D”C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\” VpxClient.exe -i yes -s 10.21.68.8 -u root -p password” Thanks nJoy 😉
Convert DEB to RPM or RPM to DEB Package
You can convert DEB file to RPM package and RPM to DEB package using alien command, if you have a *.rpm file that you want to install on a Debian or Ubuntu. Convert RPM to DEB Install alien command on Ubuntu as mentioned here: # sudo apt-get install alien Now, use alien command to convert…
Sysadmin as a Job
So .. Today I got a question asked to me : ” why did you leave programming to become a sysadmin? ” This came as a surprise question from a new friend I have. And it got me thinking… Why sysadmin ?
Restarting shpinx for kaltura
Common problem with kaltura.. Common solution … pkill searchd /opt/kaltura/bin/sphinx/searchd -c /opt/kaltura/app/configurations/sphinx/kaltura.conf nJoy 😉
.Net Restart an ASP.NET application programmatically without editing the web.config
Windows oddly.. but a good friend found this it’s on her site: http://rochcass.wordpress.com/2013/03/28/restart-an-asp-net-application-programmatically-without-editing-the-web-config/ to quote: Several times I would be working on a site and some data would not change due to session variables or the .NET cache. This can’t be eliminated by clearing the browser cache but would need the whole ASP.NET application to…