Summary:
1. Three bottom-layer magic commands of HP:# Lanscan check whether the underlying physical status of the host is UP (note that the IP layer cannot be viewed by this command)# Netstat-rn check whether IP Address binding is correct# Nslookup hny01 check whether you can parse yourself
2. Other commands
(1) lanadmin-LAN Management ProgramSummary/Usr/sbin/lanadmin [-e] [-t]/Usr/sbin/lanadmin [-a] [-Astation_addr] [-c] [-g [get_options] [-m][-M mtu_size] [-p] [-r] [-R] [-s] [-S speed] [-Vvlan
): 0blocksize for filesystem I/O: 4096number of blocks allocated: 24616time of last access: 1417922668 Sun Dec 7 11:24:28 2014time of last modification: 1418294104 Thu Dec 11 18:35:04 2014time of last status change: 1418294104 Thu Dec 11 18:35:04 2014time of last access: 1417922668 Sun Dec 7 11:24:28 2014total size, in bytes: 12582912 (12.000 MiB)time of last modification:
= (ADMIN) commandSamlee User Login test Specifies the relevant command:#建立测试用户及测试组 [[emailprotected]~]#groupaddadmin[[emailprotected]~]# useradd-gadminadmin[[emailprotected]~]#passwdadmin# using Samlee user test: [[ Emailprotected]~]$sudoifconfigeth0linkencap: ethernethwaddr00:0c:29:d3:e4:53 inetaddr:172.16.100.7Bcast:172.16.255.255Mask:255.255.0.0 inet6addr:fe80::20c:29ff:fed3:e453/64 scope:linkupbroadcastrunning multicastmtu:1500metric:1 rxpackets:61839errors:0dropped:0overruns:0frame:0 txpac
did not listen to lo, that is, the local address, even if you receive a request forwarded by the directoryserver, lo: 0 is locally broadcast to the local machine. as the service does not listen to lo, no response is returned. Cup, it took me so much time .................. the ifconfig result of realserver is as follows: eth0 Link encap: Ethernet HWaddr 00: 30: 48: C8: 7D: CA inet addr: 192.168.10.55 Bcast: 192.168.15.255 Mask: 255.255.240.0 inet6 addr: fe80 :: 230: 48ff: fec8: 7dca/64 Scope: L
All devices in CentOS are files. the NIC is also defined in the file. to bind an IP address, you only need to change the file. nic files are located in the directory:/etc/sysconfig/network-scripts to query the current IP information: ifconfig: eth0Linkencap: all devices in Etherne CentOS are files. the NIC is also defined in the file. to bind an IP address, you only need to change the file. nic files are in the directory:
/Etc/sysconfig/network-scripts: ifconfig: eth0
Link encap: Ethernet
HWad
The network protocol architecture aims to effectively support normal network operations and facilitate management of massive networks. We should be familiar with the SNMP Protocol in terms of Network Management. The SNMP Protocol is "Simple Network Management Protocol ", SNMP is first organized by Internet Engineering tasks (IETF) to solve the router management problems on the Internet 。
SNMP is currently the most commonly used Environment Management Protocol. SNMP is designed to be protocol-ind
We have already talked a lot about the concept of the SNMP protocol, in order to better apply this Protocol. Today, we will briefly introduce the content of the Linux SNMP protocol and how to manage and operate the SNMP protocol in Linux.
The Simple Network Management Protocol (Linux SNMP) is first proposed by the Internet Engineering Task Organization (IETF) research team to solve the router management problem on the Internet. We usually seldom call a database in a managed device a database. In
The NAT static IP address of the centos virtual machine sets the host machine to centos 6.3 64-bit, and the three virtual machines to centos 6.3 64-bit. The Virtual Machine network connection mode is the default NAT mode. By default, virtual machines dynamically obtain IP addresses through DHCP. To build hadoop on three virtual machines, you need to build these three virtual institutions into a LAN that can access each other. Therefore, all three virtual machines are set as static IP addresses.
Questions about using SNMP-related functions in PHP
The SNMP service is configured
Use PHP_SNMP. DLL module
Using function Snmpwalk
The original code is as follows
$a = snmpwalkoid ("127.0.0.1", "Public", "" ");
?>
for (reset ($a); $i = key ($a); next ($a)) {
echo "$i: $a [$i]
\ n ";
}
?>
This is fine, but once you specify the relevant object, it will be a problem snmpwalk the original code provided in the Help documentation
$host = ' 127.0.0.1 ';
$community = ' public ';
$object _id =
1, take the local IP address[[Emailprotected]~]#ifconfigeth1linkencap:ethernet hwaddr00:0c:29:35:dd:abinet addr:10.1.253.95Bcast:10.1.255.255Mask:255.255.0.0 inet6addr:fe80::20c:29ff:fe35:ddab/64Scope:Link upbroadcastrunningmulticastmtu : 1500metric:1rxpackets:378023 errors:0dropped:0overruns:0frame:0 TXpackets:12444errors:0dropped:0overruns:0carrier:0 collisions:0txqueuelen:1000 rxbytes:46926222 (44.7NBSP;MIB) TXbytes:1240063 (1.1NBSP;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.