Hi All, I am pretty new to unix type languages. At work we have a server room with about 50 windows computers in one system and 50 in a unix system. We sometimes have power outages and I don't like the power slam. I wrote a windows batch file using sysinternals help to shutdown the windows computers. I am trying to write one for the unix servers. I started by using vi editor. I remember a little from school. Anyhoo, I start from one of the computers (I use ACC36 because that is where my KVM is. all are names ACC###)ACC36 and
to get to ACC30. Then my next line is
this is the shutdown command.
My next command is to get back to ACC36 before the shutdown is
Well, that works, but when I repeat the commands in the script for the other ACC's, it never goes past the first return to ACC36. After I write and save it with :wq , I then
Then to execute I go
What am I doing wrong? Any help would be appreciated.
I need a shell script for OS X, one that can find IP addresses of machines connected to my LAN, get the names of the computer associated with those addresses, then display them like so in a list: "Bob's L33T Boxx: #.#.#.#" Something like the network scanner in Apple Remote Desktop is what I'm... (1 Reply)
Hi
I have a mix of solaris 8,9 & 10. I need to have our 6 Solaris servers shutdown buy a script that will be executed by APC network Shutdown software
Im really not sure how I would write a script to shut them down and the following processes?
the processes are
portmapper
seq
seq_api... (1 Reply)
i really dont know any other way to put it besides that Ubuntu 8.04, that i just installed on my computer hangs when it shuts down. the bar depletes the orange like it should, but it never actually shuts down.
anyone know whats going on? (3 Replies)
Hello all.
I have built a cluster of 9 Macs for computational chemistry and I need a shell script that I can use from one computer to all the rest to shutdown.
I have modified all of the Macs so that there is pass-wordless ssh. As well, I have modified each "visudo" file on each machine by... (1 Reply)
on solaris 8 i edited file rc0 in /sbin at last line
ex.
/sbin/sync; /sbin/sync; /sbin/sync
# Unmount file systems. /usr, /var, /var/adm, /var/run are not unmounted by
# umountall because they are mounted by rcS (for single user mode) rather than
# mountall. If this is changed,... (1 Reply)
#!/bin/bash
for ((n=0 ; n < 254 ; n+=1))
do
ip=192.168.0.$n
if ping -c 1 -w 1 $ip > /dev/null 2> /dev/null >> /etc/logping.txt; then
echo "${ip} is up" # output up
# sintax >> /etc/logping.txt log with .txt format
else
echo "${ip} is down" # output... (4 Replies)
I just installed this 11.2 ver and when I tell it to shutdown it takes for ever then just hangs with this just a little bit of that red line left to go, then it just sits there like forever until I get tired of looking at it then force a shutdown by holding my power button down until my laptop... (8 Replies)
Discussion started by: userx-bw
8 Replies
LEARN ABOUT NETBSD
pmu
PMU(4) BSD Kernel Interfaces Manual PMU(4)NAME
pmu -- support for Power Management Units found in all Apple laptops and some desktop Power Macintosh computers
SYNOPSIS
pmu* at obio?
nadb* at pmu?
battery* at pmu?
smartbat* at pmu?
DESCRIPTION
The pmu driver provides support for the Power Management Unit found in Apple laptops and some desktop Power Macintosh computers. Functions
controlled by the PMU include the real time clock, ADB, power, batteries, on some laptops like the PowerBook 3400c and similar machines it
also controls hotkeys and display brightness, on others it provides an iic(9) bus and on some it controls CPU speed. On many older machines
it also provides access to some non-volatile memory and thermal sensors. Not all those features are present on all machines, for instance
Power Macintosh G4 and later machines don't have ADB, many more recent laptops have display brightness and backlight control built into the
graphics controller instead of the PMU, only a few older PowerBooks use the PMU for CPU speed control and newer machines use a different way
to access non-volatile memory. However, all known PMUs so far provide a real time clock and power control.
Notes by model
Real time clock and power control are present and supported on all machines that can run NetBSD/macppc, ADB is supported when present.
PowerBook 2400, 3400c, and 3500
Battery status and thermal sensors found on the mainboard and in the battery pack are supported by the battery(4) driver, val-
ues can be read via envsys(4). Hotkeys for brightness control are supported, CPU speed control and parameter RAM are present
but unsupported.
Power Macintosh G4
ADB is not present, iic(9) is present but unsupported.
SEE ALSO battery(4), cuda(4), nadb(4), nvram(4), obio(4), iic(9)BUGS
Some features are currently unsupported, like the iic(9) bus, access to parameter RAM and CPU speed control.
BSD May 14, 2007 BSD