Sounds like a fixed timeout on the Central side at first look, not something you can set in the call. I don't know of a timeout field on the show command task, and the Troubleshooting Tools doc doesn't list a limit either, so I can't prove it, but a flat ~30 secs on every long command fits a service limit.
The include won't save you any time, the gateway still walks the whole session table and filters after, so it runs as long as the full dump.
I'd try a smaller command that finishes inside the window:
-show datapath session counters
-show datapath session table <client ip>
-show datapath error counters
If you need the full table, Remote Console/SSH to the gateway for now. If you have support I'd open a TAC case and ask if that timeout can be raised, otherwise a feature request.
What are you trying to catch with Err? And how long does that command take from the CLI on that gateway? Also, does a short piped one like show version | include Version come back fine? That would rule out the pipe. Happy to lab it out if you want :)
------------------------------
Dustin Burns
@Worldcom Exchange, Inc.
www.wei.com- - -
The comments I post here are my own, and not my employers
If my post was useful accept solution and/or give kudos
Personal Blog:
www.networkfieldnotes.com- - -
------------------------------