|
|
|
|
@ -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.
|
|
|
|
|
|