File: ssh-facts.1

package info (click to toggle)
ssh-tools 1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,328 kB
  • sloc: sh: 1,403; perl: 785; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.TH SSH-FACTS "1" "March 2024" "SSH-TOOLS" "User Commands"
.SH NAME
ssh-facts \- get some facts about the remote system
.SH SYNOPSIS
ssh\-facts [user@]hostname
.SH DESCRIPTION
get some facts about the remote system
.P
For further processing of the data
.br
you can use standard shell tools like awk, grep, sed
.br
or convert it to JSON with jo and then feed it to jq
.SH EXAMPLES
.TP
ssh\-facts 127.0.0.1
.TP
ssh\-facts 127.0.0.1 | grep ^OS_VERSION | awk \-F'=' '{ print $2 }'
.TP
ssh\-facts 127.0.0.1 | jo \-p
.TP
ssh\-facts 127.0.0.1 | jo | jq
.TP
ssh\-facts 127.0.0.1 | jo | jq .OS_VERSION