Skip to main content

Posts

Showing posts from August, 2021

Linux get IP and Gateway and DNS subnet from CLI

In windows getting gateway, IP, subnet and DNS is quite straight forward using ipconfig command via command line.  ipconfig /all or ipconfig -all will show the settings of the IP Address, DNS IP, Subnet mask and Gateway. In Linux world, well it can also be done but need to remember a few command line to get all these settings. Here's how it's done from the command line or terminal. hostname -I;netstat -rn;cat /etc/resolv.conf So, it's hostname -I <--capital letter i and netstat -rn plus the resolv.conf file where the DNS IP Address is set. The ";" semi-colon is to execute the command line one after the other. hostname -I <-- will show the IP Address netstat -rn <-- will show the gateway and the subnet mask (need to install net tools if command is not found) /etc/resolv.conf <-- where the DNS IP Address is set It's quite daunting if you're a newbee, but hey it is just a command line it doesn't bite it just shows good information to know abo...

Windows CLI get CPU Name, IP, OS, Mem and computer Name

One of the task of a Windows Admin is to know what OSes are running on his or her environment. Aside from checking what type of OSes are running, making sure also that CPU and Memory on users computers are suitable enough, so users can be productive. If the user doesn't have enough resources to run any software to do users tasks won't be  productive at all since and may end up consuming a lot of coffee than doing their work. :) So, as an IT Admin checking all these things will help to have a smooth operations. IP Address is the communication link of the device to the router, and the IP Address also links to the hostname or computer name and will be ultimately linked also to the logged in user. Example, deploying a specific software to a single user. IP Address must be known  in advanced or else the software being deployed might end up in someone else computer and can be disastrous if the license will be tied automatically to the hostname or IP Address.  WMIC command below...