Open navigation

Set-TPHubSnmpGlobal

Description

Syntax

Example 1

Example 2



Description

With this cmdlet you have the possibility to select the SNMP protocol with which the printers are addressed and ‒ in case of SNMP version 3 ‒ also to configure it.


Syntax

Set-TPHubSnmpGlobal [-Config] <SnmpGlobalConfigViewModel> [-Proxy <string>]
Set-TPHubSnmpGlobal [-EnableGlobalSnmp] <bool> [-Username] <string> [-AuthenticationType] {MD5 | SHA} [-AuthenticationPassphrase] <string> [-PrivacyType] {NONE | DES | AES} [-PrivacyPassphrase] <string> [-Proxy <string>]
ParameterDescription
-Configconfiguration specified by a variable
  • EnableGlobalSnmp
  • SelectedSnmpVersion
  • Communitystring
  • Username
  • AuthenticationType
  • AuthenticationPassphrase
  • PrivacyType
  • PrivacyPassphrase
  • SNMP disabled/enabled, 0/1 = False/True
  • SNMP version, 1/2 =  V1/2c or V3
  • community name, e. g.: public 
  • user name, e. g.: administrator 
  • authentication type, 0/1 = MD5 or SHA
  • password for authentication via SNMP at the printer
  • optional: DES or AES
  • optional: passwort for encryption of SNMP queries
-EnableGlobalSnmpSNMP disabled/enabled, 0/1 = False/True
-Usernameuser name, e. g. administrator 
-AuthenticationTypeauthentication type: MD5 (recommended for test purposes only) or SHA
-AuthenticationPassphrasepassword for authentication via SNMP at the printer
-PrivacyTypeoptional: DES or AES
-PrivacyPassphraseoptional: passwort for encryption of SNMP queries
-Communitycommunity name, e. g.: public
-Proxy• optional (from firmware version 1.1): proxy server address
• can also be specified globally using Set-TPHubProxy


Example 1

The following example reads the SNMP configuration and changes it to SNMP version 3.

Get-TPHubSnmpGlobal
Set-TPHubSnmpGlobal -EnableGlobalSnmp 1 -AuthenticationType SHA -Username: administrator 
-AuthenticationPassphrase: admin12345 -PrivacyType: AES -PrivacyPassphrase: admin12345
Get-TPHubSnmpGlobal

 ThinPrint Hub's PowerShell cmdlet Set-TPHubSnmpGlobal


Example 2

This example reads the SNMP configuration into the $config variable and uses the variable to change it to SNMP version 1.

$config = Get-TPHubSnmpGlobal 
$config 
$config.SelectedSnmpVersion = 1
Set-TPHubSnmpGlobal -Config $config
Get-TPHubSnmpGlobal

ThinPrint Hub's PowerShell cmdlet Set-TPHubSnmpGlobal: usage of a variable


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.