Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions snmp/snmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,15 @@ function snmpget($hostname, $community, $object_id, $timeout = 1000000, $retries
/**
* Fetch the SNMP object which follows the given object id
* @link https://php.net/manual/en/function.snmpgetnext.php
* @param string $host <p>The hostname of the SNMP agent (server).</p>
* @param string $hostname <p>The hostname of the SNMP agent (server).</p>
* @param string $community <p>The read community.</p>
* @param string $object_id <p>The SNMP object id which precedes the wanted one.</p>
* @param int $timeout [optional] <p>The number of microseconds until the first timeout.</p>
* @param int $retries [optional] <p>The number of times to retry if timeouts occur.</p>
* @return string|false SNMP object value on success or <b>FALSE</b> on error.
* In case of an error, an E_WARNING message is shown.
*/
function snmpgetnext($host, $community, $object_id, $timeout = 1000000, $retries = 5) {}
function snmpgetnext($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Fetch all the SNMP objects from an agent
Expand Down Expand Up @@ -363,15 +363,15 @@ function snmpwalk($hostname, $community, $object_id, $timeout = 1000000, $retrie
/**
* Return all objects including their respective object ID within the specified one
* @link https://php.net/manual/en/function.snmprealwalk.php
* @param string $host <p>The hostname of the SNMP agent (server).</p>
* @param string $hostname <p>The hostname of the SNMP agent (server).</p>
* @param string $community <p>The read community.</p>
* @param string $object_id <p>The SNMP object id which precedes the wanted one.</p>
* @param int $timeout [optional] <p>The number of microseconds until the first timeout.</p>
* @param int $retries [optional] <p>The number of times to retry if timeouts occur.</p>
* @return array|false an associative array of the SNMP object ids and their values on success or <b>FALSE</b> on error.
* In case of an error, an E_WARNING message is shown.
*/
function snmprealwalk($host, $community, $object_id, $timeout = 1000000, $retries = 5) {}
function snmprealwalk($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Query for a tree of information about a network entity
Expand Down Expand Up @@ -406,7 +406,7 @@ function snmpwalkoid($hostname, $community, $object_id, $timeout = 1000000, $ret
/**
* Set the value of an SNMP object
* @link https://php.net/manual/en/function.snmpset.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the SNMP agent (server).
* </p>
* @param string $community <p>
Expand Down Expand Up @@ -466,7 +466,7 @@ function snmpwalkoid($hostname, $community, $object_id, $timeout = 1000000, $ret
* If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
* </p>
*/
function snmpset($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
function snmpset($hostname, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}

/**
* Fetches the current value of the UCD library's quick_print setting
Expand Down Expand Up @@ -524,7 +524,7 @@ function snmp_set_oid_numeric_print($oid_format) {}
/**
* Fetch an SNMP object
* @link https://php.net/manual/en/function.snmp2-get.php
* @param string $host <p>
* @param string $hostname <p>
* The SNMP agent.
* </p>
* @param string $community <p>
Expand All @@ -541,12 +541,12 @@ function snmp_set_oid_numeric_print($oid_format) {}
* </p>
* @return string|false SNMP object value on success or <b>FALSE</b> on error.
*/
function snmp2_get($host, $community, $object_id, $timeout = 1000000, $retries = 5) {}
function snmp2_get($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Fetch the SNMP object which follows the given object id
* @link https://php.net/manual/en/function.snmp2-getnext.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the SNMP agent (server).
* </p>
* @param string $community <p>
Expand All @@ -564,12 +564,12 @@ function snmp2_get($host, $community, $object_id, $timeout = 1000000, $retries =
* @return string|false SNMP object value on success or <b>FALSE</b> on error.
* In case of an error, an E_WARNING message is shown.
*/
function snmp2_getnext($host, $community, $object_id, $timeout = 1000000, $retries = 5) {}
function snmp2_getnext($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Fetch all the SNMP objects from an agent
* @link https://php.net/manual/en/function.snmp2-walk.php
* @param string $host <p>
* @param string $hostname <p>
* The SNMP agent (server).
* </p>
* @param string $community <p>
Expand All @@ -593,12 +593,12 @@ function snmp2_getnext($host, $community, $object_id, $timeout = 1000000, $retri
* @return array an array of SNMP object values starting from the
* <i>object_id</i> as root or <b>FALSE</b> on error.
*/
function snmp2_walk($host, $community, $object_id, $timeout = 1000000, $retries = 5) {}
function snmp2_walk($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Return all objects including their respective object ID within the specified one
* @link https://php.net/manual/en/function.snmp2-real-walk.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the SNMP agent (server).
* </p>
* @param string $community <p>
Expand All @@ -616,12 +616,12 @@ function snmp2_walk($host, $community, $object_id, $timeout = 1000000, $retries
* @return array|false an associative array of the SNMP object ids and their values on success or <b>FALSE</b> on error.
* In case of an error, an E_WARNING message is shown.
*/
function snmp2_real_walk($host, $community, $object_id, $timeout = 1000000, $retries = 5) {}
function snmp2_real_walk($hostname, $community, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Set the value of an SNMP object
* @link https://php.net/manual/en/function.snmp2-set.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the SNMP agent (server).
* </p>
* @param string $community <p>
Expand Down Expand Up @@ -683,12 +683,12 @@ function snmp2_real_walk($host, $community, $object_id, $timeout = 1000000, $ret
* If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
* </p>
*/
function snmp2_set($host, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
function snmp2_set($hostname, $community, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}

/**
* Fetch an SNMP object
* @link https://php.net/manual/en/function.snmp3-get.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the SNMP agent (server).
* </p>
* @param string $sec_name <p>
Expand Down Expand Up @@ -720,12 +720,12 @@ function snmp2_set($host, $community, $object_id, $type, $value, $timeout = 1000
* </p>
* @return string|false SNMP object value on success or <b>FALSE</b> on error.
*/
function snmp3_get($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {}
function snmp3_get($hostname, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Fetch the SNMP object which follows the given object id
* @link https://php.net/manual/en/function.snmp3-getnext.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the
* SNMP agent (server).
* </p>
Expand Down Expand Up @@ -759,12 +759,12 @@ function snmp3_get($host, $sec_name, $sec_level, $auth_protocol, $auth_passphras
* @return string|false SNMP object value on success or <b>FALSE</b> on error.
* In case of an error, an E_WARNING message is shown.
*/
function snmp3_getnext($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {}
function snmp3_getnext($hostname, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Fetch all the SNMP objects from an agent
* @link https://php.net/manual/en/function.snmp3-walk.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the SNMP agent (server).
* </p>
* @param string $sec_name <p>
Expand Down Expand Up @@ -803,12 +803,12 @@ function snmp3_getnext($host, $sec_name, $sec_level, $auth_protocol, $auth_passp
* @return array an array of SNMP object values starting from the
* <i>object_id</i> as root or <b>FALSE</b> on error.
*/
function snmp3_walk($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {}
function snmp3_walk($hostname, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = 1000000, $retries = 5) {}

/**
* Return all objects including their respective object ID within the specified one
* @link https://php.net/manual/en/function.snmp3-real-walk.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the
* SNMP agent (server).
* </p>
Expand Down Expand Up @@ -843,12 +843,12 @@ function snmp3_walk($host, $sec_name, $sec_level, $auth_protocol, $auth_passphra
* SNMP object ids and their values on success or <b>FALSE</b> on error.
* In case of an error, an E_WARNING message is shown.
*/
function snmp3_real_walk($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = null, $retries = null) {}
function snmp3_real_walk($hostname, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout = null, $retries = null) {}

/**
* Set the value of an SNMP object
* @link https://php.net/manual/en/function.snmp3-set.php
* @param string $host <p>
* @param string $hostname <p>
* The hostname of the SNMP agent (server).
* </p>
* @param string $sec_name <p>
Expand Down Expand Up @@ -927,7 +927,7 @@ function snmp3_real_walk($host, $sec_name, $sec_level, $auth_protocol, $auth_pas
* If an unknown or invalid OID is specified the warning probably reads "Could not add variable".
* </p>
*/
function snmp3_set($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}
function snmp3_set($hostname, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $type, $value, $timeout = 1000000, $retries = 5) {}

/**
* Specify the method how the SNMP values will be returned
Expand Down
Loading