Wednesday, March 15, 2017

network & scripts

ruckus> enable
ruckus# config
ruckus(config)# l2acl uitox-dev
The L2 ACL entry 'uitox-dev' has been loaded. To save the L2 ACL entry, type 'end' or 'exit'.
ruckus(config-l2acl)#


USER@e530:~$ cat /home/e/Desktop/t1
configure
show routing-options

USER@e530:~$ cat /home/e/Desktop/t1 |ssh USER@IP_ADDRESS -T
USER@IP_ADDRESS's password:
{master:1}
USER@8F-Outside-SW> configure
Entering configuration mode

{master:1}[edit]
USER@8F-Outside-SW# show routing-options
static {
    route 0.0.0.0/0 next-hop IP_ADDRESS.254;
}

{master:1}[edit]
USER@8F-Outside-SW#

-----------------------------------------------------------------------
FOLLOWING IS BETTER THEN ABOVE

USER@e530:~$ cat /tmp/t1
(cat << EOF
configure
show routing-options
EOF
) |/S/5coremonitor.sh


---------------------------------------------------
sshpass -p PASSWORD     ssh -o StrictHostKeyChecking=no USER@IP_ADDRESS ${1}
-------------------------------------------------------



USER@e530:~$ /tmp/t1
Pseudo-terminal will not be allocated because stdin is not a terminal.
{master:0}
USER@5F-SW> configure
Entering configuration mode

{master:0}[edit]
USER@5F-SW# show routing-options
static {
    route 0.0.0.0/0 next-hop 1.1.1.254;
}

{master:0}[edit]
USER@5F-SW#
USER@e530:~$

No comments:

Post a Comment