|
@@ -96,7 +96,7 @@ class SNMP
|
|
*
|
|
*
|
|
* @param string $host The target host for SNMP queries.
|
|
* @param string $host The target host for SNMP queries.
|
|
* @param string $community The community to use for SNMP queries.
|
|
* @param string $community The community to use for SNMP queries.
|
|
- * @return FiberhomeBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
|
|
|
|
+ * @return HuaweiBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
*/
|
|
*/
|
|
public function __construct( $host = '127.0.0.1', $community = 'public' )
|
|
public function __construct( $host = '127.0.0.1', $community = 'public' )
|
|
{
|
|
{
|
|
@@ -407,7 +407,7 @@ class SNMP
|
|
* Should be one of the class OID_OUTPUT_* constants
|
|
* Should be one of the class OID_OUTPUT_* constants
|
|
*
|
|
*
|
|
* @param int $f The fomat to use
|
|
* @param int $f The fomat to use
|
|
- * @return FiberhomeBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
|
|
|
|
+ * @return HuaweiBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
*/
|
|
*/
|
|
public function setOidOutputFormat( $f )
|
|
public function setOidOutputFormat( $f )
|
|
{
|
|
{
|
|
@@ -420,7 +420,7 @@ class SNMP
|
|
* Sets the target host for SNMP queries.
|
|
* Sets the target host for SNMP queries.
|
|
*
|
|
*
|
|
* @param string $h The target host for SNMP queries.
|
|
* @param string $h The target host for SNMP queries.
|
|
- * @return FiberhomeBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
|
|
|
|
+ * @return HuaweiBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
*/
|
|
*/
|
|
public function setHost( $h )
|
|
public function setHost( $h )
|
|
{
|
|
{
|
|
@@ -448,7 +448,7 @@ class SNMP
|
|
* Sets the community string to use for SNMP queries.
|
|
* Sets the community string to use for SNMP queries.
|
|
*
|
|
*
|
|
* @param string $c The community to use for SNMP queries.
|
|
* @param string $c The community to use for SNMP queries.
|
|
- * @return FiberhomeBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
|
|
|
|
+ * @return HuaweiBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
*/
|
|
*/
|
|
public function setCommunity( $c )
|
|
public function setCommunity( $c )
|
|
{
|
|
{
|
|
@@ -470,7 +470,7 @@ class SNMP
|
|
* Sets the timeout to use for SNMP queries (microseconds).
|
|
* Sets the timeout to use for SNMP queries (microseconds).
|
|
*
|
|
*
|
|
* @param int $t The timeout to use for SNMP queries (microseconds).
|
|
* @param int $t The timeout to use for SNMP queries (microseconds).
|
|
- * @return FiberhomeBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
|
|
|
|
+ * @return HuaweiBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
*/
|
|
*/
|
|
public function setTimeout( $t )
|
|
public function setTimeout( $t )
|
|
{
|
|
{
|
|
@@ -492,7 +492,7 @@ class SNMP
|
|
* Sets the SNMP query retry count.
|
|
* Sets the SNMP query retry count.
|
|
*
|
|
*
|
|
* @param int $r The SNMP query retry count
|
|
* @param int $r The SNMP query retry count
|
|
- * @return FiberhomeBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
|
|
|
|
+ * @return HuaweiBundle\SNMP\SNMP An instance of $this (for fluent interfaces)
|
|
*/
|
|
*/
|
|
public function setRetry( $r )
|
|
public function setRetry( $r )
|
|
{
|
|
{
|
|
@@ -568,7 +568,7 @@ class SNMP
|
|
* Set the cache to use
|
|
* Set the cache to use
|
|
*
|
|
*
|
|
* @param \OSS_SNMP\Cache $c The cache to use
|
|
* @param \OSS_SNMP\Cache $c The cache to use
|
|
- * @return FiberhomeBundle\SNMP\SNMP For fluent interfaces
|
|
|
|
|
|
+ * @return HuaweiBundle\SNMP\SNMP For fluent interfaces
|
|
*/
|
|
*/
|
|
public function setCache( $c )
|
|
public function setCache( $c )
|
|
{
|
|
{
|
|
@@ -622,11 +622,11 @@ class SNMP
|
|
*
|
|
*
|
|
* @param string $mib The extension class to use
|
|
* @param string $mib The extension class to use
|
|
* @param array $args
|
|
* @param array $args
|
|
- * @return FiberhomeBundle\MIBS
|
|
|
|
|
|
+ * @return HuaweiBundle\MIBS
|
|
*/
|
|
*/
|
|
public function useExtension( $mib, $args )
|
|
public function useExtension( $mib, $args )
|
|
{
|
|
{
|
|
- $mib = 'FiberhomeBundle\\SNMP\\MIBS\\' . str_replace( '_', '\\', $mib );
|
|
|
|
|
|
+ $mib = 'HuaweiBundle\\SNMP\\MIBS\\' . str_replace( '_', '\\', $mib );
|
|
$m = new $mib();
|
|
$m = new $mib();
|
|
$m->setSNMP( $this );
|
|
$m->setSNMP( $this );
|
|
return $m;
|
|
return $m;
|