Forum Discussion
Bash shell and ping command on F5 rseries
Hi,
I need to use command ping on F5 rSeries. I undarstand that ping command is not availible on F5OS, but with local credentials I annnot to switch from F5OS to bash Linux shell.
Do you know how I can enter in bash shell or if there is a workaround to use ping in F5OS prompt?
Thanks a lot, bye
If you are logged in with admin account you cannot access bash
Try ssh with root
8 Replies
- Injeyan_Kostas
Nacreous
If you are logged in with admin account you cannot access bash
Try ssh with root In the GUI you can change the admin profile to allow you to go into advanced shell instead which will allow you to switch between TMOS and Bash.
- Injeyan_Kostas
Nacreous
You can in TMOS but as far as I know not in F5OS.
- RemoteAdmin
Altostratus
https://clouddocs.f5.com/api/rseries-api/F5OS-A-1.8.0-cli.html#r5r10-system-diagnostics-net-utils
- romolo82
Cirrus
Thanks, I've read the "system diagnostics net-utils" section, but it seems like ping isn't working on my system and I don't know why:
F5RS-D-INPS-A-01-BOX_CORE-RKB10# system diagnostics ?
Possible completions:
core-files core-files list/delete CLIs
ihealth
qkview qkview - diagnostics package commands.
tcpdump Run tcpdump
F5RS-D-INPS-A-01-BOX_CORE-RKB10# system diagnostics
- RemoteAdmin
Altostratus
Yeah, I would open a support ticket with F5 and let them explain that one.
- Panchanka
Nimbostratus
Partial progress. On version 1.8.3 EHF after I commit:
system aaa authentication config superuser-bash-access true
it enabled me to run the following:
lab-f5os-1# system diagnostics net-utils ?
Possible completions:
dig Run dig
ping Run ping
ping6 Run ping6
shell Run the diagnostic shell tool.
tracepath Run tracepath
tracepath6 Run tracepath6
traceroute Run traceroute
traceroute6 Run traceroute6
Although the "shell" command is listed it doesn't do much. I expected it to put me in the bash prompt but it doesn't do much of anything. I assume it is still under development.
lab-f5os-1# system diagnostics net-utils shell ?
Please use any of listed commands : ['ping', 'ping6', 'traceroute', 'traceroute6', 'tracepath', 'tracepath6', 'dig'].
Enter exit to return to CLI.
For detailed help enter command -h. Example: ping -h
Enter command:
- Panchanka
Nimbostratus
The ‘shell’ option allows you to execute network diagnostics commands from the shell without going back to the original prompt. It provides an interactive interface to execute multiple commands.
I guess for the time being bash is only accessible with the root account, but then why does
state:
superuser
This role provides root access privileges and bash access to the system, allowing users with the superuser role to execute commands from bash shell. To get the bash shell, users must set the 'superuser-bash-access' flag in ConfD to 'true' and turn off the appliance mode
and an example of a secondary role with the superuser GID?
radius_user Cleartext-Password := test
F5-F5OS-UID := 1001,
F5-F5OS-GID := 9000,
F5-F5OS-SECONDARYGIDS := “9004”,
F5-F5OS-HOMEDIR := "/tmp",
F5-F5OS-SHELL := "/var/lib/controller/f5_confd_cli"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com