TT#50651 Add support for new SNMP host attributes

Change-Id: Icdfd071989cbd787acb6a14f53527bc1b5a59101
changes/53/26853/4
Guillem Jover 7 years ago
parent ecf613ea35
commit b16356320c

@ -64,6 +64,9 @@ my @roles;
my @set_interface;
my $shared_ip;
my $shared_ip_v6;
my $sysname;
my $sysdescr;
my $syslocation;
my @type;
my $verbose;
my $version;
@ -106,6 +109,9 @@ GetOptions(
'set-interface=s' => \@set_interface,
'shared-ip=s' => \$shared_ip,
'shared-ipv6=s' => \$shared_ip_v6,
'sysname=s' => \$sysname,
'sysdescr=s' => \$sysdescr,
'syslocation=s' => \$syslocation,
'type=s' => \@type,
'verbose' => \$verbose,
'version' => \$version,
@ -611,6 +617,10 @@ if ( !defined $move_from || !defined $move_to ) {
logger("set_dbnode($dbnode)");
set_dbnode($dbnode);
}
set_host_key_cond('sysname', $sysname);
set_host_key_cond('sysdescr', $sysdescr);
set_host_key_cond('syslocation', $syslocation);
}
@ -815,6 +825,22 @@ Set shared_ip configuration to specified argument.
Set shared_v6ip configuration to specified argument.
=item B<--sysname>=I<name>
The SNMP system name for this host. If not specified, the SNMP daemon will
default to use a name based on the hostname.
=item B<--sysdescr>=I<descr>
The SNMP system description for this host. If not specified the SNMP daemon
will default to a description including the current NGCP version, and
the current host roles.
=item B<--syslocation>=I<location>
The SNMP system location for this host. If not specified the SNMP daemon
will default to a generic location.
=item B<--type>=I<name>
Set type configuration to specified argument.

Loading…
Cancel
Save