Quick Tips: NSX-T SSH/Cli Timeout Manager and Edge

Intro

So in the last post we set the web UI timeout value for the NSX-T manager, this covers the web interface but what about the ssh connections for that we need to adjust the cli-timeout value to check the current settings run get cli-timeout we can see that the default timer is set to 600 seconds which is 10 minutes.

NSXTMan01> get cli-timeout
Thu Oct 20 2022 UTC 13:20:15.748
600 seconds

Once again can increase or remove this value for a less secure system but helpful for labs or reduce the timeout to make the system more secure. to change the value we use set cli-timeout then the timeout value with 0 being disabled.

Disable timeout (not secure)

so to disable set cli-timeout 0 then get cli-timeout to check the setting.

NSXTMan01> set cli-timeout 0
NSXTMan01> get cli-timeout
Thu Oct 20 2022 UTC 13:27:18.542
Timeout disabled

Reduce timeout (secure)

To reduce the default we simply set the desired time value so to reduce it from 10 minutes to 5 we set set cli-timeout 300

NSXTMan01> set cli-timeout 300
NSXTMan01> get cli-timeout
Tue Jan 03 2023 UTC 12:52:40.068
300 seconds

Edges

The commands for the SSH timeouts for the Edge nodes are the exact same.

DCA-EN01a> set cli-timeout 0
DCA-EN01a> get cli-timeout
Thu Oct 20 2022 UTC 13:48:09.415
Timeout disabled
DCA-EN01a> set cli-timeout 300
DCA-EN01a> get cli-timeout
Tue Jan 03 2023 UTC 12:52:40.068
300 seconds

Leave a Reply

Your email address will not be published. Required fields are marked *