Commands and Scripts for V2 and V3 Routers

Commands and Scripts for V2 and V3 Routers

Commands and Scripts for v2 and v3 Routers USED SYMBOLS Used symbols Danger – important notice, which may have an influence on the user’s safety or the function of the device. Attention – notice on possible problems, which can arise in specific cases. Information, notice – information, which contains useful advice or special interest. Example – example of function, command or script. GPL license Source codes under GPL license are available free of charge by sending an email to: [email protected]. Conel s.r.o., Sokolska 71, 562 04 Usti nad Orlici, Czech Republic Manual issued in CZ, December 11, 2015 i CONTENTS Contents 1 Commands 1 1.1 arp ........................................... 1 1.2 awk .......................................... 2 1.3 brctl .......................................... 3 1.4 cat ........................................... 4 1.5 cd ........................................... 4 1.6 cdmaat ........................................ 5 1.7 cdmapwr ....................................... 5 1.8 chmod ......................................... 5 1.9 conntrack ....................................... 6 1.10 cp ........................................... 8 1.11 curl ........................................... 8 1.12 date .......................................... 9 1.13 defaults ........................................ 9 1.14 df ............................................ 10 1.15 dmesg ......................................... 10 1.16 echo .......................................... 11 1.17 email .......................................... 12 1.18 ethtool ......................................... 12 1.19 find ........................................... 13 1.20 free .......................................... 13 1.21 fwupdate ....................................... 14 1.22 grep .......................................... 15 1.23 gsmat ......................................... 16 1.24 gsmat2 ........................................ 16 1.25 gsminfo ........................................ 16 1.26 gsmpwr ........................................ 17 1.27 gsmpwr2 ....................................... 17 1.28 gsmsms ........................................ 17 1.29 gunzip ......................................... 18 1.30 gzip .......................................... 18 1.31 hwclock ........................................ 19 1.32 ifconfig ......................................... 20 1.33 io ............................................ 21 1.34 ip ............................................ 22 1.35 iptables ........................................ 23 1.36 kill ........................................... 24 1.37 killall .......................................... 24 1.38 led ........................................... 25 ii CONTENTS 1.39 ln ............................................ 25 1.40 logger ......................................... 26 1.41 lpm ........................................... 27 1.42 ls ............................................ 28 1.43 mac .......................................... 29 1.44 mkdir .......................................... 29 1.45 mount ......................................... 30 1.46 mv ........................................... 31 1.47 nc ........................................... 31 1.48 netstat ......................................... 32 1.49 ntpdate ........................................ 32 1.50 openssl ........................................ 33 1.51 passwd ........................................ 34 1.52 pidof .......................................... 34 1.53 ping .......................................... 34 1.54 portd .......................................... 35 1.55 ps ........................................... 35 1.56 pse ........................................... 36 1.57 pwd .......................................... 36 1.58 reboot ......................................... 36 1.59 restore ......................................... 37 1.60 rm ........................................... 37 1.61 rmdir .......................................... 38 1.62 route .......................................... 38 1.63 sed ........................................... 39 1.64 service ......................................... 39 1.65 sleep .......................................... 40 1.66 slog .......................................... 40 1.67 snmptrap ....................................... 41 1.68 status ......................................... 42 1.69 tail ........................................... 43 1.70 tar ........................................... 43 1.71 tcpdump ........................................ 44 1.72 telnet .......................................... 44 1.73 touch .......................................... 45 1.74 traceroute ....................................... 45 1.75 umount ........................................ 46 1.76 vi ............................................ 47 1.77 wget .......................................... 47 1.78 xargs .......................................... 48 2 Examples of scripts 49 2.1 Send SMS ...................................... 49 2.2 SMS command 1 ................................... 49 iii CONTENTS 2.3 SMS command 2 ................................... 50 2.4 Send information email 1 .............................. 51 2.5 Send information SMNP trap 1 ........................... 51 2.6 Send information email 2 .............................. 51 2.7 Send information SMNP trap 2 ........................... 52 2.8 Automatic reboot ................................... 52 2.9 Switch between WAN and PPP ........................... 53 2.10 Add more MAC addresses reservation to DHCP server . 54 iv LIST OF TABLES List of Tables 1 arp options ...................................... 1 2 awk options ...................................... 2 3 brctl commands .................................... 3 4 cat options ...................................... 4 5 cd options ....................................... 4 6 chmod options .................................... 5 7 conntrack comands ................................. 6 8 conntrack tables ................................... 6 9 conntrack options ................................... 6 10 expectation options .................................. 7 11 conntrack and expectation options ......................... 7 12 cp options ....................................... 8 13 date options ...................................... 9 14 df options ....................................... 10 15 dmesg options .................................... 10 16 echo options ..................................... 11 17 email options ..................................... 12 18 find expressions ................................... 13 19 fwupdate options ................................... 14 20 grep options ...................................... 15 21 Description of GSM information ........................... 16 22 gunzip options .................................... 18 23 gzip options ...................................... 18 24 hwclock options .................................... 19 25 ifconfig options .................................... 20 26 io options ....................................... 21 27 ip options ....................................... 22 28 ip objects ....................................... 22 29 kill options ....................................... 24 30 killall options ..................................... 24 31 led options ...................................... 25 32 ln options ....................................... 25 33 logger options ..................................... 26 34 lpm options ...................................... 27 35 ls options ....................................... 28 36 mkdir options ..................................... 29 37 mount flags ...................................... 30 38 mount options ..................................... 30 39 mv options ...................................... 31 40 nc options ....................................... 31 v LIST OF TABLES 41 netstat options .................................... 32 42 ntpdate options .................................... 32 43 pidof options ..................................... 34 44 ping options ...................................... 34 45 portd options ..................................... 35 46 reboot options ..................................... 36 47 rm options ....................................... 37 48 route options ..................................... 38 49 sed options ...................................... 39 50 slog options ...................................... 40 51 snmptrap options ................................... 41 52 status options ..................................... 42 53 tail options ....................................... 43 54 tar options ....................................... 43 55 touch options ..................................... 45 56 traceroute options .................................. 46 57 umount options .................................... 46 58 vi options ....................................... 47 59 wget options ..................................... 47 60 xargs options ..................................... 48 vi 1. COMMANDS 1. Commands 1.1 arp The arp program displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol. Synopsis: arp [-a <hostname>] [-s <hostname> <hw_addr>] [-d <hostname>] [-v] [-n] [-i <if>] [-D <hostname>] [-A ] [-f <filename>] Options: Option Description -a The entries will be displayed in alternate (BSD) style. -s Manually create an ARP

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    62 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us