Let $H=\ell^2$ the set of real (or complex) suare-summable sequences with the natural inner-product. Let $e^{(n)}$ the sequence such that the only non-vanishing term is the $n$-th, which is $1$, and define $T(x)=\sum_{n=0}^{+\infty}\frac n{n+1}\langle e^{(n)},x\rangle e^{(n)}$. Then $T$ is well defined, linear, of norm $1$ since $\lVert Te^{(n)}\rVert=\frac n{n+1}$ and for all $x$, $\lVert Tx\rVert\leq 1$. But $Te^{(k)}=\frac k{k+1}e^{(k)}$ for each $k$ so $\lVert Te^{(k)}\rVert=\frac k{k+1}<1$. In fact, in this case, for all $x$ we have $\lVert Tx\rVert^2=\sum_{n=0}^{+\infty}\frac{n^2}{(n+1)^2}|\langle x,e^{(n)}\rangle|^2<\lVert x\rVert,$ except if $x=0$. So the supremum in the definition of the norm of $T$ is not a maximum.