This should be simple, but the machines we ssh into don't seem to have the regular commands.
Are there any other simple ways I can use to get my IP?
ifconfig will work. but you need to be a super user.
try this command hostname -i
even netstat -rn also will work. but it will display the routing table also along with IP.
$ ifconfig eth0
(or replace eth0 with the device you're using)
Look for: inet addr: xxx.xxx.xxx.xxx
That's your IP addy.
Well, do you mean the IP in LAN?
If you can ssh in the box [by typing "ssh address_of_the_box"], you can just ping the address_of_the_box in another box, then you can get it...
If you are using ssh to access the machine, you must have the hostname. So you should be able to look up the ip address on some other machine using, for example dig hostname
.
ifconfig
is not in your PATH, so try using it with full path to command.