Forum Discussion

nkingcade_12003's avatar
nkingcade_12003
Icon for Nimbostratus rankNimbostratus
Jun 10, 2013

Performance Information

Okay, It appears that my previous question concerning performance information didn't get a comment. Let me try another approach. Is it possible to query the SNMP agent on the F5 from the command line and have it return the desired performance information. Can I export the information to Excel?

 

1 Reply

  • Brent_Blood_768's avatar
    Brent_Blood_768
    Historic F5 Account
    Sorry for the late response.

    What sort of stats are you looking to get from the system from the command line? You can get to most of the same stats that the GUI shows from tmsh, but you have to know where to look. In these cases, you want to use the "show" verb interactively (run "help show" in tmsh to see how to use this command - the "raw" and "field-fmt" options are likely of interest for interactive use). For instance, to see all of the stats associated with the base tcp profile, run:

     show ltm profile tcp tcp raw field-fmt

    You can access this in a tmsh script ("help cli script") using the tmsh::get_status command, and you could export these to Excel by writing the results to a file as a CSV.

    You can use snmpwalk/snmpget to access stats in that manner, but you'll get better luck with that approach asking in a different forum (this one is specific to tmsh scripting).