The ADSL2+ User Forum  

Go Back   The ADSL2+ User Forum > Hardware Forums > Be & O2 Box Chat

Be & O2 Box Chat For technical discussion of the Be/O2 Box (585/716/780)

Reply
 
Thread Tools Display Modes
  #1  
Old 24th March 2006
yesyes yesyes is offline
Moderator
Contributor
 
Join Date: Oct 2005
Location: Maidenhead
Posts: 587
Default useful CLI commands for BeBox

I think it's a good idea to list a few useful CLI commands for our lovely BeBox [img]/forum/emoticons/lol.gif[/img]

here are the ones I collected so far:



#These 3 make your bebox poll a group of NTP servers to keep the time accurate

sntp add name=uk.pool.ntp.org version=3
sntp config poll=60 pollpresync=60
sntp config state=enabled



#This one corrects the grouping operator and decimal place symbol for the en_GB locale.

system locale dec_symbol=. group_symbol=,


#enable ping responder:

service system ifadd name=PING_RESPONDER group=wan


#disable telnet , HTTPs and FTP on WAN (close ports)

service system ifdelete name=TELNET group=wan
service system ifdelete name=FTP group=wan
service system ifdelete name=HTTPs group=wan



#enable SNMP (e.g. for PRTG Traffic Grapher)

service system modify name=SNMP_AGENT state=enabled
snmp community add securityname=RWCommunity communityname=public



#enable nat loopback (access external IP from inside):

ip config natloopback=enabled


#fix against TCP timeouts

firewall config tcpchecks none


#disable DHCP server on LAN side (thanks Zadkiel)

dhcp server config state=disabled


Don't forget this command at the end to permanently save your settings if everything works as expected:
(otherwise all new settings are lost after the next restart)

saveall



yesyes (not a command ... [img]/forum/emoticons/lol.gif[/img] )

Post Edited (yesyes) : 24/09/2006 21:26:09 GMT
Reply With Quote
  #2  
Old 22nd April 2006
purvex purvex is offline
Junior Member
Newbie
 
Join Date: Apr 2006
Posts: 3
Default

Hi

I tried the snmp commands on the BeBox (speedtouch 716). the snmp service was enabeld however when setting the RWcommunity name to public, it shows the community name to _DEV_XXXXX (some 16 digit hexnumber) and gives the follwing message:

No priviledge to set read-write SNMP community name

when I run the PRTG I get the message:

Sorry no MIB2 compatible ports were found on the device

I will be olbliged for any ideas, or tips on how to overcome this

Thanks
Reply With Quote
  #3  
Old 23rd April 2006
DLMatthews DLMatthews is offline
Administrator
Contributor
 
Join Date: Nov 2005
Posts: 499
Default

Use the ROCommunity instead. The newer firmwares don't appear to allow the use of the Read-Write SNMP.

DLMatthews
LNSTF Exchange Status Checker</font> SNR,Att,Time
Un limited</font> 24(17.5)Mbps/1.3Mbps 6, 22, 0yr
ex-Bulldog</font> 8Mbps/512Kbps 13, 16, 2mth
ex-plus</font>net</font> 2Mbps/256Kbps 30, 20, 1yr
ex-Virgin.net</font> 512Kbps, 5yr</font>
Reply With Quote
  #4  
Old 23rd April 2006
purvex purvex is offline
Junior Member
Newbie
 
Join Date: Apr 2006
Posts: 3
Default

Thanks DLMatthews, I have done that and it then I get the PRTG errors.

My previus router had SNMP monitorable ports, giving both IN and OUT traffic graphs per sensor.

When I try the 'snmp walk' CLI on speedtouch I get nearly a hundred OIDs of VB_gauge and VB_integer types with the last one being

VB_integer .1.3.6.1.2.1.11.30.0 1
noSuchName
End of walk, no more objects
{Administrator}[snmp]=>

I don't exatly know what the OID's represent and which one if any is queryable

I will be grateful if any one can tell which OID resprent the DSL port and each of the Ethernet ports

Thanks
Regards
Reply With Quote
  #5  
Old 24th April 2006
DrPizza DrPizza is offline
Member
Contributor
 
Join Date: Oct 2005
Posts: 275
Default

http://www.beforum.co.uk/forum/default.aspx?f=5&m=6302
Reply With Quote
  #6  
Old 25th April 2006
purvex purvex is offline
Junior Member
Newbie
 
Join Date: Apr 2006
Posts: 3
Default

Thanks

I have tried the oid's - I get a steady value for the .10.501 - should I take the delta or the absolute value.

Also is there a way to get two channels per sensor, for ethernet ports?

Regards
Reply With Quote
  #7  
Old 24th May 2006
DLMatthews DLMatthews is offline
Administrator
Contributor
 
Join Date: Nov 2005
Posts: 499
Default

<u>Fix for slow downloads caused by interception checks</u> (only needed if using Parental Control)

:dsd config State=disabled

DLMatthews
LNSTF Exchange Status Checker</font> SNR,Att,Time
Un limited</font> 24(17.5)Mbps/1.3Mbps 6, 22, 0yr
ex-Bulldog</font> 8Mbps/512Kbps 13, 16, 2mth
ex-plus</font>net</font> 2Mbps/256Kbps 30, 20, 1yr
ex-Virgin.net</font> 512Kbps, 5yr</font>
Reply With Quote
  #8  
Old 25th May 2006
DLMatthews DLMatthews is offline
Administrator
Contributor
 
Join Date: Nov 2005
Posts: 499
Default

<u>Setting Different DNS Server Addresses within the Router</u> (if Be*'s DNS servers are too slow, and you would rather not reconfigure each of your PCs)

Flushing DNS Servers assigned by DHCP (and any you have previously added manually):-
:dns server route flush

Setting Primary & Secondary DNS servers:-
:dns server route add dns=[Insert Primary DNS Server Address here] metric=1 intf=RoutedEthoA
:dns server route add dns=[Insert Secondary DNS Server Address here] metric=1 intf=RoutedEthoA


When the router contacts DHCP again, the DNS addresses allocated will be below those you have added above (so your choice of DNS will be used first - if both your DNS servers are offline, then it should attempt to use the Be* DNS).


To view the DNS servers:-
:dns server route list

DLMatthews
LNSTF Exchange Status Checker</font> SNR,Att,Time
Un limited</font> 24(17.5)Mbps/1.3Mbps 6, 22, 0yr
ex-Bulldog</font> 8Mbps/512Kbps 13, 16, 2mth
ex-plus</font>net</font> 2Mbps/256Kbps 30, 20, 1yr
ex-Virgin.net</font> 512Kbps, 5yr</font>

Post Edited (DLMatthews) : 25/05/2006 11:51:37 GMT
Reply With Quote
  #9  
Old 25th May 2006
Irksome's Avatar
Irksome Irksome is offline
Administrator
Contributor
 
Join Date: Oct 2005
Location: London
Posts: 3,812
Default

Should the metric not be 1 2 etc - presumably you can add as many DNS servers as you want?

Irksome
Forum Administrator
IT at Home
__________________
Irksome | Forum Adminstrator | IT at Home | IT at Work |Be & O2 for Dummies

Reply With Quote
  #10  
Old 25th May 2006
DLMatthews DLMatthews is offline
Administrator
Contributor
 
Join Date: Nov 2005
Posts: 499
Default

Quote:
Irksome said...
Should the metric not be 1 2 etc - presumably you can add as many DNS servers as you want?
The DHCP assigned DNS servers (both primary & secondary) are metric 1 (as defined in dhcp client ifconfig). By flushing the existing entries (which are both metric 1), and adding your own two servers, in the order of preference (still using metric 1), then the router uses the addresses in the order they are added.

Lets say you had 2 DNS servers entered with metric 1, and then you renew the DHCP and get 2 more DNS servers with metric 1; it will use them in the order listed. Then, say you want to add a new super-duper DNS server as the primary whilst keeping the existing entries as back-ups, then you could enter this as metric 0. If I added my two DNS servers as metric 1 & metric 2, then when DHCP assigned the 2 Be* servers with metric 1, it would put my secondary DNS back into 4th in the list (unless I ran dhcp client ifrelease intf=RoutedEthoA, dhcp client ifconfig intf=RoutedEthoA dns=disabled, dhcp client ifrenew intf=RoutedEthoA - this would stop the router asking DHCP for DNS allocation)

To show which DNS servers are actually being used as primary & secondary, you can check on the web interface.

DLMatthews
LNSTF Exchange Status Checker</font> SNR,Att,Time
Un limited</font> 24(17.5)Mbps/1.3Mbps 6, 22, 0yr
ex-Bulldog</font> 8Mbps/512Kbps 13, 16, 2mth
ex-plus</font>net</font> 2Mbps/256Kbps 30, 20, 1yr
ex-Virgin.net</font> 512Kbps, 5yr</font>

Post Edited (DLMatthews) : 25/05/2006 13:13:37 GMT
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bebox keeps lossing saved sip account and anyone help with the cli commands leeontop@bluebottle.com Telephony 2 12th August 2007 01:40 PM
CLS Commands for closing Ports BenH Be Discussion 2 7th September 2006 07:48 PM
Need help with bebox commands for version 6 firmware smsmasters Be & O2 Box Chat 1 27th June 2006 01:20 PM


All times are GMT. The time now is 01:42 AM.


Powered by IT at Work
All contents are copyright IT at Home Ltd 2008