Skip to main content

Manual execution

El

formato de ejecución del

The plugin esexecution elformat siguienteis :as follows:

./dynamic_snmp.pldynamic_snmp -agent <agent nameagentname> -h <host> -v <version> [-c <comunidadcommunity>] [-u username]<username>] [-a MD5]<authProtocol>] [-A auth_password]<authKey>] [-x DES]<privProtocol>] [-X priv_password]<privPassword>] [-l authPriv]<securityLevel>] [-o < base oid>] [-names <instance>] [-branches <branches>] branches > [-nodefaults 11] [-t_ip 127.0.0.1]<tentacleIP>] [-t_port 41121]<tentaclePort>] [-t_opts "additional_tentacle_options"<tentacleOptions>"] [-t_file_path "/path/to/data_in"<tentaclePath>"] [-m tentacle]<transferMode>] [-wmin 0]<wmin>] [-wmax 100]<wmax>] [-cmin 0]<cmin>] [-cmax 200]<cmax>] [-alrt alert_name]<alert_name>] [-group GroupName] [-debug 1]<moduleGroup>]

Example:

Example of basic monitoring with SNMPv2, with everything by default and launched as an Agent plugin. It will generate OperStatus, ifInOctets and ifOutOctets modules (ifHCInOctets and ifHCOutOctets if available):

./dynamic_snmp -h "192.168.51.1" -v "2c" -c "mycommunity"

Example of basic monitoring with SNMPv2, running as a Server plugin and using the inclusion and exclusion filters. The interfaces whose name contains ‘Ge’ will be monitored, but not for those containing ‘0/3’, and will be included in the agent whose agentname is ‘Test-agentname’:

./dynamic_snmp -agent test"Test-agentname" -h "192.168.51.11" -v 2c"2c" -c artica06"mycommunity" -only "Ge" -reject "0/3"

Same example, but using SNMPv3:

./dynamic_snmp -agent "Test-agentname" -h "192.168.51.1" -v "3" -l "authPriv" -u "snmpv3user" -a "SHA" -A "PASSWORD1" -x "AES" -X "PASSWORD2" -only "Ge" -reject "0/3"

Example of custom monitoring with SNMPv2, running as a Server plugin, deactivating the default monitoring and manually choosing the branches to monitor:

./dynamic_snmp -agent "Test-agentname" -h "192.168.51.1" -v "2c" -c "mycommunity"  -o ".1.3.6.1.2.11" -names ".2.2.1.22" -branches "OperStatus:.2.2.1.8,AdminStatus:.2.2.1.77" -nodefaults 1

Note: The quotation marks shown in the examples above are not necessary, but may avoid problems.