<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=875503716-18042007>I multiply the target by -1 to graph RSSI on our Trango
gear. Keeps the same number and makes it positive for
graphing....</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 158px; COLOR: #000080; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 16px"
scrollAmount=25 scrollDelay=1 behavior=slide loop=1 height=4 color="#FFFFFF"
size="3"><B>Steve Swords</B></MARQUEE></DIV>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 227px; COLOR: #000080; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 19px"
scrollAmount=24 scrollDelay=2 behavior=slide loop=1 color="#000000"
size="3"><B>unWired Broadband, Inc.</B></MARQUEE><BR>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 215px; COLOR: #000080; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 16px"
scrollAmount=23 scrollDelay=3 behavior=slide height=4 color="#000000"
size="3"><A
href="http://www.unwiredbb.com/"><B>http://www.unwiredbb.com</B></A></MARQUEE><BR>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 223px; COLOR: #000080; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 16px"
scrollAmount=22 scrollDelay=4 behavior=slide loop=1 height=16 color="#FFFFFF"
size="3"><B><MAILTO="STEVE@UNWIREDBB.COM">steve@unwiredbb.com</A></B></MARQUEE><BR>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 181px; COLOR: #606060; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 16px"
scrollAmount=21 scrollDelay=5 behavior=slide loop=1 height=4 color="#FFFFFF"
size="3">364 W. Fallbrook Ste. 102</MARQUEE><BR>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 130px; COLOR: #606060; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 15px"
scrollAmount=20 scrollDelay=6 behavior=slide loop=1 height=4 color="#FFFFFF"
size="3">Fresno, Ca 93711</MARQUEE><BR>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 164px; COLOR: #606060; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 15px"
scrollAmount=19 scrollDelay=7 behavior=slide loop=1 height=4 color="#FFFFFF"
size="3">(559) 261-4444 ext 502</MARQUEE><BR>
<MARQUEE
style="FONT-SIZE: 10pt; WIDTH: 177px; COLOR: #606060; FONT-STYLE: italic; FONT-FAMILY: Verdana; HEIGHT: 15px"
scrollAmount=18 scrollDelay=8 behavior=slide loop=1 height=4 color="#FFFFFF"
size="3">(559) 261-4445 (Fax)</MARQUEE>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mrtg-bounces@lists.oetiker.ch
[mailto:mrtg-bounces@lists.oetiker.ch] <B>On Behalf Of </B>Craig
Metzer<BR><B>Sent:</B> Wednesday, April 18, 2007 8:53 AM<BR><B>To:</B>
mrtg@lists.oetiker.ch<BR><B>Subject:</B> [mrtg] Problem with Negative
Numbers<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV class=RTE><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Im trying to
poll a satellite modem for Rx Signal Level.<SPAN
style="mso-spacerun: yes"> </SPAN>The modem returns a negative integer ten
times the level (ex. -575 indicates the level is -57.5 dBm).<SPAN
style="mso-spacerun: yes"> </SPAN>Ive configured a conversion function so
I can log the value returned by snmpget and compare it to the value in the log
file.<SPAN style="mso-spacerun: yes"> </SPAN>It appears that MRTG is not
recognizing the number as negative.<SPAN style="mso-spacerun: yes">
</SPAN>It appears it is not recognizing the binary 1 MSD as a negative
sign.<o:p></o:p></SPAN></DIV>
<DIV class=RTE>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>=========== </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Config file:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">ConversionCode:
functs.pl<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Target[my-pub-sat-01-rsl]:
.1.3.6.1.4.1.6247.28.1.3.3.4.0&.1.3.6.1.4.1.6247.28.1.3.3.4.0:myROcs@my-pub-sat-01.domain.gov|neg_int<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">==========</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Functs.pl:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">sub neg_int {<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="mso-spacerun: yes"> </SPAN>my $n =
shift;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="mso-spacerun: yes"> </SPAN>open FH, ">>
rx_lvl.log";<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">#<SPAN
style="mso-spacerun: yes"> </SPAN>my $o = (2^31 - $n) /
10;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="mso-spacerun: yes"> </SPAN>my $o = $n /
10;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="mso-spacerun: yes"> </SPAN>print FH localtime(time) . "
-> IN: $n\tOUT: $o\n";<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="mso-spacerun: yes"> </SPAN>close
FH;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="mso-spacerun: yes"> </SPAN>return
$o;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>=========== </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">Logs:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">$head
my-pub-sat-01-rsl.log<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1176910486 2147483590
2147483590<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1176910486 0 0 0
0<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1176910186 0 0 0
0<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1176909900 0 0 0
0<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1176909600 0 0 0
0<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1176909300 0 0 0
0<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1176909000 0 0 0
0<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">$ cat
rx_lvl.log<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Wed Apr 18 16:29:46 2007 -> IN:
-578<SPAN style="mso-spacerun: yes"> </SPAN>OUT:
-57.8<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Wed Apr 18 16:29:46 2007 -> IN:
-578<SPAN style="mso-spacerun: yes"> </SPAN>OUT:
-57.8<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Wed Apr 18 16:34:46 2007 -> IN:
-578<SPAN style="mso-spacerun: yes"> </SPAN>OUT:
-57.8<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Wed Apr 18 16:34:46 2007 -> IN:
-578<SPAN style="mso-spacerun: yes"> </SPAN>OUT:
-57.8<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></P></DIV></DIV><BR
clear=all>
<HR>
<A href="http://g.msn.com/8HMAENUS/2743??PS=47575" target=_top>Dont quit your
job Take Classes Online and Earn your Degree in 1 year. Start Today!</A>
</BODY></HTML>