Use SNMP client

Discover SNMP with different language...

CLI


snmpwalk -v <version> -c <community> <hostname> <object_id>

# SNMP v1
snmpwalk -v 1 -c <community> <hostname> <object_id>

# SNMP v2
snmpwalk -v 2c -c <community> <hostname> <object_id>

# SNMP v3
snmpwalk -v 3 -l <security_level> [-a <auth_protocol> -A <auth_passphrase> -x <privacy_protocol> -X <privacy_passphrase>] <hostname> <object_id>

PHP

Functions


# SNMP v1
snmpwalk($hostname, $community, $object_id, $timeout = -1, $retries = -1);

# SNMP v2
snmp2_walk($hostname, $community, $object_id, $timeout = -1, $retries = -1);

# SNMP v3
snmp3_walk($hostname, $security_name, $security_level, $auth_protocol, $auth_passphrase, $privacy_protocol, $privacy_passphrase, $object_id, $timeout = -1, $retries = -1);