I am new to the F5/BIG-IP world and have been struggling with a problem for sometime. I am writing a script which needs to SSH from a WINDOWS machine and remotely send commands to the F5 server.
I just tried using plink to disable sessions on a 10.0.1 and 9.4.6 LTM node and it worked fine. The GUI reflects the session being disabled/enabled. Which LTM version are you running? Can you run 'plink -ssh endecaF5@140.147.132.22 -pw blah “b node list” successfully?
012e0008:3: The requested command (b node list) is invalid
C:\>
Again, when I manually SSH into the F5 and run the “b node list” from the command line, it returns a list of nodes:
bp>b node list
node 140.147.249.7 {
}
node 192.168.192.101 {
screen CRSAPPS20
}
node 192.168.192.102 {
screen CRSAPPS21
}
node 192.168.192.111 {
screen CRSAPPS24
}
node 192.168.192.112 {
screen CRSAPPS25
}
node 192.168.192.121 {
screen CRSAPPS26
}
node 192.168.192.122 {
screen CRSAPPS27
}
node 192.168.192.131 {
screen CRSAPPS18
}
Running version from the command line, it appears that our BIG-IP is version 9.4.7:
bp>version
Kernel:
Linux 2.4.21-9.4.7.320.0smp
Package:
BIG-IP Version 9.4.7 320.1
Final Edition
Enabled Features:
… (too much to paste)
I also tried problematically SSH’ing and sending the same remote command through a Java API (JSch - Java Secure Channel), and am getting the same errors.
Ah, it’s because your user’s shell is set to bigpipe not a full shell. If you change the user’s “terminal access” to Advanced Shell, it should work fine.
First of all thanks for this post. i also was able to output the shell output to a .txt file. my question is is there a way to add some comments into the output txt file for example between the output add texts like "---------B interface ------- "