Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
K_montalvo
Advisor
Jump to solution

Upgrade Tools Import/Export Command to survive session disconnect?

Hello experts,

Kindly let me know if there's is a command that survives Putty or console from ESXI disconnection when executing the migrate_server export or import. I'm following the sk135172

Thanks,

0 Kudos
2 Solutions

Accepted Solutions
PhoneBoy
Admin
Admin

If you're truly on a console connection, you shouldn't disconnect if you get disconnected from ESXi.
That said, maybe try executing with nohup (e.g. nohup migrate_server ...)

View solution in original post

the_rock
Legend
Legend

Hey brother,

I ALWAYS do this command from expert mode -> unset TMOUT 

That will NOT time out, 100%.

View solution in original post

7 Replies
PhoneBoy
Admin
Admin

If you're truly on a console connection, you shouldn't disconnect if you get disconnected from ESXi.
That said, maybe try executing with nohup (e.g. nohup migrate_server ...)

K_montalvo
Advisor

Hey my friend,

Yeap i tried with nohup command and works but the only  is that im not able to see the progress like when executing normal migrate_server command. I had to do a ps -aux | grep the PID of the process as a workaround. But definitively  working on VM directly from console its better than putty via Network. The benefit from putty is than im able to paste in the terminal and VM Console not able. As a workaround we put the command like this $MDS_FWDIR/scripts/migrate_server import -v R81.10 /var/log/Export_for_Upgrade_from_R8030_to_R8110.tgz > x and then chmod x 755 and then log in to VM Console and run ./x from there

0 Kudos
Bob_Zimmerman
Leader
Leader

nohup sends STDOUT from the command to a file named nohup.out in the directory where you ran nohup. This should do what you're wanting:

rm nohup.out;nohup <migrate export command> &;tail -f ./nohup.out
K_montalvo
Advisor

Perfect, i will try these! Many thanks!

0 Kudos
the_rock
Legend
Legend

Hey brother,

I ALWAYS do this command from expert mode -> unset TMOUT 

That will NOT time out, 100%.

K_montalvo
Advisor

Thanks buddy!

0 Kudos
the_rock
Legend
Legend

For you bro, no charge ;- )

0 Kudos