sysadmin

Delayed Write errors

不问归期 提交于 2019-12-14 02:36:53
问题 For the past few months, we've been losing data to a Delayed Write errors. I've experienced the error with both custom code and shrink-wrap applications. For example, the error message below came from Visual Studio 2008 on building a solution Windows - Delayed Write Failed : Windows was unable to save all the data for the file \Vital\Source\Other\OCHSHP\Done07\LHFTInstaller\Release\LHFAI.CAB. The data has been lost. This error may be caused by a failure of your computer hardware or network

Programmatical manipulation of Windows Local Security Policy

大城市里の小女人 提交于 2019-12-13 22:56:43
问题 I am looking for a method to access and modify local group policy settings in a PC programatically. For example, if I want to check / modify a value for a setting "Computer Configuration\Windows Settings\Security Settings\Local Policies\Audit Policy\Audit Logon Events" (Path taken from gpedit), I should be able to query it over a command line or set a value to it without the gpedit or any other native GUI interface. Possible methods that I could think that might solve this problem were either

How can I populate HTML table numbered rows based on whether they match row number?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 19:15:02
问题 So, I asked this question earlier this week, and @newfurniturey helped me out, but now I have a new problem: I'd like to be able to put devices in that span more than one U (hence, the usize column in the devices db table) - some devices can span take up half a cabinet. Also, I'd like to be able to mark devices as being in the front or rear of the cabinet, but that should be simple enough for me to figure out. Here's the working code (see old question for db setup) for just 1U devices:

How can I kill all shells in Unix at once?

独自空忆成欢 提交于 2019-12-13 16:05:21
问题 My Mac becomes slow over time. The reason is the huge amount of my shells, such as Bashes and Fishes. Each shell has different PID. Killing shells one by one is too cumbersome. How can I kill them at once? 回答1: Try 'killall bash' or 'killall -9 bash' if they resist that. 回答2: The killall command can kill all processes with a given name: killall bash 回答3: As per other answers, the usual command is killall . Note though that on some versions of UNIX (e.g. DEC Unix) this command literally kills

PHP MYSQL - Populate HTML table numbered rows based on whether they match row number

两盒软妹~` 提交于 2019-12-13 14:12:27
问题 So, basically I'm trying to make a datacenter cab diagram. We have an excel spreadsheet, but this is not easy to update, nor easily searchable. I have three tables in a MySQL DB; the db is: racks, the tables are: cabinets, devices, & datacenters - each row in each of the tables represents what it is. The cabinet table has a column that designates how tall it is in U (some cabinets in some datacenters are taller than others). So, when the php draws a cabinet, it draws the cabinet in the

Quick way to find if a port is open in all Local Network using Linux

谁说我不能喝 提交于 2019-12-13 06:27:19
问题 From a bash script how can I quickly find out whether a port 80 is open/listening on a server. On all workstations is opened daemon, but sometimes it fall, how i can check all files from file if port is open, i found a way to use nc -zw3 10.101.0.13 80 && echo "opened" || echo "closed" but how to use it in bulk from a file, my writed file look like: 10.101.0.13; 3333 10.101.0.15; 3334 10.101.0.17; 4143 10.101.0.21; 1445 10.101.0.27; 2443 10.101.0.31; 2445 10.101.0.47; 3443 10.101.0.61; 3445 I

How i say the interpreter version for wsgi apache

爷,独闯天下 提交于 2019-12-13 02:25:43
问题 In debian recently change de default version of python from 2.5 to 2.6 but i need 2.5, how i can configure apache and/or wsgi script to say it use pythons2.5 and not python default? 回答1: You must install mod_wsgi package binary compiled against Python 2.5, or compile mod_wsgi from source code yourself against the Python 2.5 version. See notes about --with-python option in: http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Configuring_The_Source_Code 回答2: You'll need to recompile

Centos cgconfig fails to start

牧云@^-^@ 提交于 2019-12-12 10:24:13
问题 I need docker installed on one of my servers, and whenever I try to start the docker service, it fails because of cgconfig. Cgconfig throws the following error: Starting cgconfig service: Error: cannot mount cpu to /cgroup/cpu: No such file or directory /sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d [FAILED] I'm running CentOS 6.5 Final with the following /etc/cgconfig.conf file: mount { cpuset = /cgroup

How can I run an OpenGL application installed on a linux machine from my windows machine?

蹲街弑〆低调 提交于 2019-12-12 07:38:10
问题 In the spirit of being helpful, this is a problem I had and solved, so I will answer the question here. Problem I have: An application that has to be installed on on Redhat or SuSE enterprise. It has huge system requirements and requires OpenGL. It is part of a suite of tools that need to operate together on one machine. This application is used for a time intensive task in terms of man hours. I don't want to sit in the server room working on this application. So, the question came up... how

run a script when a new veth interface is added

允我心安 提交于 2019-12-10 13:06:32
问题 Docker creates a veth interface connected to a bridge ( docker0 ) for each of the containers it create. http://docs.docker.io/use/networking/ I want to limit the bandwidth these new veth interfaces have. I found a way to do this with wondershaper. However I want to automate this. Is there a way to have a hook that runs a script every time a new veth interface is attached? I have looked into adding scripts in /etc/network/if-up.d/ , but they do not run when a veth is added only during boot.