These procedures show how to connect to the node’s Serial Over LAN (SOL) via ConMan.
NOTEThese procedures have changed since the CSM 1.6 release.
IMPORTANT When using the cray CLI for access and a password is required, it will be visible on the screen as it is
being typed. The websocket connection is secure and the password will not be recorded in the console logs, but it will be
visible on the screen and will be captured by a screen session, if one is running. If this is a concern, use the procedure to
log in using ConMan directly within a Kubernetes pod.
Log on to a Kubernetes master or worker node.
(ncn-mw#) Connect to the node’s console.
cray console interact $XNAME
Example output:
Connected to wss://api-gw-service-nmn.local/apis/console-operator/console-operator/interact/x3000c0s19b1n0
<ConMan> Connection to console [x3000c0s19b1n0] opened.
nid000001 login:
Using the command above, a user can also attach to an already active SOL session that is being used by another user, so both can access the node’s SOL simultaneously.
Exit the connection to the console with the &.``[Enter] command.
Example output:
<ConMan> Connection to console [x3000c0s19b1n0] opened.
nid000001 login:&.
&.
<ConMan> Connection to console [x3000c0s19b1n0] closed.
Connection closed by the server.
NOTEThis procedure has changed since the CSM 0.9 release.
Log on to a Kubernetes master or worker node.
(ncn-mw#) Find the cray-console-operator pod.
OP_POD=$(kubectl get pods -n services -o wide|grep cray-console-operator|awk '{print $1}'); echo $OP_POD
Example output:
cray-console-operator-6cf89ff566-kfnjr
(ncn-mw#) Set the XNAME variable to the component name (xname) of the node whose console is to be opened.
XNAME=x123456789s0c0n0
(ncn-mw#) Find the cray-console-node pod that is connected to that node.
NODEPOD=$(kubectl -n services exec $OP_POD -c cray-console-operator -- sh -c "/app/get-node $XNAME" | jq .podname | sed 's/"//g')
echo $NODEPOD
Example output:
cray-console-node-1
(ncn-mw#) Connect to the node’s console using ConMan on the cray-console-node pod which was found.
kubectl exec -it -n services $NODEPOD -c cray-console-node -- conman -j $XNAME
Example output:
<ConMan> Connection to console [x3000c0s25b1] opened.
nid000009 login:
Using the command above, a user can also attach to an already active SOL session that is being used by another user, so both can access the node’s SOL simultaneously.
Exit the connection to the console with the &. command.