Difference between revisions of "API-SSH-Management"

From Mupssoft Wiki
Jump to navigation Jump to search
(Created page with "<h1>'''Device Configuration'''</h1> <h2>'''Introduction'''</h2> <p>This section is not a tutorial on configuration different manufacturers. Here you will find the minimum sett...")
 
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h1>'''Device Configuration'''</h1>
+
<h1>'''Management Device'''</h1>
 
<h2>'''Introduction'''</h2>
 
<h2>'''Introduction'''</h2>
<p>This section is not a tutorial on configuration different manufacturers. Here you will find the minimum settings in the CLI (for access from MUPSBOX to devices).</p>
+
<p>Device management via api and (or) ssh. </p>
 +
<p>Management can be globally divided into two parts: group configuration your devices and request-response for reporting your settings.</p>
 +
<p>To send the command:</p>you can select the devices to which you want to send the command:
  
 +
[[File:command1.png|Edit job]]
  
<h2>'''Cisco - IOS v15'''</h2>Minimum* configuration:
 
  
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
+
or use your groups:
  
1.   Router> '''enable'''
+
[[File:command2.png|Edit job]]
  
2.    Router# '''configure terminal'''
 
  
3.    Router(config)# '''interface gigabitethernet''' 0/0
 
  
4.    Router(config-if)# '''ip adress''' 10.9.90.201 255.255.255.0
+
'''Command type:'''
  
5.    Router(config-if)# '''ipv6 address''' 2001:db8:B40:4000::101/64
+
There are several ways to interact with devices (this depends on the specific manufacturer and version of the operating system)
  
6.    Router(config-if)# '''no shutdown'''
+
'''Terminal command''' - send command via SSH
  
7.    Router(config-if)# '''exit'''
+
'''Rsc file''' - send configuration file
  
8.    Router(config)# '''ip route 0.0.0.0 0.0.0.0''' 10.9.90.1
+
'''API command''' - send command via API
  
9.    Router(config)# '''ipv6 route''' ::/0 2001:db8:B40:4000::1
 
  
'''BASIC SSH CONFIGURATION - SUMMARY STEPS'''
+
''if there is no choice, this means that work on SSH''
  
10.    Router(config)# '''ip domain name''' domain.local
+
<h2>'''Cisco - IOS'''</h2>
  
11.    Router(config)# '''hostname''' MBRouter
 
  
12.    MBRouter(config)# '''crypto key generate rsa modulus 1024'''
 
  
13.    MBRouter(config)# '''username''' ''root'' privilege 15 '''secret''' ''PassW0rd''
+
'''<u>SEND CONFIGURATION COMMAND: via SSH</u>'''
  
14.    MBRouter(config)# '''aaa new-model'''
+
Enter the usual CLI command IOS, like as:
  
15.    MBRouter(config)# '''line vty 0 4'''
+
'''show clock'''
  
16.    MBRouter(config-line)# '''transport input ssh'''
+
send multiple commands at once (neded if commands runs on privileged mode)
  
17.    MBRouter(config-line)# '''exit'''
+
in order not to enter a password, you can use a variable: '''#su#''' or '''#privilegeduser#''' (variable it will only work if you specified a password in the equipment settings)
  
'''ADDITIONAL CONFIGURATION - SUMMARY STEPS'''
+
use a separator between commands '''#13''' or '''#/n'''  
  
18.    MBRouter(config)# '''enable secret''' PassW0rd
+
example:
  
19.    MBRouter(config)# '''service password-encryption'''
+
set new hostname on router
  
20.    MBRouter(config)# '''end'''
+
'''enable'''#13#su##13'''configure terminal'''#13'''hostname MBRouter229'''
  
21.    MBRouter# '''copy running-config startup-config'''
+
or
  
 +
'''enable'''#13'''yourpassord'''#13'''configure terminal'''#13'''hostname MBRouter229'''
  
<p></p>
+
create new user
  
<h2>'''Cisco - IOS L2 v12'''</h2>Minimum* configuration:
+
'''enable'''#13#su##13'''configure terminal'''#13'''username mbuser privilege 15 password PassW0rd'''
  
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
 
  
1.    Switch> '''enable'''
 
  
2.    Switch# '''configure terminal'''
+
'''REQUEST-RESPONSE (reporting): via SSH'''
  
3.   Switch(config)# '''interface vlan 1'''
+
Here are some examples.
  
4.    Switch(config-if)# '''ip adress''' 172.17.33.5 255.255.255.0
+
'''show users on router'''
  
5.    Switch(config-if)# '''exit'''
+
enable''#13#su##13''show run | i username
  
6.    Switch(config)# '''ip default-gateway''' 172.17.33.1
+
'''on which router is the user 'man'?'''
  
'''BASIC SSH CONFIGURATION - SUMMARY STEPS'''
+
enable''#13#su##13''show run | i username mb?man priv''#13'' mbcount==1''#13''
  
7.    Switch(config)# '''ip domain name''' domain.local
+
'''on which router is the no user 'man'?'''
  
8.    Switch(config)# '''hostname''' MBSwitch
+
enable''#13#su##13''show run | i username mb?man priv''#13'' mbcount==0''#13''
  
9.    MBSwitch(config)# '''crypto key generate rsa modulus 1024'''
+
'''how many users on the router?'''
  
10.    MBSwitch(config)# '''username''' ''root'' privilege 15 '''secret''' ''PassW0rd''
+
enable''#13#su##13''show run | i username mb?username''#13'' mbcount''#13''
  
11.    MBSwitch(config)# '''aaa new-model'''
+
'''how many users on a router with level 15?'''
  
12.    MBSwitch(config)# '''line vty 0 4'''
+
enable''#13#su##13''show run | i username mb?privilege 15''#13'' mbcount''#13''
  
13.    MBSwitch(config-line)# '''transport input ssh'''
+
'''where no default routes on IPv6 (no use ipv6)?'''
  
14.    MBSwitch(config-line)# '''exit'''
+
show ipv6 route mb?::/0#13 mbcount==1
  
  
'''ADDITIONAL CONFIGURATION - SUMMARY STEPS'''
+
as you understand, you can give any command and indicate what we are looking for
  
15.   MBSwitch(config)# '''enable secret''' PassW0rd
+
<br>
 +
<div id="shbox" style=" border-width:1px; border-color:lightgrey; padding: 2px 5px 2px 10px; min-height:56px; border-style:solid; font-size: 0.9em;">[[File:Icon-warn.png|left|56px|56px]]
 +
<p style="margin-top:10px; margin-left: 56px;"><b style="color:green;">Notice:</b> <b>mbcount</b> - proproetary function mupsbox, gets counts data replies (!re),mbcount= (=x, >x , <x, ==x, =>x, =<x). </p><p style="margin-top:10px; margin-left: 56px;"><b>mb?</b>filed - allows you to build queries where there is no where attribute, mb?(field)</p></div>
 +
<br />
  
16.    MBSwitch(config)# '''service password-encryption'''
 
  
17.    MBSwitch(config)# '''snmp-server community public RO'''
 
  
18.    MBSwitch(config)# '''end'''
 
  
19.    MBSwitch# '''copy running-config startup-config'''
 
  
 +
<h2>'''MikroTik ROS v6'''</h2>
  
  
  
 +
'''<u>SEND CONFIGURATION COMMAND: via SSH</u>'''
  
 +
Enter the usual CLI command RouterOS, like as:
  
<h2>'''Cisco - ASA'''</h2>
+
'''interface bridge add name=bridge1'''
<p>Minimum* configuration. ASA Version 8.2(5):</p>
 
  
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
+
as well as
  
1. ciscoasa> '''enable'''
+
'''in br ad na=bridge1'''
  
2. ciscoasa# '''configure termina'''l
+
send multiple commands at once
  
3. (config)# '''enable password''' ''mtigroup''
+
'''int br ad na=bridge1'''#13'''int bri ad na=bridge2'''
  
4. ciscoasa(config)# '''hostname''' ''MBCiscoasa''
+
use a separator #13 between commands
  
5. MBCiscoasa11(config)# '''interface''' ''gigabitEthernet 0/0''
 
  
6. MBCiscoasa11(config-if)# '''nameif inside'''
 
  
7. MBCiscoasa11(config-if)# '''ip address''' ''172.18.11.11 255.255.255.0''
+
'''<u>SEND CONFIGURATION COMMAND: via API</u>'''
  
8. MBCiscoasa11(config-if)# '''no shutdown'''
+
API closely follows syntax from command line interface (CLI). It can be used to create translated or custom configuration tools to aid ease of use running and managing routers with RouterOS.
  
9. MBCiscoasa11(config-if)# '''exit'''
+
[[File:command3.png|Edit job]]
  
10. MBCiscoasa11(config)# '''route inside''' ''0.0.0.0 0.0.0.0 172.18.11.1''
+
sample a full syntax for API commandsCLI:
  
 +
'''interface bridge add name=bridge1'''
  
 +
API:
  
 +
'''/interface/bridge/add'''
  
 +
'''=name=bridge1'''
  
'''BASIC SSH CONFIGURATION - SUMMARY STEPS'''
+
CLI:
 
11. MBCiscoasa11(config)# '''ssh''' ''172.31.10.0 255.255.255.0'' '''inside'''
 
  
12. MBCiscoasa11(config)# '''username''' ''mupsbox password PassW0rd privilege 15''
+
'''ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade'''  
  
13. MBCiscoasa11(config)# '''aaa authentication ssh console LOCAL'''
+
API:
  
14. MBCiscoasa11(config)# '''write'''
+
'''/ip/firewall/nat/add'''
  
 +
'''=chain=srcnat'''
  
 +
'''=out-interface=ether1'''
  
 +
'''=action=masquerade'''
  
 +
API one line with separator:
  
'''ADDITIONAL CONFIGURATION - SUMMARY STEPS'''
+
'''/ip/firewall/nat/add;=chain=srcnat;=out-interface=ether1;=action=masquerade'''
  
+
''the default separator is ; , but it can be changed in MUPSBOX - Settings ->''
  
<h2>'''MikroTik'''</h2>
 
<p>Minimum configuration for RouterOS V6 (with "zero" configuration)</p><p>'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''</p>
 
  
1. [admin@MikroTik] > '''ip address add address='''''172.17.22.4/24'' '''interface='''''ether1''
+
Example:
  
2. [admin@MikroTik] > '''ip route add gateway='''''172.17.22.1''
+
'''add new user'''
  
3. [admin@MikroTik] > '''ipv6 address add address='''2001:db8:b40:4002::4/64 '''interface='''ether1
+
/user/add
  
4. [admin@MikroTik] > '''ipv6 route add gateway='''2001:db8:b40:4002::1
+
=name=username
  
5. [admin@MikroTik] > '''system identity set name='''MBMikroTik
+
=group=full
  
6. [admin@MBMikroTik] > '''ip service disable telnet,ftp,www,api'''
+
=password=userpassword
  
7. [admin@MBMikroTik] > '''user add name='''mupsbox '''password='''PassW0rd '''group='''full
+
=comment=this is new user
  
8. [admin@MBMikroTik] > '''user remove admin'''<h2>'''DLink DGS'''</h2>
+
'''remove user'''
<p>Minimum* configuration:</p>'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
 
  
1. DGS-1210-28MP/ME:5# '''config ipif System ipaddress''' 172.17.22.2/24
+
/user/remove
  
2. DGS-1210-28MP/ME:5#'''config ipif System ipv6 ipv6address''' 2001:db8:b40:4002::2/64
+
=.id=username
  
3. DGS-1210-28MP/ME:5# '''create iproute default''' 172.17.22.1
+
'''disable all rules in /ip/firewall/filter where chain=input and action=drop'''
  
4. DGS-1210-28MP/ME:5# '''create ipv6route default''' 2001:db8:b40:4002::1
+
/ip/firewall/filter/disable
  
5. DGS-1210-28MP/ME:5# '''enable ssh'''
+
?chain=input
  
6. DGS-1210-28MP/ME:5# '''enable password encryption'''
+
?action=drop
  
7. DGS-1210-28MP/ME:5# '''create account admin''' mupsbox
+
?#&
  
8. DGS-1210-28MP/ME:5# '''save'''
+
mbgetid
  
 +
'''delete all users except mupsbox'''
  
<h2>'''Huawei AR100'''</h2>
+
/user/remove
  
Minimum* configuration:
+
?name=mupsbox
  
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
+
?#!
  
1. <Huawei> '''system-view'''
+
mbgetid
  
2. [Huawei] '''interface''' ''GigabitEthernet 0/0/0''
+
<div id="shbox" style=" border-width:1px; border-color:lightgrey; padding: 2px 5px 2px 10px; min-height:56px; border-style:solid; font-size: 0.9em;">
 +
[[File:Icon-warn.png|left|56px]]
 +
<p style="margin-top:10px; margin-left: 56px;"><b style="color:green;">Notice:</b> <b>mbgetid</b> - proproetary function mupsbox, allows you to combine several commands: perform an action with a preliminary request to get id, execute a print query c .proplist = .id, storing the result in the array and then performing the desired action. </p><p style="margin-top:10px; margin-left: 56px;">'''?#''operations''''' ''- applies operations to the values in the stack. '''<code>!</code>''' character replaces top value with the opposite. '''<code>&</code>''' pops two values and pushes result of logical 'and' operation. '''<code>|</code>''' pops two values and pushes result of logical 'or' operation.'' </p><p style="margin-top:10px; margin-left: 56px;"></p></div>
 +
<br />
  
3. [Huawei-GigabitEthernet0/0/0] '''undo portswitch'''
 
  
4. [Huawei-GigabitEthernet0/0/0] '''ip address''' ''172.17.22.5 255.255.255.0''
 
  
5. [Huawei-GigabitEthernet0/0/0] '''quit'''
+
'''<u>REQUEST-RESPONSE (reporting): via API</u>'''
  
6. [Huawei] '''ip route-static''' '''0.0.0.0 0.0.0.0''' ''172.17.22.1''
+
Using api - you get feedback. This is very important because you will always know if the command was executed successfully. Also, you get the opportunity to build reports using API: request->response. Here are some examples.
  
7. [Huawei] '''save'''
 
  
  
 +
'''on which router is the user 'admin'?'''
  
8. [Huawei] '''aaa'''
+
/user/print
  
9. [Huawei-aaa] '''local-user''' mupsbox '''password cipher''' PassW0rd
+
?name=admin
  
10. [Huawei-aaa] '''local-user''' '''admin privilege level 15'''
+
mbcount==1
  
11. [Huawei-aaa] '''local-user admin service-type ssh'''
+
'''on which router firewall is not configured, for example, rules < 3 ?'''
  
12. [Huawei-aaa] '''quit'''
+
/ip/firewall/filter/print
  
13. [Huawei] '''quit save'''
+
mbcount=<3
  
14. [Huawei] '''stelnet server enable'''
+
'''on which router is dns server 8.8.4.4 configured?'''
  
15. [Huawei] '''save'''
+
/ip/dns/print
  
<h2>'''Huawei Quidway 2000,3000,5000'''</h2>
+
mb?servers=8.8.4.4
  
Minimum* configuration:
+
<br>
 +
<div id="shbox" style=" border-width:1px; border-color:lightgrey; padding: 2px 5px 2px 10px; min-height:56px; border-style:solid; font-size: 0.9em;">[[File:Icon-warn.png|left|56px|56px]]
 +
<p style="margin-top:10px; margin-left: 56px;"><b style="color:green;">Notice:</b> <b>mbcount</b> - proproetary function mupsbox, gets counts data replies (!re),mbcount= (=x, >x , <x, ==x, =>x, =<x). </p><p style="margin-top:10px; margin-left: 56px;"><b>mb?</b>filed - allows you to build queries where there is no where attribute, mb?(field)(=/!=/<>)</p></div>
 +
<br />
  
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
 
  
1. <Quidway> '''system-view'''
 
  
2. [Quidway]'''management-vlan 1'''
 
  
3. [Quidway] '''interface Vlan-interface 1'''
+
<h2>'''Eltex'''</h2>
  
4. [Quidway-Vlan-interface1] '''ip address''' ''172.17.55.7 255.255.255.0''
 
  
5. [[Quidway-Vlan-interface1] '''quit'''
 
  
6. [Quidway] '''ip route-static''' '''0.0.0.0 0.0.0.0''' ''172.17.22.1''
+
'''<u>SEND CONFIGURATION COMMAND: via SSH</u>'''
  
7. [Quidway] '''save'''
+
Enter the usual CLI command, like as:
  
 +
'''show clock'''
  
 +
send multiple commands at once (neded if commands runs on privileged mode)
  
'''BASIC SSH CONFIGURATION - SUMMARY STEPS'''
+
in order not to enter a password, you can use a variable: '''#su#''' or '''#privilegeduser#''' (variable it will only work if you specified a password in the equipment settings)
  
8. [Quidway] '''user-interface vty 0 4'''
+
use a separator between commands '''#13''' or '''#/n'''
  
9. [Quidway-ui-vty0-4] '''authentication-mode scheme'''
+
example:
  
10. [Quidway-ui-vty0-4] '''protocol inbound ssh'''
+
set new hostname on router
  
11. [Quidway] '''local-user''' ''mupsbox''
+
'''configure terminal'''#13'''hostname MBRouter229'''
  
12. [Quidway-luser-mupsbox] '''password simple''' ''PassW0rd''
+
create new user
  
13. [Quidway-luser-mupsbox] '''service-type ssh'''
+
'''configure terminal'''#13'''username mbuser1 privilege 15 password PassW0rd'''
  
14. [Quidway] '''ssh user''' ''mupsbox'' '''authentication-type password'''
 
  
15. [Quidway] '''rsa local-key-pair create'''
 
  
16. [Quidway] '''save'''
+
'''REQUEST-RESPONSE (reporting): via SSH'''
 
  
 +
Here are some examples.
  
 +
'''on which router is the user 'mbuser1'?'''
  
<h2>'''HP Procurve'''</h2>
+
show run #13 mb?mbuser1#13 mbcount==1
 
 
Minimum* configuration:
 
 
 
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. ProCurve Switch 2510-48# '''config'''
 
 
 
2. ProCurve Switch 2510-48(config)# '''hostname''' ''MBHP-2510''
 
 
 
3. MBHP-2510(config)# '''vlan 1'''
 
 
 
4. MBHP-2510(vlan-1)# '''ip address''' ''172.17.44.2/24''
 
 
 
5. MBHP-2510(vlan-1)# '''exit'''
 
 
 
6. MBHP-2510(config)# '''ip default-gateway''' ''172.17.44.1''
 
 
 
 
 
 
 
 
 
 
 
'''BASIC SSH CONFIGURATION - SUMMARY STEPS'''
 
 
 
7. MBHP-2510(config)# '''ip ssh'''
 
 
 
8. MBHP-2510(config)# '''crypto key generate ssh'''
 
 
 
9. MBHP-2510(config)# '''password manager'''
 
 
 
10. MBHP-2510(config)# '''aaa authentication login privilege-mode'''
 
 
 
11. MBHP-2510(config)# '''aaa authentication ssh login tacacs local'''
 
 
 
12. MBHP-2510(config)# '''aaa authentication ssh enable tacacs local'''
 
 
 
13. MBHP-2510(config)# '''write memory'''
 
 
 
 
 
<h2>'''Juniper SRX'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. root@% '''cli'''
 
 
 
2. root> '''configure'''
 
 
 
3. root# '''set system host-name''' ''MBSRX100b''
 
 
 
4. root# <kbd>'''set system root-authentication plain-text-password'''</kbd>
 
 
 
''New password: <var>password</var>''
 
 
 
''Retype new password: <var>password</var>''
 
 
 
5. root# <kbd>'''set system login user''' ''mupsbox'' '''class super-user authentication plain-text-password'''</kbd>
 
 
 
6. root# '''commit'''
 
 
 
 
 
 
 
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
 
 
 
7. root@MBSRX100b#  '''set interfaces''' ''fe-0/0/0'' '''unit 0 family inet address''' <var>172.17.44.4/24</var>
 
 
 
8. root@MBSRX100b# '''set routing-options static route''' '''0.0.0.0/0 next-hop''' 172.17.44.1
 
 
 
9. root@MBSRX100b# '''delete security zones security-zone untrust interfaces''' ''fe-0/0/0''
 
 
 
10. root@MBSRX100b# '''set security zones security-zone internal interfaces''' ''fe-0/0/0'' '''host-inbound-traffic system-services ping'''
 
 
 
11. root@MBSRX100b# '''set security zones security-zone internal interfaces''' ''fe-0/0/0'' '''host-inbound-traffic system-services ssh'''
 
 
 
12. root@MBSRX100b# '''set system services ssh'''
 
 
 
13. root@MBSRX100b# '''set system services ssh root-login allow'''
 
 
 
12. root@MBSRX100b# '''commit'''
 
 
 
 
 
<h2>'''Juniper ES'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. root@% '''cli'''
 
 
 
2. root> '''configure'''
 
 
 
3. root# '''set system host-name''' MBSRX100b
 
 
 
4. root# <kbd>'''set system root-authentication plain-text-password'''</kbd>
 
 
 
''New password: <var>password</var>''
 
 
 
''Retype new password: <var>password</var>''
 
 
 
5. root# <kbd>'''set system login user''' ''mupsbox'' '''class super-user authentication plain-text-password'''</kbd>
 
 
 
6. root# '''commit'''
 
 
 
 
 
 
 
'''BASIC ETHERNET CONFIGURATION - SUMMARY STEPS'''
 
 
 
7. root@MBSRX100b#  delete interface ge-0/0/0 unit 0 family ethernet-switching
 
 
 
8. root@MBSRX100b#  '''set interfaces''' ge-0/0/0 '''unit 0 family inet address''' <var>172.17.44.4/24</var>
 
 
 
9. root@MBSRX100b# '''set routing-options static route''' '''0.0.0.0/0 next-hop''' 172.17.44.1
 
 
 
10. root@MBSRX100b# '''set system services ssh'''
 
 
 
11. root@MBSRX100b# '''set system services ssh connection-limit 10 rate-limit 4'''
 
 
 
12. root@MBSRX100b# '''commit'''
 
 
 
 
 
 
 
<h2>'''Juniper SSG'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. root-> '''set hostname''' ''MBSSG5''
 
 
 
2. MBSSG5-> '''set admin name''' ''mupsbox''
 
 
 
3. MBSSG5-> '''set admin password''' ''PassW0rd''
 
 
 
4. MBSSG5-> <kbd>'''set interface''' ''bgroup0'' '''ip 172.17.44.5/24'''</kbd>
 
 
 
5. MBSSG5-> '''set route''' ''0.0.0.0/0'' '''interface''' ''bgroup0'' '''gateway''' ''172.17.44.1''
 
 
 
6. MBSSG5-> '''save'''
 
 
 
7. MBSSG5-> '''set interface''' ''bgroup0'' '''manage ssh'''
 
 
 
8. MBSSG5-> '''set ssh enable'''
 
 
 
 
 
 
 
 
 
<h2>'''Eltex  MES'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. console> '''enable'''
 
 
 
2. console# '''configure'''
 
 
 
2. console(config)# '''interface vlan 1'''
 
 
 
3. console(config-if)# '''no ip address dhcp'''
 
 
 
4. console(config-if)# '''ip address''' ''172.17.55.4 255.255.255.0''
 
 
 
5. console(config-if)# '''exit'''
 
 
 
6. console(config)# '''ip route''' ''0.0.0.0 0.0.0.0 172.17.55.1''
 
 
 
7. console(config)# '''hostname''' ''MBEltexMES''
 
 
 
8. console(config)# '''ip ssh server'''
 
 
 
9. MBEltexMES(config)# '''username''' ''mupsbox'' ''privilege 15'' '''password''' ''PassW0rd!''
 
 
 
10. MBEltexMES(config)# '''enable password prpassword'''
 
 
 
 
 
 
 
 
 
<h2>'''Zyxel ZyWALL'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. Router> '''enable'''
 
 
 
2. Router# '''configure terminal'''
 
 
 
2. Router(config)# '''interface''' ''ge2''
 
 
 
3. Router(config-if-ge)# '''ip address''' ''172.17.44.7 255.255.255.0''
 
 
 
4. Router(config-if-ge)# '''ip gateway''' ''172.17.44.1''
 
 
 
5. Router(config-if-ge)# '''no shutdown'''
 
 
 
6. Router(config-if-ge)# '''exit'''
 
 
 
7. Router(config)# '''username''' ''mupsbox'' '''password''' ''PassW0rd'' '''user-type''' ''admin''
 
 
 
 
 
 
 
 
 
<h2>'''Qtech QSW'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. QSW-2850-28T-AC> '''enable'''
 
 
 
2. QSW-2850-28T-AC# '''config terminal'''
 
 
 
2. QSW-2850-28T-AC(config)# '''interface vlan 1'''
 
 
 
3. QSW-2850-28T-AC(config-if-vlan1)# '''ip address''' ''172.17.44.8 255.255.255.0''
 
 
 
4. QSW-2850-28T-AC(config-if-vlan1)# '''exit'''
 
 
 
5. QSW-2850-28T-AC(config)# '''ip default-gateway''' ''172.17.44.1''
 
 
 
6. QSW-2850-28T-AC(config)# '''ssh-server enable'''
 
 
 
7. QSW-2850-28T-AC(config)# '''username''' ''mupsbox'' privilege 15 '''password''' ''PassW0rd''
 
 
 
8. QSW-2850-28T-AC(config)# '''exit'''
 
 
 
9. QSW-2850-28T-AC# '''copy running-config startup-config'''
 
 
 
 
 
 
 
 
 
<h2>'''Allied Telesis'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. console# '''config'''
 
 
 
2. console(config)# '''interface vlan 1'''
 
 
 
3. console(config-if)# '''ip address''' ''172.17.55.9 255.255.255.0''
 
 
 
4.console(config-if)# '''exit'''
 
 
 
5. console(config)# '''ip default-gateway''' ''172.17.55.1''
 
 
 
6. console(config)# '''username''' ''mupsbox'' '''password''' ''PassW0rd'' level 15
 
 
 
7. console(config)# '''ip ssh server'''
 
 
 
8. console(config)# '''crypto key generate rsa'''
 
 
 
 
 
 
 
<h2>'''Fortinet'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. FortiGate-VM64-KVM # '''config system interface'''
 
 
 
2. FortiGate-VM64-KVM (interface) # '''edit''' ''port1''
 
 
 
2. FortiGate-VM64-KVM (port1) # '''set ip''' ''172.18.33.111 255.255.255.0''
 
 
 
3 FortiGate-VM64-KVM (port1) # '''end'''
 
 
 
4. FortiGate-VM64-KVM # '''config router static'''
 
 
 
5. FortiGate-VM64-KVM (static) # '''edit''' ''0''
 
 
 
6. FortiGate-VM64-KVM (0) # '''set gateway''' ''172.18.33.1''
 
 
 
7. FortiGate-VM64-KVM (0) # '''set device''' ''port1''
 
 
 
8. FortiGate-VM64-KVM (0) # '''end'''
 
 
 
9. FortiGate-VM64-KVM # '''config system admin'''
 
 
 
10. FortiGate-VM64-KVM (admin) # '''edit''' ''mupsbox''
 
 
 
11. FortiGate-VM64-KVM (mupsbox) # '''set accprofile''' ''"super_admin"''
 
 
 
12. FortiGate-VM64-KVM (mupsbox) # '''set vdom "root"'''
 
 
 
13. FortiGate-VM64-KVM (mupsbox) # '''set password''' ''PassW0rd''
 
 
 
14. FortiGate-VM64-KVM (mupsbox) # '''end'''
 
 
 
15. FortiGate-VM64-KVM # '''config system global'''
 
 
 
16. FortiGate-VM64-KVM (global) # '''set hostname''' ''FortiGateV''
 
 
 
17. FortiGate-VM64-KVM (global) # '''end'''
 
 
 
18. FortiGateV # '''execute cfg save'''
 
 
 
 
 
 
 
<h2>'''Extreme Networks'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. * EXOS-VM.1 # '''create account admin''' ''mupsbox'' ''PassW0rd''
 
 
 
2. * EXOS-VM.6 # '''configure''' ''Mgmt'' '''ipaddress''' ''172.18.33.222 255.255.255.0''
 
 
 
3. * EXOS-VM.9 # '''configure iproute add default''' ''172.18.33.1'' '''vr''' ''VR-Mgmt''
 
 
 
4.* EXOS-VM.11 # '''enable ssh2'''
 
 
 
5.* EXOS-VM.11 # '''save'''
 
 
 
 
 
 
 
 
 
<h2>'''Check Point'''</h2>
 
 
 
Minimum* configuration:
 
 
 
'''BASIC  CONFIGURATION - SUMMARY STEPS'''
 
 
 
1. gw-170003>set expert-password
 
 
 
2.gw-170003>expert
 
 
 
3. [Expert@gw-170003:0]# hostname MBCheckPoint
 
 
 
4.[Expert@MBCheckPoint]# hostname MBCheckPoint
 
 
 
5.* EXOS-VM.11 # save
 
 
 
  
  
 +
<h2>'''Huawei'''</h2>comming soon
  
 +
<h2>'''Linux'''</h2>comming soon
  
  
Line 628: Line 293:
 
[[#top| Back to the Top]]</span></div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div>
 
[[#top| Back to the Top]]</span></div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div>
 
<div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div>
 
<div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div>
<div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div>
+
<div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div><div id="turnkey-credit"> <div style="clear: both;"> [https://www.turnkeylinux.org/mediawiki MediaWiki Appliance] - Powered by [https://www.turnkeylinux.org TurnKey Linux] </div> </div>

Latest revision as of 01:14, 29 June 2021

Management Device

Introduction

Device management via api and (or) ssh.

Management can be globally divided into two parts: group configuration your devices and request-response for reporting your settings.

To send the command:

you can select the devices to which you want to send the command:

Edit job


or use your groups:

Edit job


Command type:

There are several ways to interact with devices (this depends on the specific manufacturer and version of the operating system)

Terminal command - send command via SSH

Rsc file - send configuration file

API command - send command via API


if there is no choice, this means that work on SSH

Cisco - IOS


SEND CONFIGURATION COMMAND: via SSH

Enter the usual CLI command IOS, like as:

show clock

send multiple commands at once (neded if commands runs on privileged mode)

in order not to enter a password, you can use a variable: #su# or #privilegeduser# (variable it will only work if you specified a password in the equipment settings)

use a separator between commands #13 or #/n

example:

set new hostname on router

enable#13#su##13configure terminal#13hostname MBRouter229

or

enable#13yourpassord#13configure terminal#13hostname MBRouter229

create new user

enable#13#su##13configure terminal#13username mbuser privilege 15 password PassW0rd


REQUEST-RESPONSE (reporting): via SSH

Here are some examples.

show users on router

enable#13#su##13show run | i username

on which router is the user 'man'?

enable#13#su##13show run | i username mb?man priv#13 mbcount==1#13

on which router is the no user 'man'?

enable#13#su##13show run | i username mb?man priv#13 mbcount==0#13

how many users on the router?

enable#13#su##13show run | i username mb?username#13 mbcount#13

how many users on a router with level 15?

enable#13#su##13show run | i username mb?privilege 15#13 mbcount#13

where no default routes on IPv6 (no use ipv6)?

show ipv6 route mb?::/0#13 mbcount==1


as you understand, you can give any command and indicate what we are looking for


Icon-warn.png

Notice: mbcount - proproetary function mupsbox, gets counts data replies (!re),mbcount= (=x, >x , <x, ==x, =>x, =<x).

mb?filed - allows you to build queries where there is no where attribute, mb?(field)




MikroTik ROS v6


SEND CONFIGURATION COMMAND: via SSH

Enter the usual CLI command RouterOS, like as:

interface bridge add name=bridge1

as well as

in br ad na=bridge1

send multiple commands at once

int br ad na=bridge1#13int bri ad na=bridge2

use a separator #13 between commands


SEND CONFIGURATION COMMAND: via API

API closely follows syntax from command line interface (CLI). It can be used to create translated or custom configuration tools to aid ease of use running and managing routers with RouterOS.

Edit job

sample a full syntax for API commandsCLI:

interface bridge add name=bridge1

API:

/interface/bridge/add

=name=bridge1

CLI:

ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade

API:

/ip/firewall/nat/add

=chain=srcnat

=out-interface=ether1

=action=masquerade

API one line with separator:

/ip/firewall/nat/add;=chain=srcnat;=out-interface=ether1;=action=masquerade

the default separator is ; , but it can be changed in MUPSBOX - Settings ->


Example:

add new user

/user/add

=name=username

=group=full

=password=userpassword

=comment=this is new user

remove user

/user/remove

=.id=username

disable all rules in /ip/firewall/filter where chain=input and action=drop

/ip/firewall/filter/disable

?chain=input

?action=drop

?#&

mbgetid

delete all users except mupsbox

/user/remove

?name=mupsbox

?#!

mbgetid

Icon-warn.png

Notice: mbgetid - proproetary function mupsbox, allows you to combine several commands: perform an action with a preliminary request to get id, execute a print query c .proplist = .id, storing the result in the array and then performing the desired action.

?#operations - applies operations to the values in the stack. ! character replaces top value with the opposite. & pops two values and pushes result of logical 'and' operation. | pops two values and pushes result of logical 'or' operation.



REQUEST-RESPONSE (reporting): via API

Using api - you get feedback. This is very important because you will always know if the command was executed successfully. Also, you get the opportunity to build reports using API: request->response. Here are some examples.


on which router is the user 'admin'?

/user/print

?name=admin

mbcount==1

on which router firewall is not configured, for example, rules < 3 ?

/ip/firewall/filter/print

mbcount=<3

on which router is dns server 8.8.4.4 configured?

/ip/dns/print

mb?servers=8.8.4.4


Icon-warn.png

Notice: mbcount - proproetary function mupsbox, gets counts data replies (!re),mbcount= (=x, >x , <x, ==x, =>x, =<x).

mb?filed - allows you to build queries where there is no where attribute, mb?(field)(=/!=/<>)




Eltex


SEND CONFIGURATION COMMAND: via SSH

Enter the usual CLI command, like as:

show clock

send multiple commands at once (neded if commands runs on privileged mode)

in order not to enter a password, you can use a variable: #su# or #privilegeduser# (variable it will only work if you specified a password in the equipment settings)

use a separator between commands #13 or #/n

example:

set new hostname on router

configure terminal#13hostname MBRouter229

create new user

configure terminal#13username mbuser1 privilege 15 password PassW0rd


REQUEST-RESPONSE (reporting): via SSH

Here are some examples.

on which router is the user 'mbuser1'?

show run #13 mb?mbuser1#13 mbcount==1


Huawei

comming soon

Linux

comming soon