:::: MENU ::::

Monthly Archives / April 2017

  • Apr 24 / 2017
  • 0
Linux

Find ILO IP on a HP server with Linux

If you forgot what iLO IP has been defined on your linux server and you are working remotely on it, don’t worry, you can still retrieve it with a common tool called┬áipmitool – available on most of the distros with standard packages:

If you’re getting such an error when you are using the command:

This means you just need to enable some modules before:

  • Apr 13 / 2017
  • 0
Linux

Quit telnet – Escape character

Stuck with a telnet session that refuses to give you hand back on console?
No worries… You just have to know the correct command to sort this out!

When you are opening a telnet connection, you probably got something like:

So, if you want to quit, you just have to use the “escape character” as indicated. But this character is not designed to be typed with 2 characters like “^” and then “]” – you have to use a direct command that can be different depending on your OS:

  • Windows: Ctrl + $
  • Linux: Ctrl + Alt Gr + ]
  • Mac OS: Ctrl + $

And press Enter once you inserted this escape character so you can get the standard telnet prompt and be able to type quit to exit the prompt.

This will result in a command like:

And here you go – you’re out of telnet ­čÖé !

  • Apr 07 / 2017
  • 0
Linux

Display time with history command

When you are using the┬áhistory┬ácommand on a UNIX system, by default, you’re only getting an action list with numbers but no date and/or time to complete this history. For that, you have to define an environment variable┬áHISTTIMEFORMAT┬áthat will describe how you want to display the timestamp for each command.

To display the timestamp temporarily (during session), you can just export the variable before sending the command:

You will get:

If you want to keep that display for a future session, you have to add this variable to your bash profile and reload your profile:

Question ? Contact