[racktables-users] Re: SSH commands from PHP

  • From: Denis Ovsienko <infrastation@xxxxxxxxx>
  • To: "racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
  • Date: Tue, 28 Aug 2012 17:50:56 +0400

28.08.2012, 17:37, "J Lee" <juleedev@xxxxxxxxx>:
> hey there.  I saw a message problems using the 802.1q section in 
> racktables... and also about using SSH in scripts.
>
> I don't know too much about racktables yet but just fyi. using phpseclib, it 
> looks like you can run multiple SSH commands from php script.
> if you'd like i can post some sample code i've been playing around with.
> it may or may not help.
>
> j

Sure, a working sample could help here. What is required is a script that could 
take an input file with commands like this:

conf t
int gi0/10
switchport access vlan 2
end

...and produce an output file with an exact copy of the session.

-- 
 Denis Ovsienko

Other related posts: