Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 56f776e7
authored
Sep 13, 2020
by
irul
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update server_info.sh
1 parent
c1a82092
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
server_info.sh
server_info.sh
View file @
56f776e
...
@@ -27,6 +27,7 @@ echo ""
...
@@ -27,6 +27,7 @@ echo ""
echo
-e
"Default Gateway: "
`
ip route show | sed
's/\(\S\+\s\+\)\?default via \(\S\+\).*/\2/p; d'
`
echo
-e
"Default Gateway: "
`
ip route show | sed
's/\(\S\+\s\+\)\?default via \(\S\+\).*/\2/p; d'
`
# echo -e "Server IP: "`hostname -I`
# echo -e "Server IP: "`hostname -I`
echo
-e
"Server IP: "
`
/sbin/ip -4 a | grep
"inet "
| tail -n +2 | awk
'{print "["NR"] "$7 "=" $2}'
`
echo
-e
"Server IP: "
`
/sbin/ip -4 a | grep
"inet "
| tail -n +2 | awk
'{print "["NR"] "$7 "=" $2}'
`
echo
-e
"WAN/Public IP: "
`
dig +short myip.opendns.com @resolver1.opendns.com
`
echo
""
echo
""
echo
-e
"HDD: "
`
lsblk -dio SIZE,MODEL,KNAME,TYPE | grep disk|rev|cut -d
" "
-f2-|rev|awk
{
'print "["NR"] "$0'
}
`
echo
-e
"HDD: "
`
lsblk -dio SIZE,MODEL,KNAME,TYPE | grep disk|rev|cut -d
" "
-f2-|rev|awk
{
'print "["NR"] "$0'
}
`
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment