WakeOnLan, tcp packet


 
Thread Tools Search this Thread
Operating Systems Solaris WakeOnLan, tcp packet
# 8  
Old 09-26-2014
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.
This User Gave Thanks to achenle For This Post:
# 9  
Old 09-26-2014
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.
This User Gave Thanks to hicksd8 For This Post:
# 10  
Old 09-26-2014
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.
# 11  
Old 09-26-2014
If you have perl, the problem is solved. Perhaps you could be convinced to check?

I understand your fear of perl requirement madness, but those modules are all standard Perl, nothing weird.
This User Gave Thanks to Corona688 For This Post:
# 12  
Old 09-26-2014
Quote:
Originally Posted by orange47
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"....
# 13  
Old 10-02-2014
(sorry for the delay, been busy)

I've tried that perl script 'wakeonlan' and it works beautifully on Debian (even without sudo). however, on Solaris it doesn't:
Code:
Use of uninitialized value in subroutine entry at /export/home/user/bin/wakeonlan line 72. 
Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /export/home/user/bin/wakeonlan line 72.

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.
# 14  
Old 10-03-2014
I found this...........

https://launchpad.net/ubuntu/jaunty/...eonlan/0.41-10

I don't know whether it's any use to you but it does say "Sparc binary" and has Perl listed as dependency.

I can't take this further as I'm not a Perl person.

And this.....

Sophie: wol-0:0.7.1-1 sparc

Last edited by hicksd8; 10-03-2014 at 11:46 AM..
This User Gave Thanks to hicksd8 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

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)
Discussion started by: insatiable1610
2 Replies

2. AIX

Packet loss coming with big packet size ping

(5 Replies)
Discussion started by: Vishal_dba
5 Replies

3. Homework & Coursework Questions

filter packet

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)
Discussion started by: numeracy
1 Replies

4. Cybersecurity

filter packet

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)
Discussion started by: numeracy
1 Replies

5. IP Networking

TCP Packet size

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)
Discussion started by: olle
7 Replies

6. IP Networking

Packet decoding

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)
Discussion started by: Breakology
2 Replies

7. Programming

packet capture

can anyone tell me how can i capture the packets. i have tried ethernet software to capture them but its not doing what i want it to do it (1 Reply)
Discussion started by: dazdseg
1 Replies

8. Programming

Changing source port number of a TCP client packet

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)
Discussion started by: anuragrai134
0 Replies

9. IP Networking

TCP packet with RST flag not carrying DSCP

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)
Discussion started by: Solace
0 Replies

10. IP Networking

Seeing IP packet

Hi, Is there any way that i can directly take out the IP packet and see its contents. Waiting for your answer .............. Bye (4 Replies)
Discussion started by: manjunath
4 Replies
Login or Register to Ask a Question