Forum Discussion
Mohandoss_27648
Nimbostratus
Sep 26, 2016F5 APM-Session Information
Hi
I want to monitor the F5 APM session information like Active session count, Client IP, Session ID, Log on, Start time, Expiration time, Bytes In and Bytes Out from CLI. I just searched the co...
rcarlos42_29487
Nimbostratus
Jun 27, 2018Kai,
Is there a way to auto-answer the tmos prompt for "Display all access-info? (y/n) y" when executing 'show apm access-info'?
Thanks, Rey
Kai_Wilke
MVP
Jul 02, 2018Hi Rey,
For TMSH in bash mode you may try the syntax below...
[root@f501:Active:Standalone] config echo y | tmsh show apm access-info
For TMSH in interactive mode you may try the syntax below...
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) run util bash -c "echo y | tmsh show apm access-info"
... or even create a friendly TMSH alias to shortcut the rather complex command...
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) load sys config merge from-terminal
Enter configuration. Press CTRL-D to submit or CTRL-C to cancel.
cli alias shared apm-access-info {
command "run /util bash -c 'echo y | tmsh show apm access-info'"
}
Loading configuration...
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) apm-access-info
apm::access-info
Total records returned: 0
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
