Travel on H1b - question

Question regarding travel on valid h1b

My h1B visa stamp is expiring in 6 months and remaining all stuff (passport, i797, i94 etc is valid)

Should there be any problem re entering with passport expiring in 6 months?

I plan to re-enter before the expiry date on visa stamp. (atleast 2 months remaining)

my understanding is, if i797 and passport are good for more than 6 months shouldnt be a problem.

Thanks,
Ketul

Your statement is contradictory! You said your visa is expiring on 6 months, is it visa or passport?

You can even before a day your visa will expire, no issues as far as you have a valid underlying H1B status.