Trusted Contributor.. chiraggajjar1 Trusted Contributor..
Trusted Contributor..
115 views

Multiple command in SSH Command for Firewall configuration in OO

HI Team,

I am using HP OO to Login in the Firewall & Run Multiple command in same putty session. 

 

I am selecting multiple SSH Commad and enter individual commad.but after entering one command it will come out.

 

I want to run below command on Firewall. Kindly let me know the process for the same (Attached OO workFlow)

 

Firewall# Config Frewall address

Firewall(address)# edit 192.168.2.2

Firewall(192.168.2.2)#  set type ipmask.

Firewall(192.168.2.2)#  set subnet 192.168.2.2 255.255.255.0

Firewall(192.168.2.2)#  end

0 Likes
2 Replies
Outstanding Contributor.. JarodMB Outstanding Contributor..
Outstanding Contributor..

Re: Multiple command in SSH Command for Firewall configuration in OO

Use the SSH Shell operation 

expectEndsWith # 
send Config Frewall address
expectEndsWith # 
send edit 192.168.2.2
expectEndsWith #  
send set type ipmask
expectEndWith # 
send set subnet 192.168.2.2 255.255.255.0
expectEndsWith # 
send end
0 Likes
Trusted Contributor.. chiraggajjar1 Trusted Contributor..
Trusted Contributor..

Re: Multiple command in SSH Command for Firewall configuration in OO

Thanks its works

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.