Consult snmptranslate's manpages for more info. You can explore the MIBs with snmptranslate to read descriptions of OIDs, or to see the structure of a MIB. Tweak a little with your Raspi configuration to see if you can enable it. This seems to be deprecated and might not be enabled in the TCP/IP stack of your Raspberry. You can use the same techniques described above on these OIDs: IP-MIB::ipAddrTable and IP-MIB::ipAddrEntry. My first thought is for you to use the RARP protocol. 2 Bronze 732714 06-19-2007 03:26 AM How to get the DRAC IP address from the localhost Hi, We have couple of PowerEdge 1850 servers running custom RedHat Linux images. Or, you can poll a table and get a neater output (use -Cf flag to set delimiter): snmptable -Cf \ -v 2c -c public localhost IF-MIB::ifTable Since that will produce really long, not particularly readable output, especially if there are a lot of interfaces), you can do something like this to get info about a single interface (with index 2 in this example): snmpwalk -v 2c -c public localhost IF-MIB::ifEntry | grep '\.2 ' Or, you can walk the entire sub-tree: snmpwalk -v 2c -c public localhost IF-MIB::ifEntry If the machine is one hop away, arp will help you find the IP from the MAC address. These commands used to configure the kernel-resident network interfaces and display IP address such as 10.8.0.1 or 192.168.2.254. You can then poll the IF-MIB::ifDescr to see which index corresponds to which interface, for example: IF-MIB::ifDescr.1 = STRING: sit0 To find out the IP address of Linux/UNIX/BSD/macOS and Unixish system, you need to use the command called ifconfig on Unix and the ip command or hostname command on Linux. X at the end of IF-MIB::ifPhysAddress.1 indicates the object's index in this particular case the index of an interface. They may look something like this: IF-MIB::ifPhysAddress.1 = STRING: 01:23:45:67:89:AA That should return one or a bunch of lines, depending on how many interfaces are present on the box. SOLVED: How to Determine Your IP Address on Windows, Linux, Solaris, Mac OS/X and the Internet WINDOWS IP ADDRESS LINUX IP ADDRESS SOLARIS IP ADDRESS APPLE. Our system will show the internal IP address. In fact the answer you marked as accepted does just that (just uses ip instead of ifconfig ). From the terminal window, we can check our IP address with the help of the following command: hostname -I. Specifically, poll IF-MIB::ifPhysAddress OID to get MAC addresses, for example: snmpwalk -v 2c -c public localhost IF-MIB::ifPhysAddress Beginner 1,910 5 21 34 2 Isn't ifconfig -a what you're looking for rusty at 7:43 1 rajcoumar I fail to see why using a private IP prohibits you from using the output of ifconfig -a. To get interface-related info, you need IF-MIB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |