If you don't manually enter the magic packet into /dev/udp each time you want to wake up a machine, you're going to have to install something - whether that's a script your wrote or something somebody else wrote.
Even then, some machines that purport to support wake-on-lan are pretty crappy about it. You probably won't have any problems from enterprise-grade vendors like IBM, Sun/Oracle, or HP, but anything under that level could be problematic. I have a supposedly enterprise-grade Supermicro server that will only wake-on-lan after the OS boots and sets the proper flags in the ethernet interfaces. I can then shut it down and restart it with a magic packet. But if that server ever loses power the only way to restart it is to physically press the power button.
You are all, of course, correct in saying that there is no ip address to aim at if the machine is dead.
A magic packet generator (MPG) takes a MAC address as input and this is why the target machine must have BIOS support for wake-on-lan. The BIOS has the network adapter powered, even though the machine is off, to listen for a magic packet carrying that machines MAC address. If that is received, the machine powers up.
Although you don't want to install software most magic packet generators are a single executable, many of which will take the target MAC address as a command line argument.
I haven't looked for a Solaris MPG. First question is are we talking SPARC or X86?
---------- Post updated at 07:47 PM ---------- Previous update was at 07:27 PM ----------
Sorry, I am an idiot. You've already said that it's SPARC.
ATM, not sure if perl is installed, and whether it has: 'use Socket; use Getopt::Std;'
I don't need portable solution. Its just for one specific PC and SPARC. packet can be 'crafted' on Linux.
ATM, not sure if perl is installed, and whether it has: 'use Socket; use Getopt::Std;'
I don't need portable solution. Its just for one specific PC and SPARC. packet can be 'crafted' on Linux.
If you looked, that source tarball I posted the link to is for a Fedora package.
You might want to try something like "yum install wol"....
I've tried that perl script 'wakeonlan' and it works beautifully on Debian (even without sudo). however, on Solaris it doesn't:
have to admit, I didn't use 'make' on either OS. simply started script.
the perl we got on Solaris is rather old, though.
@achenle
can that Fedora package be 'crosscompiled' for SPARC Solaris on Debian?
at this point, I'd rather use perl.
been using it regularly for other stuff on Debian anyway, and like it.
I have problem with oracle solaris 10 running on oracle sparc T4-2 server.
Os information: 5.10 Generic_150400-03 sun4v sparc sun4v
Output from tcpstat.d script
TCP bytes: out outRetrans in inDup inUnorder
6833763 7300 98884 0... (2 Replies)
Exercise:
Protection of WEB and DNS servers using the context-free rules for packet filtering:
- Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns.
- Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Exercise:
Protection of WEB and DNS servers using the context-free rules for packet filtering:
- Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns.
- Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Hi!
I'm writing an application (using BSD sockets on a Linux host) which communicates over TCP/IP with an embedded device. This embedded device has an old and real slow integrated circuit (Epson S1S6000) which handles all of the TCP/IP communication for it.
Problem is, this circuit (S1S6000)... (7 Replies)
Hi, wondering if anyone can suggest a tool to me that will let me either cut & paste hex or type it in for packet decoding.
I want to be able to decode a packet as done with tcpdump or wireshark, but I want to be able to manually input the hex myself. (2 Replies)
Hi all,
I need to change the source port number of an outgoing TCP packet. First I have to bind the socket to a particular port(suppose 9001) but when I send the TCP packet I want to change the source port number lets say to 9002 still letting the socket to be bound to the same old port (9001).... (0 Replies)
Hello,
I'm having an issue with TCP sockets.
When the TCP connection is terminated on one end, TCP packet with RST flag set is being sent to the sender. All the packets sent so far were carrying the DSCP 'AF21' set by me. But packet with RST flag is carrying DSCP '0'.
Is this expected or... (0 Replies)