+sub syslog_debug {
+ my $destination_ip = shift;
+ my $bcast = shift;
+
+ $reqstr='<?xml version="1.0"?><?RMCXML version="1.0"?><RMCSEQ><REQ CMD="dbgmsglancfg"><IP>'.${destination_ip}.'</IP><BCAST>'.${bcast}.'</BCAST><STORE>FALSE</STORE></REQ></RMCSEQ>';
+ $res = _req($reqstr);
+ if ($res->{RESP}->{RC} ne '0x0') {
+ print "FAILED:".$res->{RESP}->{RC}."\n";
+ return;
+ }
+
+ $reqstr='<?XML version="1.0"?><?RMCXML version="1.0"?><RMCSEQ><REQ CMD="dbgmsgcfg"><ON>TRUE</ON><CHANNELMASK>0x0</CHANNELMASK><MMASK>0x0</MMASK><STORE>FALSE</STORE></REQ></RMCSEQ>';
+ $res = _req($reqstr);
+ if ($res->{RESP}->{RC} ne '0x0') {
+ print "FAILED:".$res->{RESP}->{RC}."\n";
+ return;
+ }
+
+ print "Debug messages will be sent to ${destination_ip} (broadcast: ${bcast})\n";
+}
+